İçeriğe geç

GPT Image 2.5 Text to Image

Entegre et

Model kimliği openai/gpt-image-2.5/flare/text-to-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/openai/gpt-image-2.5/flare/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A handwritten recipe card titled \"Apple Pie\" on a wooden kitchen table, neat cursive ingredient list, a slice of pie on a plate beside it, cinnamon sticks, warm afternoon light, photorealistic.",
    "quality": "medium"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Bu istek: $0,013 13 API kredisi Bu sayfada çalıştır

API anahtarı al
OpenAI Metinden Görsele #typography#transparent#instruction-following

Güçlü talimat takibi, temiz metin oluşturma ve saydam arka planlara sahip OpenAI görüntü modeli.

Örnekler

Çıktı · ~24 s
A handwritten recipe card titled "Apple Pie" on a wooden kitchen table, neat cursive ingredient list, a slice of pie ...

İstemA handwritten recipe card titled "Apple Pie" on a wooden kitchen table, neat cursive ingredient list, a slice of pie on a plate beside it, cinnamon sticks, warm afternoon light, photorealistic.

medium$0,013 · 13 API kredisi

İstek oluştur

Kontroller model şemasından oluşturulur. Değerleri değiştirdikçe kod ve fiyat güncellenir.

•gerekli 193 / 32000

Görsel üretmek için kullanılan istem.

image_size varsayılan landscape_4_3

Çıktı boyutları hazır ayar adı, {width, height} nesnesi veya modelin en iyi boyutu seçmesi için 'auto' kabul eder. Tüm somut boyutlar 16'ya bölünebilir olmalı, kenarlar 3840px'i aşmamalı, en-boy oranı en fazla 3:1 ve toplam piksel sayısı 655,360–8,294,400 olmalıdır.

background varsayılan auto

Ortaya çıkan görselin arka planı.

quality

Görsel kalite seçimi; 'auto' kararı modele bırakır. Daha yüksek ayarlardaki ek ayrıntı, daha uzun gecikme ve daha fazla token kullanımı getirir.

num_images varsayılan 1

Üretilecek görsel sayısı.

Gelişmiş output_format · output_compression
output_format varsayılan png

Çıktı görsellerinin dosya biçimi.

Yalnızca output_format içinde 'jpeg' veya 'webp' için kullanılabilen sıkıştırma ayarı; izin verilen aralık 0–100'dür.

POST /run/openai/gpt-image-2.5/flare/text-to-image?wait=20 fiyat → $0,013
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/openai/gpt-image-2.5/flare/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A handwritten recipe card titled \"Apple Pie\" on a wooden kitchen table, neat cursive ingredient list, a slice of pie on a plate beside it, cinnamon sticks, warm afternoon light, photorealistic.",
    "quality": "medium"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Bu isteği çalıştır

Anahtarınız bu tarayıcıda kalır: yalnızca Doitong API'ye gönderilir ve yalnızca Hatırla seçeneğini işaretlerseniz localStorage'a kaydedilir. API anahtarı al

Doitong'ta oluşturuldu

Doitong topluluğunun GPT Image 2.5 ile oluşturduğu herkese açık çalışmalar. Bir istemi tek tıklamayla yeniden kullanın.

Gösterilen herkese açık çalışma sayısı: 16
A polished studio concept art board — a single composite page that reads as a high-end pre-produc...

A polished studio concept art board — a single composite page that reads as a high-end pre-production pitch deck for an animated short. NOT a vintage pencil sketch, NOT a finished movie frame, but a polished concept page in the visual treatment described below. Layout: TOP HEADER (left): bold...

Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается свое...

Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается своей самой широкой и дружелюбной улыбкой, глядя в камеру. Она делает призывающий жест руками, словно приглашая к общению. Перед ней на столе по-прежнему лежат аппетитные булочки. Освещение становится...

Grungy analog photo of Daphne Blake (from Serial scooby doo) watching her own movie on a 90s CRT ...

Grungy analog photo of Daphne Blake (from Serial scooby doo) watching her own movie on a 90s CRT TV in a dimly lit bedroom. The TV clearly shows animated scene from scooby doo, with a cartoon-style Daphne in her classic clothes on screen, smiling. Daphne Blake is sitting cross-legged on the floor...

Fotografia realistica scattata dall’interno di un appartamento situato a un piano abbastanza alto...

Fotografia realistica scattata dall’interno di un appartamento situato a un piano abbastanza alto, guardando verso il basso attraverso una finestra aperta su una normale strada cittadina. In strada, una folla numerosa di manifestanti avanza compatta; alcune persone indossano passamontagna. Sul...

Art style: Disney-inspired. Золушка walking further back in the frame; Косметолог standing in the...

Art style: Disney-inspired. Золушка walking further back in the frame; Косметолог standing in the near foreground. The couch and strip of reflective floor separate them. Золушка is walking on glossy floor near the open doorway further back in the frame in the midground. Torso in three-quarter...

Art style: Реалистичный кулинарный блог. Экстремально крупный план рук ведущей, разламывающих гот...

Art style: Реалистичный кулинарный блог. Экстремально крупный план рук ведущей, разламывающих готовую, горячую булочку. Булочка имеет аппетитную золотисто-коричневую корочку, густо посыпанную поджаренным кунжутом. В месте разлома видна пористая, воздушная и очень мягкая текстура мякиша...

Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается свое...

Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается своей самой широкой и дружелюбной улыбкой, глядя в камеру. Она делает призывающий жест руками, словно приглашая к общению. Перед ней на столе по-прежнему лежат аппетитные булочки. Освещение становится...

Square album cover for an energetic house dance single. A dancing crowd silhouette in a night clu...

Square album cover for an energetic house dance single. A dancing crowd silhouette in a night club under warm orange and golden stage lights, flying sparks and flames rising from the dance floor, misty Scottish highland mountains faintly visible in the glowing background. Bold modern clean...

GPT Image 2.5 Text to Image hakkında

OpenAI'nin genel amaçlı görüntü oluşturucusu: uzun ve ayrıntılı talimatları izler, metinleri ve diyagramları temizce yerleştirir; çıkartmalar, simgeler ve ürün kesitleri için saydam arka planlı PNG veya WebP döndürebilir. Beş kalite düzeyi hız ve fiyatı ayrıntıyla dengeler. Boyutlar uzun kenarda 3840 px'e kadar çıkabilir (16'nın katları, en fazla 3:1); istek başına en fazla on görüntü.

Parametreler

Kanonik adı veya yerel adı gönderin; ikisini birden göndermeyin. Kanonik adlar

AdTür Varsayılanİzin verilen Açıklama
promptgerekli
Türstring
≤ 32.000 karakter
Görsel üretmek için kullanılan istem.
image_sizeisteğe bağlı
Türobject
Varsayılanlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
Çıktı boyutları hazır ayar adı, {width, height} nesnesi veya modelin en iyi boyutu seçmesi için 'auto' kabul eder. Tüm somut boyutlar 16'ya bölünebilir olmalı, kenarlar 3840px'i aşmamalı, en-boy oranı en fazla 3:1 ve toplam piksel sayısı 655,360–8,294,400 olmalıdır.
backgroundisteğe bağlı
Türenum
Varsayılanauto
autotransparentopaque
Ortaya çıkan görselin arka planı.
qualityisteğe bağlı
Türenum
Varsayılanhigh
autolowmediumhighxhighmax
Görsel kalite seçimi; 'auto' kararı modele bırakır. Daha yüksek ayarlardaki ek ayrıntı, daha uzun gecikme ve daha fazla token kullanımı getirir.
num_imagesisteğe bağlı num_outputs
Türinteger
Varsayılan1
1 – 10
Üretilecek görsel sayısı.
output_formatisteğe bağlı
Türenum
Varsayılanpng
jpegpngwebp
Çıktı görsellerinin dosya biçimi.
output_compressionisteğe bağlı
Türinteger | null
0 – 100
Yalnızca output_format içinde 'jpeg' veya 'webp' için kullanılabilen sıkıştırma ayarı; izin verilen aralık 0–100'dür.
gerekli Kanonik ad, bu ad da kabul edilir

Çıktı

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "openai/gpt-image-2.5/flare/text-to-image",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 13,
    "usd": "0.013",
    "charged": 13,
    "refunded": 0
  },
  "input": {
    "prompt": "A flat vector sticker of a smiling cactus wearing sunglasses, thick white outline, no background",
    "image_size": "square_hd",
    "quality": "medium",
    "background": "transparent"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ]
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Dosyalarınız, seçiminizHer outputs[].url, depolamamızdaki bir kopyadır: sonsuza kadar (GB-ay başına ücretli) veya ücretsiz olarak 7 gün boyunca, hesap ayarınızla ya da ?storage= ile saklanır.
Her modelde aynı yapıGörüntüler, video ve ses için type, url, content_type, width, height ve duration aynıdır. output, modelin kendi sonuç nesnesidir.
Çıktı alanları
images
array of object {url, content_type, file_name, file_size, width, height}Model tarafından oluşturulan görseller.

Daha fazla model: Metinden Görsele

AI aracıları için: bu sayfanın Markdown biçimi şurada: https://doitong.com/tr/developers/models/openai/gpt-image-2.5/flare/text-to-image.md. Tüm modeller ve kılavuzlar: https://doitong.com/developers/llms.txt