{"slug":"nano-banana-2.1","routeSlug":"nano-banana-21","name":"Nano Banana 2.1","developer":"Google DeepMind","modality":"image","inferenceTypes":["txt2img","img2img"],"surface":"native-v2","infrastructure":"partner-cloud","planRequired":"premium","status":"test_model","tags":["External","Partner Cloud","Premium"],"description":"Generate an image from a text prompt. Describe the subject, the layout, the lighting, the style and any text that should appear, then pick a size. The model returns the nearest of its fourteen aspect ratios at 1K, 2K or 4K.","useCases":["Run Nano Banana 2.1 via unified v2 jobs with free pre-run /price quotes","Partner-hosted flagship model accessible on Premium accounts"],"samplePrompt":"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.","pricing":{"unit":"Partner rate (estimated before run)","headlineRate":"Live estimate via /api/v2/quote","hasLiveQuoteEndpoint":true,"quoteEndpoint":"/api/v2/quote","isEstimated":true,"notes":"Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion."},"specs":{},"links":{"html":"https://runstage.dev/models/nano-banana-21","markdown":"https://runstage.dev/models/nano-banana-21.md","json":"https://runstage.dev/models/nano-banana-21.json","playground":"https://runstage.dev/playground?model=nano-banana-2.1"},"snippets":{"curl":"# 1. Free pre-run retail quote\ncurl -X POST 'https://runstage.dev/api/v2/quote' \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"nano-banana-2.1\",\"width\":1024,\"height\":1024}'\n\n# 2. Submit metered job\ncurl -X POST 'https://runstage.dev/api/v2/run' \\\n  -H \"Authorization: Bearer $RUNSTAGE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -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 }'\n\n# Optional: switch to image editing (img2img) by uploading multipart -F \"image=@input.png\"\n# 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\"\n\n# 3. Poll owner-scoped job result until status is \"done\" or \"failed\"\ncurl -H \"Authorization: Bearer $RUNSTAGE_API_KEY\" \\\n  'https://runstage.dev/api/v2/jobs/<request_id>'","typescript":"const headers = {\n  Authorization: `Bearer ${process.env.RUNSTAGE_API_KEY}`,\n  \"Content-Type\": \"application/json\",\n};\n\n// 1. Free pre-run retail quote\nconst quote = await fetch(\"https://runstage.dev/api/v2/quote\", {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({\n  \"model\": \"nano-banana-2.1\",\n  \"width\": 1024,\n  \"height\": 1024\n}),\n}).then((r) => r.json());\nconsole.log(\"Quoted USD:\", quote.data?.price);\n\n// 2. Submit metered job\nconst job = await fetch(\"https://runstage.dev/api/v2/run\", {\n  method: \"POST\",\n  headers,\n  body: JSON.stringify({\n  \"model\": \"nano-banana-2.1\",\n  \"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.\",\n  \"width\": 1024,\n  \"height\": 1024,\n  \"seed\": 42\n}),\n}).then((r) => r.json());\n\n// 3. Poll owner-scoped job status until terminal\nlet result;\nfor (let i = 0; i < 60; i++) {\n  result = await fetch(`https://runstage.dev/api/v2/jobs/${job.data.request_id}`, {\n    headers: { Authorization: headers.Authorization },\n  }).then((r) => r.json());\n  if ([\"done\", \"failed\", \"refunded\"].includes(result.data?.status)) break;\n  await new Promise((r) => setTimeout(r, 2000));\n}\nconsole.log(\"Status:\", result?.data?.status, result?.data?.result_url);","python":"import os, time, requests\n\nheaders = {\"Authorization\": f\"Bearer {os.environ['RUNSTAGE_API_KEY']}\"}\n\n# 1. Free pre-run retail quote\nquote = requests.post(\n    \"https://runstage.dev/api/v2/quote\",\n    json={\n    \"model\": \"nano-banana-2.1\",\n    \"width\": 1024,\n    \"height\": 1024\n},\n    timeout=15,\n).json()\nprint(\"Quoted USD:\", quote[\"data\"][\"price\"])\n\n# 2. Submit metered job\njob = requests.post(\n    \"https://runstage.dev/api/v2/run\",\n    headers=headers,\n    json={\n    \"model\": \"nano-banana-2.1\",\n    \"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.\",\n    \"width\": 1024,\n    \"height\": 1024,\n    \"seed\": 42\n},\n    timeout=30,\n).json()\njob_id = job[\"data\"][\"request_id\"]\n\n# 3. Poll owner-scoped job status until terminal\nresult = None\nfor _ in range(60):\n    result = requests.get(f\"https://runstage.dev/api/v2/jobs/{job_id}\", headers=headers, timeout=15).json()\n    if result[\"data\"][\"status\"] in (\"done\", \"failed\", \"refunded\"):\n        break\n    time.sleep(2)\nprint(\"Status:\", result[\"data\"][\"status\"], result[\"data\"].get(\"result_url\"))"}}