GetRun by Getcore API Documentation

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.

POSThttps://run.getcore.id/v1/tasks
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

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

GEThttps://run.getcore.id/v1/tasks/{task_id}

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

StatusKeterangan
queuedTugas sedang diantrikan.
processingSedang diproses.
succeededBerhasil.
failedGagal — lihat error detail, tidak ditagih.
Output bertipe 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.

On this page
1 · Create a task Input parameters 2 · Poll the result Status values Best practices
Pricing summary
Nano Banana 2 Lite
Rp320 / image
  • Harga jelas, pembayaran mudah.
  • Transparan, tanpa biaya tersembunyi.
  • Hemat 63% dibanding harga pembanding.
Try in Playground ↗

Eksperimen model ini langsung di Playground untuk hasil instan.

Model details
Model IDnano-banana-2-lite/base
Modalityimage
Output typeimage/png
API versionv1
Need help?

Lihat daftar error umum di Error handling atau hubungi support@getcore.id.