Léim chuig an ábhar

Nano Banana 2

Comhtháthú

Aitheantas na samhla nano-banana-2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/nano-banana-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through cinematic macro photography. A small rectangular foundation area partially prepared on natural brown sand and compact soil, realistic miniature construction materials scattered naturally around the site, tiny red bricks, miniature cement bags, wooden beams, gravel, sand piles, metal rods, tiny buckets, miniature trowel, measuring tape, spirit level and other authentic construction tools. Giant human fingers and realistic human hands carefully interacting with the miniature materials, positioning the first construction pieces. The future farmhouse footprint clearly visible but construction has only just begun, with no completed walls or roof. Subtle markings and foundation trenches visible in the soil. A small empty area beside the foundation reserved for a future swimming pool. Extremely realistic material scale, authentic construction imperfections, tiny dust particles, cement residue, fingerprints, rough brick texture and granular soil detail. Professional miniature craftsmanship, photorealistic 8K detail, cinematic studio lighting, realistic soft shadows, shallow depth of field, strong foreground-to-background scale contrast, sharp focus on construction area, premium macro lens photography, realistic bokeh, natural color reproduction, high dynamic range, tactile textures, physically accurate lighting, believable human-to-miniature scale, no cartoon appearance, no CGI look, no text, no watermark.",
    "resolution": "1K"
  }'

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

An t-iarratas seo: $0.08 80 gcreidmheas API Rith ar an leathanach seo

Faigh eochair API
Google Téacs go hÍomhá Aschur 4Ksuas le 4K #typography#fast#wide-formats

Samhail íomhá Gemini mhear Google, ó dhréachtaí tapa 0.5K go 4K, le cóimheasa gné an-mhóra agus bunúsú gréasáin.

Samplaí

Aschur · ~19 s
Hyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through ...

LeidHyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through cinematic macro photography. A small rectangular foundation area partially prepared on natural brown sand and compact soil, realistic miniature construction materials scattered naturally around the site, tiny red bricks, miniature cement bags, wooden beams, gravel, sand piles, metal rods, tiny buckets, miniature trowel, measuring tape, spirit level and other authentic construction tools. Giant human fingers and realistic human hands carefully interacting with the miniature materials, positioning the first construction pieces. The future farmhouse footprint clearly visible but construction has only just begun, with no completed walls or roof. Subtle markings and foundation trenches visible in the soil. A small empty area beside the foundation reserved for a future swimming pool. Extremely realistic material scale, authentic construction imperfections, tiny dust particles, cement residue, fingerprints, rough brick texture and granular soil detail. Professional miniature craftsmanship, photorealistic 8K detail, cinematic studio lighting, realistic soft shadows, shallow depth of field, strong foreground-to-background scale contrast, sharp focus on construction area, premium macro lens photography, realistic bokeh, natural color reproduction, high dynamic range, tactile textures, physically accurate lighting, believable human-to-miniature scale, no cartoon appearance, no CGI look, no text, no watermark.

1K$0.08 · 80 gcreidmheas API

Leide ón @Strength04_X ar X

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

Treoracha téacs a úsáidtear chun íomhá a ghiniúint.

resolution

Taifeach na híomhá aschuir.

thinking_level

Roghnaigh 'minimal' nó 'high' chun smaointeoireacht na samhla a ghníomhachtú ag an leibhéal sin agus a smaointe a áireamh sa ghiniúint; má fhágtar an leibhéal gan socrú, fanann an smaointeoireacht díchumasaithe.

réamhshocrú auto

Roghnaigh cóimheas gné na híomhá ginte go sainráite, lena n-áirítear na roghanna foircneacha 4:1, 1:4, 8:1, 1:8, nó roghnaigh "auto" le haghaidh rogha bunaithe ar leid ag an tsamhail.

num_images réamhshocrú 1

Líon na n-íomhánna a iarrtar don ghiniúint.

Ardleibhéal system_prompt · output_format · safety_tolerance · seed · limit_generations
0 / 50000

Treoir roghnach ar phearsa agus ar stíl aschuir ar fud an iarratais, a sheoltar chuig Gemini mar threoir chórais nó chuig soláthraithe comhoiriúnacha le OpenAI mar theachtaireacht chórais. Ní sheoltar aon rud don treoir seo nuair atá an luach bán.

output_format réamhshocrú png

Formáid comhaid na híomhá deiridh.

safety_tolerance réamhshocrú 4

Socraigh lamháltas modhnóireachta ábhair idir an leibhéal is lú srianta, 6, agus an leibhéal is déine, 1, a chuireann bac ar fhormhór an ábhair.

Luach síl a thosaíonn giniúint uimhreacha randamacha.

POST /run/nano-banana-2?wait=20 luachan → $0.08
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/nano-banana-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through cinematic macro photography. A small rectangular foundation area partially prepared on natural brown sand and compact soil, realistic miniature construction materials scattered naturally around the site, tiny red bricks, miniature cement bags, wooden beams, gravel, sand piles, metal rods, tiny buckets, miniature trowel, measuring tape, spirit level and other authentic construction tools. Giant human fingers and realistic human hands carefully interacting with the miniature materials, positioning the first construction pieces. The future farmhouse footprint clearly visible but construction has only just begun, with no completed walls or roof. Subtle markings and foundation trenches visible in the soil. A small empty area beside the foundation reserved for a future swimming pool. Extremely realistic material scale, authentic construction imperfections, tiny dust particles, cement residue, fingerprints, rough brick texture and granular soil detail. Professional miniature craftsmanship, photorealistic 8K detail, cinematic studio lighting, realistic soft shadows, shallow depth of field, strong foreground-to-background scale contrast, sharp focus on construction area, premium macro lens photography, realistic bokeh, natural color reproduction, high dynamic range, tactile textures, physically accurate lighting, believable human-to-miniature scale, no cartoon appearance, no CGI look, no text, no watermark.",
    "resolution": "1K"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/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

Maidir le Nano Banana 2

Leagan níos tapúla agus níos saoire de Nano Banana Pro é, ach láimhseálann sé téacs in íomhánna agus radhairc ilréad go maith fós. Réimsíonn an t-aschur ó réamhamhairc 0.5K go 4K, le cóimheasa gné ó 1:8 go 8:1 do mheirgí agus scéalta ingearacha. Déanann cuardach roghnach gréasáin an pictiúr a bhunú ar fhíricí reatha, agus pleanálann leibhéal ard smaointeoireachta roghnach leagan amach casta sula ndéantar an líníocht. Suas le ceithre í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
≤ 50,000 gcarachtar≥ 3 charachtar
Treoracha téacs a úsáidtear chun íomhá a ghiniúint.
num_imagesroghnach num_outputs
Cineálinteger
Réamhshocrú1
1 – 4
Líon na n-íomhánna a iarrtar don ghiniúint.
seedroghnach
Cineálinteger | null
Luach síl a thosaíonn giniúint uimhreacha randamacha.
aspect_ratioroghnach
Cineálenum
Réamhshocrúauto
auto21:916:93:24:35:41:14:53:42:39:164:11:48:11:8
Roghnaigh cóimheas gné na híomhá ginte go sainráite, lena n-áirítear na roghanna foircneacha 4:1, 1:4, 8:1, 1:8, nó roghnaigh "auto" le haghaidh rogha bunaithe ar leid ag an tsamhail.
output_formatroghnach
Cineálenum
Réamhshocrúpng
jpegpngwebp
Formáid comhaid na híomhá deiridh.
safety_toleranceroghnach
Cineálenum
Réamhshocrú4
123456
Socraigh lamháltas modhnóireachta ábhair idir an leibhéal is lú srianta, 6, agus an leibhéal is déine, 1, a chuireann bac ar fhormhór an ábhair.
system_promptroghnach
Cineálstring
Réamhshocrú
≤ 50,000 gcarachtar
Treoir roghnach ar phearsa agus ar stíl aschuir ar fud an iarratais, a sheoltar chuig Gemini mar threoir chórais nó chuig soláthraithe comhoiriúnacha le OpenAI mar theachtaireacht chórais. Ní sheoltar aon rud don treoir seo nuair atá an luach bán.
resolutionroghnach
Cineálenum
Réamhshocrú1K
0.5K1K2K4K
Taifeach na híomhá aschuir.
limit_generationsroghnach
Cineálboolean
Réamhshocrútrue
Uasteorainn thurgnamhach giniúna a d’fhéadfadh cur isteach ar cháilíocht nuair a chumasaítear í. Le `True`, cuirtear gach babhta leidithe teoranta do 1 ghiniúint, sáraítear treoracha líon na n-íomhánna sa leid agus déantar neamhaird d’íomhánna idirmheánacha a ghineann an tsamhail.
thinking_levelroghnach
Cineálenum
minimalhigh
Roghnaigh 'minimal' nó 'high' chun smaointeoireacht na samhla a ghníomhachtú ag an leibhéal sin agus a smaointe a áireamh sa ghiniúint; má fhágtar an leibhéal gan socrú, fanann an smaointeoireacht díchumasaithe.
riachtanach Ainm canónach, glactar leis freisin

Aschur

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "nano-banana-2",
  "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": 80,
    "usd": "0.08",
    "charged": 80,
    "refunded": 0
  },
  "input": {
    "prompt": "A cozy bookshop window at night with a hand-painted sign reading \"Open Late\", warm light, rain on the glass",
    "aspect_ratio": "4:5",
    "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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.
description
stringCur síos a ghabhann leis na híomhánna ginte.

Tuilleadh samhlacha: Téacs go hÍomhá

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/nano-banana-2.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt