Görsel Girdi
Vision destekleyen modellere görsel göndermek için image_url content-part kullanın.
Uzak URL ile
Section titled “Uzak URL ile”curl https://llmtr.com/v1/chat/completions \ -H "Authorization: Bearer sk_your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "google/gemini-2.5-flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Bu fotoğrafta ne görüyorsun?" }, { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } } ] } ] }'Base64 data URL ile
Section titled “Base64 data URL ile”{ "type": "image_url", "image_url": { "url": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ..." }}Detay seviyesi (OpenAI modelleri)
Section titled “Detay seviyesi (OpenAI modelleri)”{ "type": "image_url", "image_url": { "url": "https://example.com/chart.png", "detail": "high" }}detail değerleri: low, high, auto.
File ID ile (Files API üzerinden)
Section titled “File ID ile (Files API üzerinden)”Büyük dosyalar için önce Files API’ye yükleyin, dönen file_id’yi kullanın:
{ "type": "input_file", "input_file": { "file_id": "file_xxx", "mime_type": "image/jpeg" }}Önerilen format
Section titled “Önerilen format”- JPEG veya PNG, < 5 MB
- Genişlik/yükseklik 512-2048 px arası
- Metin okutacaksanız (OCR) yüksek kontrast ve keskin çözünürlük
Desteklenen modeller
Section titled “Desteklenen modeller”Vision’lı modelleri katalogdan filtreleyin:
curl "https://llmtr.com/api/models?modality=image" \ -H "Authorization: Bearer sk_your_key"