Google DeepMind
Nano Banana 2.1
Buat gambar dari prompt teks. Jelaskan subjek, tata letak, pencahayaan, gaya, dan teks yang perlu ditampilkan, lalu pilih ukuran. Model memilih rasio aspek yang paling mendekati dari 14 rasio yang tersedia dan menghasilkan gambar dalam resolusi 1K, 2K, atau 4K.
nano-banana-2.1- Endpoint
POST /api/v2/run- Masukan
- Text prompt · Reference images
- Keluaran
- Image (PNG / WebP)
- Tarif
- ~$0.0845 / 1K (1024px)
Contoh prompt“A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of w…”
Cocok untuk
- Buat gambar dari teks dan edit gambar melalui unggahan multipart di POST /api/v2/run dengan satu kunci API
- Dapatkan estimasi gratis melalui POST /api/v2/quote sebelum menggunakan kredit
- Kualitas gambar model unggulan mitra melalui satu kunci API dengan batas belanja saat pengiriman
- ID model API
nano-banana-2.1- Pengembang model
- Google DeepMind
- Modalitas
- Pembuatan dan penyuntingan gambar
- Masukan
- Text prompt · Reference images
- Keluaran
- Image (PNG / WebP)
- Endpoint
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Infrastruktur
- Kapasitas cloud mitra
Parameter permintaan
modelstring · wajibExact Runstage model slug (nano-banana-2.1).
promptstring · wajibVisual description of subject, composition, lighting, and medium.
width / heightinteger · opsionalOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
Parameter tambahan
qualityseedenhance_prompt
Mulai cepat
Salin permintaan siap pakai dengan ID model nano-banana-2.1. Periksa estimasi gratis terlebih dahulu (biaya akhir ditetapkan setelah selesai), lalu jalankan dengan kunci API Runstage Anda.
Buka Studio# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
-H "Content-Type: application/json" \
-d '{"model":"nano-banana-2.1","width":1024,"height":1024}'
# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "nano-banana-2.1", "prompt": "A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.", "width": 1024, "height": 1024, "seed": 42 }'
# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=nano-banana-2.1' --form-string 'prompt=A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.' -F "image=@input.png"
# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
'https://runstage.dev/api/v2/jobs/<request_id>'Harga
| Satuan tagihan dan opsi | Tarif (USD) |
|---|---|
| 1K · 1024×1024Standard square or portrait output (estimated) | ~$0.0845 |
| 2K · 2048×2048High-resolution editorial artwork (estimated) | ~$0.1372 |
| 4K · 4096×4096Ultra-high-resolution print master (estimated) | ~$0.2229 |
Catatan penagihan
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- Dapatkan estimasi biaya gratis melalui POST /api/v2/quote sebelum menggunakan kredit prabayar.
- Saat tugas selesai atau gagal, dana yang dicadangkan otomatis disesuaikan dengan biaya eksekusi akhir dan kredit yang tidak terpakai dikembalikan.
- Model menggunakan kapasitas eksternal mitra. Biaya akhir disesuaikan berdasarkan metrik eksekusi yang dilaporkan.
Tarif katalog terkini di Runstage. Kredit prabayar USD dengan batas belanja per kunci.
Bandingkan di katalog lengkap