Saltar al cuntegna

GPT Image 2.5 Text to Image

Integrar

ID dal model 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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Questa dumonda: $0,013 13 credits API · ≈ ₽1,40 Lantschar sin questa pagina

Obtegna ina clav API
OpenAI Text a maletg #typography#transparent#instruction-following

Model da maletgs dad OpenAI cun buna observaziun d'instrucziuns, rendida clara dal text e fundus transparents.

Exempels

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

PromptA 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 credits API

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori 193 / 32000

Prompt utilisà per generar maletgs.

image_size standard landscape_4_3

Las dimensiuns d’output acceptan in num da preset, in object {width, height} u 'auto' per la meglra grondezza dal model. Tut las grondezzas concretas ston esser divisiblas per 16, ils chants na pon betg esser pli lungs che 3840px, la proporziun po esser da maximalmain 3:1 e il dumber total da pixels sto esser 655,360–8,294,400.

background standard auto

Fund dal maletg resultant.

quality

Selecziun da la qualitad dal maletg, cun 'auto' che surdat la decisiun al model. Pli bler detagl cun configuraziuns pli autas porta ina latenza pli lunga e dapli utilisaziun da tokens.

num_images standard 1

Dumber da maletgs da producir.

Avanzà output_format · output_compression
output_format standard png

Format da datoteca dals maletgs d'output.

Configuraziun da cumpressiun disponibla mo per 'jpeg' u 'webp' en output_format; il sectur permess è 0–100.

POST /run/openai/gpt-image-2.5/flare/text-to-image?wait=20 calculaziun → $0,013
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Fatg sin Doitong

Ovras publicas fatgas cun GPT Image 2.5 da la communitad Doitong. Reutilisescha in prompt cun in clic.

Ovras publicas mussadas: 16
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...

Strong rule: style --- Cinematic Realistic ---. Энергичная девушка 27 лет с широкой лучезарной ул...

Strong rule: style --- Cinematic Realistic ---. Энергичная девушка 27 лет с широкой лучезарной улыбкой и задорными искорками в темных глазах. Короткая стильная стрижка пикси, волосы выкрашены в модный пепельный блонд. Одета в яркую джинсовую куртку с цветными нашивками и белую футболку. Образ...

Strong rule: style --- Cinematic Realistic ---. Молодая женщина около 30 лет, утонченные черты ли...

Strong rule: style --- Cinematic Realistic ---. Молодая женщина около 30 лет, утонченные черты лица, высокие скулы, пронзительные зеленые глаза. Волосы уложены в безупречное каре каштанового цвета. Одета в дорогой шелковый бежевый блейзер и изящные золотые украшения. Образ излучает уверенность,...

Use facial feature of attached photo. A realistic portrait of a woman with black hair loosely tie...

Use facial feature of attached photo. A realistic portrait of a woman with black hair loosely tied back, sitting outside a whitewashed stone house with a conical roof in a quiet Italian village. She wears a soft yellow floral summer dress with puff sleeves and white strappy heels. A wicker basket...

Фотореалистичная рекламная композиция в вертикальном формате 9:16. На переднем плане большая ярка...

Фотореалистичная рекламная композиция в вертикальном формате 9:16. На переднем плане большая яркая глянцевая фольгированная розово-синяя упаковка чипсов в современном стильном дизайне, с глянцевой поверхностью, бликами и складками, как у реального продукта. В левом углу упаковки средний логотип...

Art style: Кинематографичный, реалистичный стиль. Резкая смена кадра. Девушка с ужасом смотрит на...

Art style: Кинематографичный, реалистичный стиль. Резкая смена кадра. Девушка с ужасом смотрит на себя в зеркало. Маска снята, но ее лицо гротескно искажено: глаза слишком большие, улыбка растянута неестественно. Освещение стало холодным и резким. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL...

Art style: Кинематографичный, реалистичный стиль. Резкая смена кадра. Девушка с ужасом смотрит на...

Art style: Кинематографичный, реалистичный стиль. Резкая смена кадра. Девушка с ужасом смотрит на себя в зеркало. Маска снята, но ее лицо гротескно искажено: глаза слишком большие, улыбка растянута неестественно. Освещение стало холодным и резким. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL...

Davart GPT Image 2.5 Text to Image

Generatur da maletgs general dad OpenAI: observa instrucziuns lungas e specificas, dispona text e diagrams cleramain e po restituir PNG u WebP cun fund transparent per stickers, icons e decupaziuns da products. Tschintg nivels da qualitad barattan spertadad e pretsch cunter detagl. Las dimensiuns tanschan fin a 3840 px sin l'ur lung (multiples da 16, maximalmain 3:1); fin a diesch maletgs per dumonda.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
≤ 32 000 caracters
Prompt utilisà per generar maletgs.
image_sizeopziunal
Tipobject
Standardlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
Las dimensiuns d’output acceptan in num da preset, in object {width, height} u 'auto' per la meglra grondezza dal model. Tut las grondezzas concretas ston esser divisiblas per 16, ils chants na pon betg esser pli lungs che 3840px, la proporziun po esser da maximalmain 3:1 e il dumber total da pixels sto esser 655,360–8,294,400.
backgroundopziunal
Tipenum
Standardauto
autotransparentopaque
Fund dal maletg resultant.
qualityopziunal
Tipenum
Standardhigh
autolowmediumhighxhighmax
Selecziun da la qualitad dal maletg, cun 'auto' che surdat la decisiun al model. Pli bler detagl cun configuraziuns pli autas porta ina latenza pli lunga e dapli utilisaziun da tokens.
num_imagesopziunal num_outputs
Tipinteger
Standard1
1 – 10
Dumber da maletgs da producir.
output_formatopziunal
Tipenum
Standardpng
jpegpngwebp
Format da datoteca dals maletgs d'output.
output_compressionopziunal
Tipinteger | null
0 – 100
Configuraziun da cumpressiun disponibla mo per 'jpeg' u 'webp' en output_format; il sectur permess è 0–100.
obligatori Num canonic, er acceptà

Output

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
images
array of object {url, content_type, file_name, file_size, width, height}Maletgs producids dal model.

Dapli models: Text a maletg

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/openai/gpt-image-2.5/flare/text-to-image.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt