Langkau ke kandungan

Nano Banana Pro

Integrasikan

ID model nano-banana-pro
# 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?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Cinematic portrait of a young woman with long, silky dark brown hair, sitting and resting her chin on her hand, gazing softly off to the side with a gentle smile. She wears a deep crimson red flowy dress with puffed sleeves and a textured, crinkled fabric. Small floral pearl-and-crystal stud earrings. Dramatic low-key lighting: a single warm window light casting geometric window-shadow patterns on a dark wall, soft glow on her face, deep black background. Rosy cheeks, soft natural makeup, dreamy and romantic mood. Shallow depth of field, 85mm lens, ultra-detailed skin texture, rich contrast, moody studio photography, vertical 9:16",
    "aspect_ratio": "9:16",
    "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"

Permintaan ini: $0.15 150 kredit API Jalankan pada halaman ini

Dapatkan kunci API
Google Teks ke Imej Output 4Ksehingga 4K #typography#realism

Model imej terkuat Google, dengan tulisan yang boleh dipercayai, susun atur kompleks dan output sehingga 4K.

Contoh

Output · ~44 s
Cinematic portrait of a young woman with long, silky dark brown hair, sitting and resting her chin on her hand, gazin...

PromptCinematic portrait of a young woman with long, silky dark brown hair, sitting and resting her chin on her hand, gazing softly off to the side with a gentle smile. She wears a deep crimson red flowy dress with puffed sleeves and a textured, crinkled fabric. Small floral pearl-and-crystal stud earrings. Dramatic low-key lighting: a single warm window light casting geometric window-shadow patterns on a dark wall, soft glow on her face, deep black background. Rosy cheeks, soft natural makeup, dreamy and romantic mood. Shallow depth of field, 85mm lens, ultra-detailed skin texture, rich contrast, moody studio photography, vertical 9:16

1K9:16$0.15 · 150 kredit API

Prompt daripada @LettyVesper di X

Bina permintaan

Kawalan dijana daripada skema model. Kod dan harga dikemas kini apabila anda mengubahnya.

•diperlukan 638 / 50000

Arahan teks yang digunakan untuk menjana imej.

aspect_ratio

Nisbah bidang untuk imej yang terhasil.

resolution

Resolusi untuk imej output.

num_images lalai 1

Bilangan imej yang diminta untuk penjanaan.

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

Panduan persona dan gaya output pilihan yang meliputi seluruh permintaan, dihantar kepada Gemini sebagai arahan sistem atau kepada penyedia serasi OpenAI sebagai mesej sistem. Tiada apa-apa dihantar untuk arahan ini apabila nilainya kosong.

output_format lalai png

Format fail untuk imej yang terhasil.

safety_tolerance lalai 4

Tetapkan toleransi penyederhanaan kandungan antara tahap paling kurang ketat, 6, dan tahap paling ketat, 1, yang menyekat kebanyakan kandungan.

Nilai seed yang memulakan penjanaan nombor rawak.

POST /run/nano-banana-pro?wait=20 sebut harga → $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?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Cinematic portrait of a young woman with long, silky dark brown hair, sitting and resting her chin on her hand, gazing softly off to the side with a gentle smile. She wears a deep crimson red flowy dress with puffed sleeves and a textured, crinkled fabric. Small floral pearl-and-crystal stud earrings. Dramatic low-key lighting: a single warm window light casting geometric window-shadow patterns on a dark wall, soft glow on her face, deep black background. Rosy cheeks, soft natural makeup, dreamy and romantic mood. Shallow depth of field, 85mm lens, ultra-detailed skin texture, rich contrast, moody studio photography, vertical 9:16",
    "aspect_ratio": "9:16",
    "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"

Jalankan permintaan ini

Kunci anda kekal dalam pelayar ini: ia hanya dihantar kepada Doitong API dan disimpan (localStorage) hanya jika anda menanda Ingat. Dapatkan kunci API

Dibuat di Doitong

Karya awam yang dibuat dengan Nano Banana Pro oleh komuniti Doitong. Guna semula prompt dengan satu klik.

Karya awam dipaparkan: 16
[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план экрана компь...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план экрана компьютера. По экрану бегут строки фейковых данных: IP-адрес, город, личная информация. Поверх изображения — красный 'сканирующий' луч и мигающие символы тревоги. В отражении экрана видны амогусы с ножами...

Recreate this exact cinematic film shot from the reference image as a brand-new photorealistic re...

Recreate this exact cinematic film shot from the reference image as a brand-new photorealistic render. Match exactly: the composition and framing, the camera angle and lens, the lighting direction, the light rays and haze, the color grade, and the design of every object and character, including...

Strong rule: style --- Whimsical 3D Illustration ---. Strong rule: style --- Whimsical 3D Illustr...

Strong rule: style --- Whimsical 3D Illustration ---. Strong rule: style --- Whimsical 3D Illustration ---. Strong rule: style --- Whimsical 3D Illustration ---. Милая антропоморфная овечка в полный рост, длинная длинная стройная фигура, фигура удлиненная, пушистая кремово-белая кудрявая шерсть,...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план руки парня, ...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план руки парня, которая решительно нажимает кнопку 'Включить SILA VPN' на экране. В момент клика вся комната заливается мощным, чистым синим светом. Амогусы в ужасе отлетают от окон и дверей, их 2D-формы искажаются....

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Та же комната, но теперь ...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Та же комната, но теперь она залита спокойным синим светом от монитора. Парень расслабленно сидит в кресле и энергетик монстер. За окном видно, как побежденные амогусы с ножами грустно уходят. Стиль - полный реализм,...

Нужен кадр вот к этой секунде 00:08 без снега пусть будет лето, без текста Используй референс тол...

Нужен кадр вот к этой секунде 00:08 без снега пусть будет лето, без текста Используй референс только при необходимости, если он есть в кадре по этому сценарию Вот подробный сценарий вирального музыкального клипа. **Стиль и эстетика:** Яркая, насыщенная цветовая палитра в духе колоризованного...

Нужен кадр вот к этой секунде 00:48 без снега пусть будет лето, без текста Используй референс тол...

Нужен кадр вот к этой секунде 00:48 без снега пусть будет лето, без текста Используй референс только при необходимости, если он есть в кадре по этому сценарию Вот подробный сценарий вирального музыкального клипа. **Стиль и эстетика:** Яркая, насыщенная цветовая палитра в духе колоризованного...

Use the woman from the reference photo as the main character, preserve her facial identity, natur...

Use the woman from the reference photo as the main character, preserve her facial identity, natural facial features, realistic skin texture, eyes, lips, eyebrows and face shape. Create a magical cinematic summer fantasy scene. The woman is sitting or lying on soft green grass in a beautiful...

Tentang Nano Banana Pro

Model imej berasaskan Gemini yang menaakul tentang prompt sebelum melukis, jadi poster, infografik, menu dan imej produk dengan teks yang boleh dibaca terhasil dengan lebih tepat berbanding model berasaskan difusi sahaja. Pilih output 1K, 2K atau 4K dan sebarang nisbah aspek biasa, serta benarkan ia mencari maklumat di web secara pilihan untuk membumikan gambar dalam fakta semasa. Sehingga empat imej bagi setiap permintaan.

Parameter

Hantar sama ada nama kanonik atau nama natif, bukan kedua-duanya. Nama kanonik

NamaJenis LalaiDibenarkan Penerangan
promptdiperlukan
Jenisstring
≤ 50,000 aksara≥ 3 aksara
Arahan teks yang digunakan untuk menjana imej.
num_imagespilihan num_outputs
Jenisinteger
Lalai1
1 – 4
Bilangan imej yang diminta untuk penjanaan.
seedpilihan
Jenisinteger | null
Nilai seed yang memulakan penjanaan nombor rawak.
aspect_ratiopilihan
Jenisenum
Lalai1:1
auto21:916:93:24:35:41:14:53:42:39:16
Nisbah bidang untuk imej yang terhasil.
output_formatpilihan
Jenisenum
Lalaipng
jpegpngwebp
Format fail untuk imej yang terhasil.
safety_tolerancepilihan
Jenisenum
Lalai4
123456
Tetapkan toleransi penyederhanaan kandungan antara tahap paling kurang ketat, 6, dan tahap paling ketat, 1, yang menyekat kebanyakan kandungan.
system_promptpilihan
Jenisstring
Lalai
≤ 50,000 aksara
Panduan persona dan gaya output pilihan yang meliputi seluruh permintaan, dihantar kepada Gemini sebagai arahan sistem atau kepada penyedia serasi OpenAI sebagai mesej sistem. Tiada apa-apa dihantar untuk arahan ini apabila nilainya kosong.
resolutionpilihan
Jenisenum
Lalai1K
1K2K4K
Resolusi untuk imej output.
limit_generationspilihan
Jenisboolean
Lalaitrue
Had penjanaan percubaan: mendayakan `True` menggantikan sebarang arahan bilangan imej dalam prompt dan mengehadkan setiap pusingan prompting kepada 1 penjanaan.
diperlukan Nama kanonik, turut diterima

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "nano-banana-pro",
  "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": "A minimalist poster for a jazz night called \"Blue Hour\", a saxophone silhouette against a deep blue sky, bold sans-serif title",
    "aspect_ratio": "3:4",
    "resolution": "2K"
  },
  "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"
  }
}
Fail anda, pilihan andaSetiap outputs[].url ialah salinan pada storan kami: disimpan selama-lamanya (dibayar setiap GB-bulan) atau 7 hari secara percuma, mengikut tetapan akaun anda atau ?storage=.
Bentuk yang sama pada setiap modeltype, url, content_type, width, height dan duration, untuk imej, video dan audio. output ialah objek hasil model itu sendiri.
Medan output
images
array of object {url, content_type, file_name, file_size, width, height}Imej yang dihasilkan oleh model.
description
stringPerihalan yang mengiringi imej yang dijana.

Lebih banyak model: Teks ke Imej

Untuk ejen AI: halaman ini dalam Markdown tersedia di https://doitong.com/ms/developers/models/nano-banana-pro.md. Semua model dan panduan: https://doitong.com/developers/llms.txt