Léim chuig an ábhar

GPT Image 2.5 Text to Image

Comhtháthú

Aitheantas na samhla 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-iarratas seo: $0.013 13 gcreidmheas API · ≈ ₽1.40 Rith ar an leathanach seo

Faigh eochair API
OpenAI Téacs go hÍomhá #typography#transparent#instruction-following

Samhail íomhá OpenAI a leanann treoracha go láidir, a rindreálann téacs go glan agus a thacaíonn le cúlraí trédhearcacha.

Samplaí

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

LeidA 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 gcreidmheas API

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach 193 / 32000

Leid a úsáidtear chun íomhánna a ghiniúint.

image_size réamhshocrú landscape_4_3

Glacann toisí aschuir le hainm réamhshocraithe, réad {width, height}, nó 'auto' don rogha méide is fearr ón tsamhail. Ní mór do gach méid nithiúil a bheith inroinnte ar 16, gan ciumhais níos faide ná 3840px, cóimheas gné nach mó ná 3:1, agus líon iomlán picteilíní idir 655,360–8,294,400.

background réamhshocrú auto

Cúlra na híomhá iarmharaí.

quality

Roghnú cáilíochta íomhá, agus 'auto' ag fágáil an chinnidh faoin tsamhail. Bíonn moill níos faide agus úsáid níos mó tócan mar thoradh ar mhionsonraí breise ag socruithe níos airde.

num_images réamhshocrú 1

Líon na n-íomhánna atá le táirgeadh.

Ardleibhéal output_format · output_compression
output_format réamhshocrú png

Formáid comhaid na n-íomhánna aschuir.

Socrú comhbhrúite atá ar fáil do 'jpeg' nó 'webp' in output_format amháin; is é 0–100 an raon ceadaithe.

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

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Déanta ar Doitong

Saothair phoiblí déanta leis an GPT Image 2.5 ag pobal Doitong. Athúsáid leid le clic amháin.

Saothair phoiblí ar taispeáint: 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...

Maidir le GPT Image 2.5 Text to Image

Gineadóir íomhánna ilfheidhmeach OpenAI: leanann sé treoracha fada sonracha, leagann sé amach téacs agus léaráidí go glan agus féadann sé PNG nó WebP a thabhairt ar ais le cúlra trédhearcach do ghreamáin, deilbhíní agus ghearrthóga táirgí. Malartaíonn cúig leibhéal cáilíochta luas agus praghas ar mhaithe le mionsonraí. Téann na méideanna suas go 3840 px ar an imeall fada (iolraí de 16, 3:1 ar a mhéad); suas le deich n-íomhá in aghaidh na hiarrata.

Paraiméadair

Seol an t-ainm canónach nó an t-ainm dúchasach, ní an dá cheann. Ainmneacha canónacha

AinmCineál RéamhshocrúCeadaithe Cur síos
promptriachtanach
Cineálstring
≤ 32,000 gcarachtar
Leid a úsáidtear chun íomhánna a ghiniúint.
image_sizeroghnach
Cineálobject
Réamhshocrúlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
Glacann toisí aschuir le hainm réamhshocraithe, réad {width, height}, nó 'auto' don rogha méide is fearr ón tsamhail. Ní mór do gach méid nithiúil a bheith inroinnte ar 16, gan ciumhais níos faide ná 3840px, cóimheas gné nach mó ná 3:1, agus líon iomlán picteilíní idir 655,360–8,294,400.
backgroundroghnach
Cineálenum
Réamhshocrúauto
autotransparentopaque
Cúlra na híomhá iarmharaí.
qualityroghnach
Cineálenum
Réamhshocrúhigh
autolowmediumhighxhighmax
Roghnú cáilíochta íomhá, agus 'auto' ag fágáil an chinnidh faoin tsamhail. Bíonn moill níos faide agus úsáid níos mó tócan mar thoradh ar mhionsonraí breise ag socruithe níos airde.
num_imagesroghnach num_outputs
Cineálinteger
Réamhshocrú1
1 – 10
Líon na n-íomhánna atá le táirgeadh.
output_formatroghnach
Cineálenum
Réamhshocrúpng
jpegpngwebp
Formáid comhaid na n-íomhánna aschuir.
output_compressionroghnach
Cineálinteger | null
0 – 100
Socrú comhbhrúite atá ar fáil do 'jpeg' nó 'webp' in output_format amháin; is é 0–100 an raon ceadaithe.
riachtanach Ainm canónach, glactar leis freisin

Aschur

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"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
images
array of object {url, content_type, file_name, file_size, width, height}Íomhánna a tháirgeann an tsamhail.

Tuilleadh samhlacha: Téacs go hÍomhá

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/openai/gpt-image-2.5/flare/text-to-image.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt