Ugrás a tartalomhoz

Nano Banana 2

Integráció

Modellazonosító 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"

Ez a kérés: 0,08 $ 80 API-jóváírás Futtatás ezen az oldalon

API-kulcs beszerzése
Google Szövegből kép 4K kimenetlegfeljebb 4K #typography#fast#wide-formats

A Google gyors Gemini képpmodellje, a gyors 0.5K vázlatoktól a 4K felbontásig, szélsőséges képarányokkal és webes megalapozással.

Példák

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

PromptHyper-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.

1K0,08 $ · 80 API-jóváírás

Prompt @Strength04_X-tól az X-en

Kérés összeállítása

A vezérlők a modell sémájából jönnek létre. A kód és az ár a módosításokkal együtt frissül.

•kötelező 1538 / 50000

Kép generálására használt szöveges utasítások.

resolution

A kimeneti kép felbontása.

thinking_level

A modell gondolkodásának aktiválásához válassza a 'minimal' vagy 'high' értéket, és gondolatait is belefoglalja a generálásba; a szint kihagyása kikapcsolva tartja a gondolkodást.

alapértelmezett: auto

A generált kép képarányának explicit megadása, beleértve a szélsőséges 4:1, 1:4, 8:1 és 1:8 értékeket is, vagy az "auto" választása modellalapú, prompt szerinti döntéshez.

num_images alapértelmezett: 1

A generáláshoz kért képek száma.

Speciális system_prompt · output_format · safety_tolerance · seed · limit_generations
0 / 50000

Opcionális, teljes kérésre vonatkozó persona- és kimenetistílus-útmutatás, amelyet a Gemini rendszerutasításként, az OpenAI-kompatibilis szolgáltatók pedig rendszerüzenetként kapnak meg. Üres érték esetén ehhez az utasításhoz semmi nem kerül elküldésre.

output_format alapértelmezett: png

A létrejövő kép fájlformátuma.

safety_tolerance alapértelmezett: 4

A tartalommoderálás tűrésének beállítása a legkevésbé korlátozó 6-os és a legtöbb tartalmat blokkoló legszigorúbb 1-es szint között.

A véletlenszám-generálást inicializáló seedérték.

POST /run/nano-banana-2?wait=20 ár → 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"

Kérés futtatása

A kulcsod ebben a böngészőben marad: csak a Doitong API-nak küldjük el, és csak akkor mentjük a localStorage-ba, ha bejelölöd az Emlékezz rám lehetőséget. API-kulcs igénylése

A(z) Nano Banana 2 bemutatása

A Nano Banana Pro gyorsabb és olcsóbb testvérmodellje, amely továbbra is jól kezeli a képekben lévő szöveget és a többobjektumos jeleneteket. A kimenet a 0.5K előnézetektől a 4K felbontásig terjed, a képarányok pedig 1:8 és 8:1 közöttiek bannerekhez és függőleges történetekhez. Az opcionális webes keresés aktuális tényekkel támasztja alá a képet, az opcionális magas gondolkodási szint pedig összetett elrendezéseket tervez a rajzolás előtt. Kérésenként legfeljebb négy kép.

Paraméterek

Küldd el a kanonikus nevet vagy a natív nevet, de ne mindkettőt. Kanonikus nevek

NévTípus AlapértelmezettEngedélyezett Leírás
promptkötelező
Típusstring
≤ 50 000 karakter≥ 3 karakter
Kép generálására használt szöveges utasítások.
num_imagesnem kötelező num_outputs
Típusinteger
Alapértelmezett1
1 – 4
A generáláshoz kért képek száma.
seednem kötelező
Típusinteger | null
A véletlenszám-generálást inicializáló seedérték.
aspect_rationem kötelező
Típusenum
Alapértelmezettauto
auto21:916:93:24:35:41:14:53:42:39:164:11:48:11:8
A generált kép képarányának explicit megadása, beleértve a szélsőséges 4:1, 1:4, 8:1 és 1:8 értékeket is, vagy az "auto" választása modellalapú, prompt szerinti döntéshez.
output_formatnem kötelező
Típusenum
Alapértelmezettpng
jpegpngwebp
A létrejövő kép fájlformátuma.
safety_tolerancenem kötelező
Típusenum
Alapértelmezett4
123456
A tartalommoderálás tűrésének beállítása a legkevésbé korlátozó 6-os és a legtöbb tartalmat blokkoló legszigorúbb 1-es szint között.
system_promptnem kötelező
Típusstring
Alapértelmezett
≤ 50 000 karakter
Opcionális, teljes kérésre vonatkozó persona- és kimenetistílus-útmutatás, amelyet a Gemini rendszerutasításként, az OpenAI-kompatibilis szolgáltatók pedig rendszerüzenetként kapnak meg. Üres érték esetén ehhez az utasításhoz semmi nem kerül elküldésre.
resolutionnem kötelező
Típusenum
Alapértelmezett1K
0.5K1K2K4K
A kimeneti kép felbontása.
limit_generationsnem kötelező
Típusboolean
Alapértelmezetttrue
Kísérleti generálási korlát, amely engedélyezéskor hatással lehet a minőségre. `True` esetén minden prompting kör 1 generálásra korlátozódik, felülbírálva a prompt képszámra vonatkozó utasításait, és figyelmen kívül hagyva a modell által generált köztes képeket.
thinking_levelnem kötelező
Típusenum
minimalhigh
A modell gondolkodásának aktiválásához válassza a 'minimal' vagy 'high' értéket, és gondolatait is belefoglalja a generálásba; a szint kihagyása kikapcsolva tartja a gondolkodást.
kötelező Kanonikus név, szintén elfogadva

Kimenet

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"
  }
}
Az Ön fájljai, az Ön döntéseMinden outputs[].url a tárhelyünkön lévő másolat: örökre megőrizve (GB-hónaponként fizetve) vagy 7 nap ideig ingyenesen, a fiókbeállításod vagy a ?storage= alapján.
Azonos struktúra minden modellentype, url, content_type, width, height és duration képekhez, videókhoz és hanganyagokhoz egyaránt. Az output a modell saját eredményobjektuma.
A kimenet mezői
images
array of object {url, content_type, file_name, file_size, width, height}A modell által létrehozott képek.
description
stringA generált képeket kísérő leírás.

További modellek: Szövegből kép

AI-ügynököknek: ez az oldal Markdown formátumban itt található: https://doitong.com/hu/developers/models/nano-banana-2.md. Minden modell és útmutató: https://doitong.com/developers/llms.txt