Leum chun t-susbaint

Nano Banana Pro Edit

Amalaich

ID a’ mhodail nano-banana-pro/edit
# 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/nano-banana-pro/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Faithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_tlhvxyf27ektm9ozuzozz5fn/0-1h3kLymYuP3n6Z-kAnWa8_Nh4eqcOs.png"
    ],
    "resolution": "1K"
  }'

# 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"

An t-iarrtas seo: $0.15 150 creideasan API Ruith e air an duilleig seo

Faigh iuchair API
Google Deasachadh Ìomhaighean Toradh 4Ksuas ri 4K #editing#consistency

Deasaich no cothlam dealbhan le stiùiridhean ann an cànan sìmplidh, a’ cumail aghaidhean agus toraidhean slàn, suas ri 4K.

Eisimpleirean

In-chur
Toradh · ~41 s
Faithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K

PromptFaithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K

1K$0.15 · 150 creideasan API

Prompas bho @NanoBanana air X

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 107 / 50000

Stiùiridhean teacsa airson ìomhaigh a dheasachadh.

•riatanach image_urls
Leig às faidhle, no

URLan a chomharraicheas ìomhaighean tùsail airson deasachadh no gineadh image-to-image.

aspect_ratio bun-roghainn auto

Co-mheas taobh na h-ìomhaigh a thig às.

resolution

Dùmhlachd-bhreacaidh na h-ìomhaighe às-chuir.

num_images bun-roghainn 1

Àireamh nan ìomhaighean a chaidh iarraidh airson gineadh.

Adhartach system_prompt · output_format · safety_tolerance · seed · limit_generations
0 / 50000

Stiùireadh roghainneil air persona agus stoidhle às-chuir airson an iarrtais gu lèir, air a chur gu Gemini mar stiùireadh siostaim no gu solaraichean co-chòrdail ri OpenAI mar theachdaireachd siostaim. Cha tèid dad a chur airson an stiùiridh seo nuair a tha an luach bàn.

output_format bun-roghainn png

Cruth faidhle na h-ìomhaigh a thig às.

safety_tolerance bun-roghainn 4

Suidhich fulangas measaidh susbaint eadar an ìre as lugha de chuingealachadh, 6, agus an ìre as teinne, 1, a chuireas bacadh air a’ mhòr-chuid den t-susbaint.

Luach sìl a thòisicheas gineadh àireamhan air thuaiream.

POST /run/nano-banana-pro/edit?wait=20 tuairmse → $0.15
# 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/nano-banana-pro/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Faithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_tlhvxyf27ektm9ozuzozz5fn/0-1h3kLymYuP3n6Z-kAnWa8_Nh4eqcOs.png"
    ],
    "resolution": "1K"
  }'

# 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"

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 Nano Banana Pro. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 16
Strong rule: style --- Cinematic Realism, dramatic lighting, high cont... ---. Close-up of Grandm...

Strong rule: style --- Cinematic Realism, dramatic lighting, high cont... ---. Close-up of Grandma Nina's face. Tears in her eyes, flour smeared on her cheeks. Vulnerable and scared expression. Character appearance reference (MUST match exactly): - Бабушка Нина: Strong rule: style --- Cinematic...

Strong rule: style --- 3d Pixar ---. Крупный план: Сая сладко спит в своей кроватке, её личико по...

Strong rule: style --- 3d Pixar ---. Крупный план: Сая сладко спит в своей кроватке, её личико полностью расслаблено, губы слегка приоткрыты. Она укрыта мягким пледом с изображением звезд. Свет ночника создает длинные, мягкие тени на стене. Атмосфера абсолютного покоя, счастья и завершенности....

Strong rule: style --- 3d Pixar ---. Крупный план рук отца, которые аккуратно и медленно поправля...

Strong rule: style --- 3d Pixar ---. Крупный план рук отца, которые аккуратно и медленно поправляют край вязаного шерстяного одеяла нежно-голубого цвета вокруг малыша. Фокус направлен на текстуру ткани и осторожные, любящие движения пальцев. Освещение мягкое, рассеянное, исходящее от приоткрытой...

Strong rule: style --- Cinematic Realism, dramatic lighting, high cont... ---. Small cozy kitchen...

Strong rule: style --- Cinematic Realism, dramatic lighting, high cont... ---. Small cozy kitchen. Warm lamp light. 68-year-old Grandma Nina making pies, flour on her hands, steam rising from the table, warm golden tones. Character appearance reference (MUST match exactly): - Бабушка Нина: Strong...

Strong rule: style --- Реалистичная 3D-анимация, Cinematic Lighting, P... ---. Женщина-астролог с...

Strong rule: style --- Реалистичная 3D-анимация, Cinematic Lighting, P... ---. Женщина-астролог слегка улыбается. В комнате становится заметно теплее по цвету. За панорамным окном город уже не холодный — мягкие, теплые вечерние огни. Character appearance reference (MUST match exactly): -...

Strong rule: style --- 3D Pixar ---. Крупный план лица Мирры в полумраке современной эзотерическо...

Strong rule: style --- 3D Pixar ---. Крупный план лица Мирры в полумраке современной эзотерической студии. На фоне видны мерцающие свечи и антикварные зеркала, создающие глубокие тени. Освещение контрастное, боковое, подчеркивающее острые скулы и пронзительный взгляд. Атмосфера таинственная и...

Strong rule: style --- 3D Pixar ---. Зеркало в спальне с размытым отражением, ночным столиком, ва...

Strong rule: style --- 3D Pixar ---. Зеркало в спальне с размытым отражением, ночным столиком, вазой цветов и приглушенным светом. Крупный план отражения в зеркале, слегка distorted. Мягкий лунный свет через занавески создает серебристые блики. Атмосфера меланхоличная и рефлексивная, полная...

Full-body character reference of the character shown in the reference film frame: exactly the sam...

Full-body character reference of the character shown in the reference film frame: exactly the same design, shape, proportions, colors, materials, wear and markings. Standing, front three-quarter view, the whole figure in frame, neutral dark studio background, soft even light, photorealistic,...

Mu Nano Banana Pro Edit

Modh deasachaidh Nano Banana Pro: thoir dha aon ìomhaigh no barrachd agus thoir cunntas air an atharrachadh, leithid cùl-raon atharrachadh, neach agus toradh a chur còmhla ann an aon sealladh, stoidhle atharrachadh no teacsa air soidhne a chàradh. Bidh e a’ cumail dearbh-aithnean agus mion-fhiosrachadh seasmhach thar dheasachaidhean. Toradh aig 1K, 2K no 4K ann an co-mheas taobh cumanta sam bith, bunait-lìn roghainneil, agus suas ri ceithir toraidhean 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
≤ 50,000 caractar≥ 3 caractar
Stiùiridhean teacsa airson ìomhaigh a dheasachadh.
num_imagesroghainneil num_outputs
Seòrsainteger
Bun-roghainn1
1 – 4
Àireamh nan ìomhaighean a chaidh iarraidh airson gineadh.
seedroghainneil
Seòrsainteger | null
Luach sìl a thòisicheas gineadh àireamhan air thuaiream.
aspect_ratioroghainneil
Seòrsaenum
Bun-roghainnauto
auto21:916:93:24:35:41:14:53:42:39:16
Co-mheas taobh na h-ìomhaigh a thig às.
output_formatroghainneil
Seòrsaenum
Bun-roghainnpng
jpegpngwebp
Cruth faidhle na h-ìomhaigh a thig às.
safety_toleranceroghainneil
Seòrsaenum
Bun-roghainn4
123456
Suidhich fulangas measaidh susbaint eadar an ìre as lugha de chuingealachadh, 6, agus an ìre as teinne, 1, a chuireas bacadh air a’ mhòr-chuid den t-susbaint.
image_urlsriatanach images
Seòrsaurl[] · image
URLan a chomharraicheas ìomhaighean tùsail airson deasachadh no gineadh image-to-image.
system_promptroghainneil
Seòrsastring
Bun-roghainn
≤ 50,000 caractar
Stiùireadh roghainneil air persona agus stoidhle às-chuir airson an iarrtais gu lèir, air a chur gu Gemini mar stiùireadh siostaim no gu solaraichean co-chòrdail ri OpenAI mar theachdaireachd siostaim. Cha tèid dad a chur airson an stiùiridh seo nuair a tha an luach bàn.
resolutionroghainneil
Seòrsaenum
Bun-roghainn1K
1K2K4K
Dùmhlachd-bhreacaidh na h-ìomhaighe às-chuir.
limit_generationsroghainneil
Seòrsaboolean
Bun-roghainntrue
Crìoch gineadh dheuchainneach: le bhith a’ cur `True` an comas, thèid stiùiridhean àireamh ìomhaighean sa prompt a thar-sgrìobhadh agus gach cuairt prompting a chuingealachadh ri 1 gineadh.
riatanach Ainm canonical, gabhar ris cuideachd

Gabhaidh paramadairean faidhle ri URL poblach https://, URI data: suas ri 10 MB, no file_url de luchdachadh suas. Faidhlichean

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "nano-banana-pro/edit",
  "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": 150,
    "usd": "0.15",
    "charged": 150,
    "refunded": 0
  },
  "input": {
    "prompt": "Put this white sneaker on a sunlit marble pedestal in a minimalist gallery, keep the shoe exactly as it is",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_sneaker_ad.jpg"
    ],
    "resolution": "1K"
  },
  "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
      }
    ],
    "description": "string"
  },
  "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"
  }
}
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 thàinig às an deasachadh.
description
stringTuairisgeul a tha a’ dol còmhla ris na h-ìomhaighean a chaidh a chruthachadh.

Barrachd mhodalan: Deasachadh Ìomhaighean

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/nano-banana-pro/edit.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt