Leum chun t-susbaint

GPT Image 2.5 Text to Image

Amalaich

ID a’ mhodail 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"

An t-iarrtas seo: $0.013 13 creideasan API · ≈ ₽1.40 Ruith e air an duilleig seo

Faigh iuchair API
OpenAI Teacsa gu Ìomhaigh #typography#transparent#instruction-following

Modail ìomhaighean OpenAI le deagh leanmhainn air stiùiridhean, tairgse teacsa ghlan agus cùlaidhean follaiseach.

Eisimpleirean

Toradh · ~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 creideasan API

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach 193 / 32000

Prompt a chaidh a chleachdadh airson ìomhaighean a chruthachadh.

image_size bun-roghainn landscape_4_3

Gabhaidh meudan às-chuir ri ainm ro-shuidhichte, nì {width, height}, no 'auto' airson an roghainn meud as fheàrr aig a’ mhodail. Feumaidh gach meud concrait tomhasan a ghabhas roinneadh le 16, oirean nach eil nas fhaide na 3840px, co-mheas taobh aig a’ char as motha 3:1, agus àireamh iomlan piogsail de 655,360–8,294,400.

background bun-roghainn auto

Cùl-raon na h-ìomhaighe a thàinig às.

quality

Taghadh càileachd ìomhaighe, le 'auto' a’ fàgail a’ cho-dhùnaidh aig a’ mhodail. Thig barrachd mion-fhiosrachaidh aig suidheachaidhean nas àirde le dàil nas fhaide agus barrachd cleachdaidh tòcanan.

num_images bun-roghainn 1

Àireamh nan ìomhaighean ri chruthachadh.

Adhartach output_format · output_compression
output_format bun-roghainn png

Cruth faidhle nan ìomhaighean às-chuir.

Suidheachadh teannachaidh a tha ri fhaighinn a-mhàin airson 'jpeg' no 'webp' ann an output_format; is e 0–100 an raon ceadaichte.

POST /run/openai/gpt-image-2.5/flare/text-to-image?wait=20 tuairmse → $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"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Air a dhèanamh air Doitong

Obraichean poblach a rinn coimhearsnachd Doitong le GPT Image 2.5. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 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...

Mu GPT Image 2.5 Text to Image

Gineadair ìomhaighean coitcheann OpenAI: bidh e a’ leantainn stiùiridhean fada, sònraichte, a’ cur teacsa agus diagraman air dòigh glan agus is urrainn dha PNG no WebP a thilleadh le cùlaibh follaiseach airson stiogairean, ìomhaigheagan agus gearraidhean toraidh. Bidh còig ìrean càileachd a’ cothromachadh astar agus prìs an aghaidh mion-fhiosrachaidh. Bidh meudan a’ dol suas gu 3840 px air an oir fhada (iomadan de 16, aig char as motha 3:1); suas ri deich ìomhaighean gach iarrtas.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
promptriatanach
Seòrsastring
≤ 32,000 caractar
Prompt a chaidh a chleachdadh airson ìomhaighean a chruthachadh.
image_sizeroghainneil
Seòrsaobject
Bun-roghainnlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
Gabhaidh meudan às-chuir ri ainm ro-shuidhichte, nì {width, height}, no 'auto' airson an roghainn meud as fheàrr aig a’ mhodail. Feumaidh gach meud concrait tomhasan a ghabhas roinneadh le 16, oirean nach eil nas fhaide na 3840px, co-mheas taobh aig a’ char as motha 3:1, agus àireamh iomlan piogsail de 655,360–8,294,400.
backgroundroghainneil
Seòrsaenum
Bun-roghainnauto
autotransparentopaque
Cùl-raon na h-ìomhaighe a thàinig às.
qualityroghainneil
Seòrsaenum
Bun-roghainnhigh
autolowmediumhighxhighmax
Taghadh càileachd ìomhaighe, le 'auto' a’ fàgail a’ cho-dhùnaidh aig a’ mhodail. Thig barrachd mion-fhiosrachaidh aig suidheachaidhean nas àirde le dàil nas fhaide agus barrachd cleachdaidh tòcanan.
num_imagesroghainneil num_outputs
Seòrsainteger
Bun-roghainn1
1 – 10
Àireamh nan ìomhaighean ri chruthachadh.
output_formatroghainneil
Seòrsaenum
Bun-roghainnpng
jpegpngwebp
Cruth faidhle nan ìomhaighean às-chuir.
output_compressionroghainneil
Seòrsainteger | null
0 – 100
Suidheachadh teannachaidh a tha ri fhaighinn a-mhàin airson 'jpeg' no 'webp' ann an output_format; is e 0–100 an raon ceadaichte.
riatanach Ainm canonical, gabhar ris cuideachd

Toradh

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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
images
array of object {url, content_type, file_name, file_size, width, height}Ìomhaighean a chaidh a chruthachadh leis a’ mhodail.

Barrachd mhodalan: Teacsa gu Ìomhaigh

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/openai/gpt-image-2.5/flare/text-to-image.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt