{ "model_id": "google/nano-banana-pro", "provider_id": "google", "name": "Nano Banana Pro", "description": "Google's higher-quality image generation model with improved detail and prompt adherence.", "task": "Text-to-Image", "tags": [ "Image Generation", "High Quality" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Input tokens (per 1M)": 2, "Output tokens (per 1M)": 120 }, "examples": [ { "name": "Product Photography", "description": "Professional product shot", "input": { "prompt": "A sleek modern wireless headphone on a minimalist white marble surface with soft studio lighting and subtle shadows", "aspect_ratio": "1:1", "output_format": "png" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/product-photography.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/product-photography.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/nano-banana-pro',\n {\n prompt:\n 'A sleek modern wireless headphone on a minimalist white marble surface with soft studio lighting and subtle shadows',\n aspect_ratio: '1:1',\n output_format: 'png',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/nano-banana-pro\",\n \"input\": {\n \"prompt\": \"A sleek modern wireless headphone on a minimalist white marble surface with soft studio lighting and subtle shadows\",\n \"aspect_ratio\": \"1:1\",\n \"output_format\": \"png\"\n }\n}'" } ] }, { "name": "Fantasy Illustration", "description": "Epic fantasy scene", "input": { "prompt": "An epic fantasy illustration of a wizard casting a spell in an ancient library, magical runes floating in the air, dust motes catching golden light streaming through stained glass windows", "aspect_ratio": "16:9", "image_size": "2K" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/fantasy-illustration.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/fantasy-illustration.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/nano-banana-pro',\n {\n prompt:\n 'An epic fantasy illustration of a wizard casting a spell in an ancient library, magical runes floating in the air, dust motes catching golden light streaming through stained glass windows',\n aspect_ratio: '16:9',\n image_size: '2K',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/nano-banana-pro\",\n \"input\": {\n \"prompt\": \"An epic fantasy illustration of a wizard casting a spell in an ancient library, magical runes floating in the air, dust motes catching golden light streaming through stained glass windows\",\n \"aspect_ratio\": \"16:9\",\n \"image_size\": \"2K\"\n }\n}'" } ] }, { "name": "Architectural Visualization", "description": "Modern architecture render", "input": { "prompt": "A photorealistic architectural visualization of a modern glass house perched on a cliff overlooking the ocean at sunset", "aspect_ratio": "16:9", "image_size": "4K", "output_format": "jpg" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/architectural-visualization.jpg" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/architectural-visualization.jpg" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/nano-banana-pro',\n {\n prompt:\n 'A photorealistic architectural visualization of a modern glass house perched on a cliff overlooking the ocean at sunset',\n aspect_ratio: '16:9',\n image_size: '4K',\n output_format: 'jpg',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/nano-banana-pro\",\n \"input\": {\n \"prompt\": \"A photorealistic architectural visualization of a modern glass house perched on a cliff overlooking the ocean at sunset\",\n \"aspect_ratio\": \"16:9\",\n \"image_size\": \"4K\",\n \"output_format\": \"jpg\"\n }\n}'" } ] }, { "name": "Character Design", "description": "Game character concept art", "input": { "prompt": "A detailed character design sheet for a steampunk inventor, showing front view, side view, and detail callouts for mechanical arm and goggles", "aspect_ratio": "3:2" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/character-design.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__nano-banana-pro/character-design.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'google/nano-banana-pro',\n {\n prompt:\n 'A detailed character design sheet for a steampunk inventor, showing front view, side view, and detail callouts for mechanical arm and goggles',\n aspect_ratio: '3:2',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"google/nano-banana-pro\",\n \"input\": {\n \"prompt\": \"A detailed character design sheet for a steampunk inventor, showing front view, side view, and detail callouts for mechanical arm and goggles\",\n \"aspect_ratio\": \"3:2\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://deepmind.google/technologies/imagen/", "terms": "https://ai.google.dev/gemini-api/terms", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/google/nano-banana-pro.png", "metadata": { "Output Format": "JPEG" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "google-vertex-ai", "pricing": { "input_tokens": 2, "output_tokens": 120 } } ], "banner": null, "created_at": "2026-05-22 17:53:13", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string" }, "image_input": { "maxItems": 3, "type": "array", "items": { "type": "string" } }, "aspect_ratio": { "type": "string", "enum": [ "1:1", "3:2", "2:3", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9" ] }, "output_format": { "type": "string", "enum": [ "jpg", "png", "webp" ] }, "image_size": { "type": "string", "enum": [ "1K", "2K", "4K" ] } }, "required": [ "prompt" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "type": "string", "format": "uri" } }, "required": [ "image" ], "additionalProperties": false } } }