Docs / image / Nano Banana 2 Lite
Nano Banana 2 Lite online
Fast, budget-friendly image generation and editing from Google. Great for drafts, thumbnails, and high-volume workloads.
Rp Rp320 / image
Rp870 −63.2%
nano-banana-2-lite/base model id
1 · Create a task
Kirim permintaan untuk membuat tugas generasi image. Wajib header Idempotency-Key. Saldo direservasi Rp320; task gagal tidak ditagih.
curl -X POST https://run.getcore.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2-lite/base",
"input": {
"prompt": "Use the provided banana mascot as the main character and create a polished comic-style launch scene in a bright creative workspace. Keep the mascot’s banana body, cheerful face, yellow color, rounded limbs, sparkles, running pose, and small “2” badge recognizable.\nPlace the mascot in the foreground, standing on a desk and proudly presenting a creator’s workspace. Around it, show floating printed image cards: a soft portrait, a sunny travel landscape, a skincare product image, and a split before-and-after editing card. In the background, add a clean bulletin board with a pinned launch card. The pinned card should contain the exact readable text: “Nano Banana 2 Lite API Is Live On Kie.ai”.\nUse warm cream and banana-yellow tones, rounded comic outlines, soft cel shading, playful motion lines, layered foreground and background elements, and a polished animated-commercial look. Make the scene feel like a joyful character-driven announcement rather than a simple poster or tablet screen.",
"aspect_ratio": "auto"
}
}'const res = await fetch('https://run.getcore.id/v1/tasks', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': 'my-task-001',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "nano-banana-2-lite/base",
"input": {
"prompt": "Use the provided banana mascot as the main character and create a polished comic-style launch scene in a bright creative workspace. Keep the mascot’s banana body, cheerful face, yellow color, rounded limbs, sparkles, running pose, and small “2” badge recognizable.\nPlace the mascot in the foreground, standing on a desk and proudly presenting a creator’s workspace. Around it, show floating printed image cards: a soft portrait, a sunny travel landscape, a skincare product image, and a split before-and-after editing card. In the background, add a clean bulletin board with a pinned launch card. The pinned card should contain the exact readable text: “Nano Banana 2 Lite API Is Live On Kie.ai”.\nUse warm cream and banana-yellow tones, rounded comic outlines, soft cel shading, playful motion lines, layered foreground and background elements, and a polished animated-commercial look. Make the scene feel like a joyful character-driven announcement rather than a simple poster or tablet screen.",
"aspect_ratio": "auto"
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://run.getcore.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "nano-banana-2-lite/base",
"input": {
"prompt": "Use the provided banana mascot as the main character and create a polished comic-style launch scene in a bright creative workspace. Keep the mascot’s banana body, cheerful face, yellow color, rounded limbs, sparkles, running pose, and small “2” badge recognizable.\nPlace the mascot in the foreground, standing on a desk and proudly presenting a creator’s workspace. Around it, show floating printed image cards: a soft portrait, a sunny travel landscape, a skincare product image, and a split before-and-after editing card. In the background, add a clean bulletin board with a pinned launch card. The pinned card should contain the exact readable text: “Nano Banana 2 Lite API Is Live On Kie.ai”.\nUse warm cream and banana-yellow tones, rounded comic outlines, soft cel shading, playful motion lines, layered foreground and background elements, and a polished animated-commercial look. Make the scene feel like a joyful character-driven announcement rather than a simple poster or tablet screen.",
"aspect_ratio": "auto"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
prompt |
string | Yes | A text description of the image you want to generate (max 20000 chars) | Use the provided banana mascot as the main cha |
image_urls |
array | No | Input images to transform or use as reference (supports up to 10 images) (array of file URLs) | — |
aspect_ratio |
string | Yes | Aspect ratio of the generated image Opsi: 1:1 1:4 1:8 2:3 3:2 3:4 4:1 4:3 4:5 5:4 8:1 9:16 16:9 21:9 auto |
auto |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "nano-banana-2-lite/base",
"price": {
"currency": "IDR",
"estimated": 320,
"reserved": 320,
"final": 320
},
"output": {
"urls": [
"https://storage.getcore.id/outputs/task_9f2c…/0.png"
],
"expires_at": "(7 hari setelah selesai)"
}
}
Status values
| Status | Keterangan |
|---|---|
queued | Tugas sedang diantrikan. |
processing | Sedang diproses. |
succeeded | Berhasil. |
failed | Gagal — lihat error detail, tidak ditagih. |
image/png, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.Best practices
Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.
Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.
