Przejdź do treści

Nano Banana 2

Integracja

Identyfikator modelu 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"

To żądanie: 0,08 $ 80 kredytów API Uruchom na tej stronie

Uzyskaj klucz API
Google Tekst na obraz Wynik 4Kdo 4K #typography#fast#wide-formats

Szybki model obrazów Gemini firmy Google, od szybkich szkiców 0.5K po 4K, z ekstremalnymi proporcjami obrazu i ugruntowaniem w sieci.

Przykłady

Wynik · ~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 kredytów API

Prompt od @Strength04_X na X

Zbuduj żądanie

Elementy sterujące są generowane ze schematu modelu. Kod i cena aktualizują się podczas ich zmiany.

•wymagane 1538 / 50000

Instrukcje tekstowe używane do wygenerowania obrazu.

resolution

Rozdzielczość obrazu wynikowego.

thinking_level

Wybierz 'minimal' lub 'high', aby aktywować myślenie modelu na tym poziomie i dołączyć jego myśli do generowania; pozostawienie poziomu nieustawionego wyłącza myślenie.

domyślnie auto

Jawny wybór proporcji obrazu generowanego, w tym skrajnych opcji 4:1, 1:4, 8:1 i 1:8, albo wybór "auto", aby model dobrał je na podstawie promptu.

num_images domyślnie 1

Liczba obrazów żądanych do wygenerowania.

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

Opcjonalne wskazówki dotyczące persony i stylu wyniku dla całego żądania, przekazywane do Gemini jako instrukcja systemowa lub do dostawców zgodnych z OpenAI jako komunikat systemowy. Jeśli wartość jest pusta, dla tej instrukcji nic nie jest wysyłane.

output_format domyślnie png

Format pliku wynikowego obrazu.

safety_tolerance domyślnie 4

Ustaw tolerancję moderacji treści między najmniej restrykcyjnym poziomem 6 a najbardziej restrykcyjnym poziomem 1, który blokuje większość treści.

Wartość ziarna inicjująca generowanie liczb losowych.

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

Uruchom to żądanie

Klucz pozostaje w tej przeglądarce: jest wysyłany tylko do Doitong API i zapisywany (localStorage) tylko po zaznaczeniu opcji Zapamiętaj. Uzyskaj klucz API

Informacje o Nano Banana 2

Szybszy i tańszy model siostrzany Nano Banana Pro, który nadal dobrze radzi sobie z tekstem na obrazach i scenami z wieloma obiektami. Wynik obejmuje podglądy od 0.5K do 4K, z proporcjami obrazu od 1:8 do 8:1, odpowiednimi dla banerów i pionowych relacji. Opcjonalne wyszukiwanie w sieci opiera obraz na aktualnych faktach, a opcjonalny wysoki poziom rozumowania planuje złożone układy przed rysowaniem. Maksymalnie cztery obrazy na żądanie.

Parametry

Wyślij nazwę kanoniczną albo natywną, nie obie. Nazwy kanoniczne

NazwaTyp DomyślneDozwolone Opis
promptwymagane
Typstring
≤ 50 000 znaków≥ 3 znaki
Instrukcje tekstowe używane do wygenerowania obrazu.
num_imagesopcjonalne num_outputs
Typinteger
Domyślne1
1 – 4
Liczba obrazów żądanych do wygenerowania.
seedopcjonalne
Typinteger | null
Wartość ziarna inicjująca generowanie liczb losowych.
aspect_ratioopcjonalne
Typenum
Domyślneauto
auto21:916:93:24:35:41:14:53:42:39:164:11:48:11:8
Jawny wybór proporcji obrazu generowanego, w tym skrajnych opcji 4:1, 1:4, 8:1 i 1:8, albo wybór "auto", aby model dobrał je na podstawie promptu.
output_formatopcjonalne
Typenum
Domyślnepng
jpegpngwebp
Format pliku wynikowego obrazu.
safety_toleranceopcjonalne
Typenum
Domyślne4
123456
Ustaw tolerancję moderacji treści między najmniej restrykcyjnym poziomem 6 a najbardziej restrykcyjnym poziomem 1, który blokuje większość treści.
system_promptopcjonalne
Typstring
Domyślne
≤ 50 000 znaków
Opcjonalne wskazówki dotyczące persony i stylu wyniku dla całego żądania, przekazywane do Gemini jako instrukcja systemowa lub do dostawców zgodnych z OpenAI jako komunikat systemowy. Jeśli wartość jest pusta, dla tej instrukcji nic nie jest wysyłane.
resolutionopcjonalne
Typenum
Domyślne1K
0.5K1K2K4K
Rozdzielczość obrazu wynikowego.
limit_generationsopcjonalne
Typboolean
Domyślnetrue
Eksperymentalny limit generowania, który po włączeniu może wpływać na jakość. Przy `True` każda runda promptowania jest ograniczona do 1 generowania, co zastępuje instrukcje dotyczące liczby obrazów w promptcie i ignoruje obrazy pośrednie wygenerowane przez model.
thinking_levelopcjonalne
Typenum
minimalhigh
Wybierz 'minimal' lub 'high', aby aktywować myślenie modelu na tym poziomie i dołączyć jego myśli do generowania; pozostawienie poziomu nieustawionego wyłącza myślenie.
wymagane Nazwa kanoniczna, również akceptowana

Wynik

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"
  }
}
Twoje pliki, Twój wybórKażdy outputs[].url to kopia w naszej przestrzeni dyskowej: przechowywana bezterminowo (opłata za GB-miesiąc) lub 7 dni bezpłatnie, zgodnie z ustawieniem konta lub ?storage=.
Taki sam format w każdym modelutype, url, content_type, width, height i duration — tak samo dla obrazów, filmów i dźwięku. output to własny obiekt wyniku modelu.
Pola wyniku
images
array of object {url, content_type, file_name, file_size, width, height}Obrazy utworzone przez model.
description
stringOpis towarzyszący wygenerowanym obrazom.

Więcej modeli: Tekst na obraz

Dla agentów AI: ta strona w formacie Markdown jest dostępna pod adresem https://doitong.com/pl/developers/models/nano-banana-2.md. Wszystkie modele i przewodniki: https://doitong.com/developers/llms.txt