Control your API keys
Create and revoke keys, inspect API logs, and keep credentials out of client code.
Manage API keysImage AI for developers
Nano Banana, Nano Banana 2 and Nano Banana Pro from about $0.02 per image, 40–60% below Replicate list price. One REST API, and credits come back on a confirmed failure.
Independent API service. Not affiliated with Google. USD at the Pro plan rate.
Nano Banana 2 quickstart · 9 credits ≈ $0.04 / image

Models & pricing
Credits per image with the dollar equivalent at the Pro plan rate, next to Replicate’s list price for the same model and size.
| Model | Output size · price per image | Model details |
|---|---|---|
| Nano BananaEveryday text-to-image generation |
| View model |
| Nano Banana 2Selectable 1K, 2K & 4K output |
| View model |
| Nano Banana ProDetailed image generation from 1K |
| View model |
USD at the Pro plan rate, 10,000 credits for $44.90; other plans differ. Replicate list prices checked . The quickstart below uses Nano Banana 2 at 1024 × 1024.
Plan your usage
Choose a model, output size, and image count. Your estimate uses the same credit prices as generation.
View credit packs & expiryDeveloper quickstart
Start with Nano Banana 2 in Python, JavaScript, or cURL. Follow the request through to a downloaded image.
Read the full API quickstartKeep your key on your server.
Save the returned task ID.
Get the result from the original task.
A small yellow origami banana on a clean pale blue tabletop, soft natural studio light, minimalist product photograph, no text, no watermark.
Explore the setup first. Credits are used when you generate.
# Save this key before submitting. Reuse it for retries.
export REQUEST_KEY='YOUR_PERSISTED_UNIQUE_REQUEST_KEY'
curl 'https://nanobanana-api.com/api/ai/image/generate' \
-H "Authorization: Bearer $NANO_BANANA_API_KEY" \
-H "Idempotency-Key: $REQUEST_KEY" \
-H 'Content-Type: application/json' \
--data '{
"provider": "ai-relay",
"model": "nano-banana-2",
"prompt": "A small yellow origami banana on a clean pale blue tabletop, soft natural studio light, minimalist product photograph, no text, no watermark.",
"resolution": "1024x1024",
"numOutputs": 1,
"watermark": false
}'Your API workspace
Keep your API keys, request history, and generated images in one account. Return to your work from the dashboard.
PRODUCT PHOTOGRAPHY / SAMPLE GALLERYCreate and revoke keys, inspect API logs, and keep credentials out of client code.
Manage API keysThe Nano Banana 2 playground keeps your request so you can check the original task after refreshing the page.
Open the playgroundFind your images in Assets. Nano Banana 2 quickstart downloads require your session or API key. Save your files before they expire.
Explore your assetsNano Banana API is an independent service for generating and editing images with Nano Banana models. Create an account, get your own API key, and send image requests from your application. This service is not operated by Google.
Nano Banana costs 5 credits per image, about $0.022 at the Pro plan rate. Nano Banana 2 starts at 9 credits ($0.04) for 1K output and Nano Banana Pro at 20 credits ($0.09). That is 40–60% below Replicate list prices. Use the calculator above to estimate your usage, then visit Pricing for credit packs and expiry terms.
New accounts receive 20 signup credits. Nano Banana costs 5 credits per image; the Nano Banana 2 quickstart uses 9. Generation uses the credits available in your account. You can review examples and code before purchasing credits.
Sign in, open API Keys, and create a key. Keep it in your server environment and pass it as a Bearer token. You can revoke a key from the same page. Your project API key is different from a Google AI Studio key.
Compare the models offered by this service in the table above. Nano Banana supports everyday generation and editing; Nano Banana 2 has 1K, 2K and 4K profiles; Nano Banana Pro has 2K and 4K profiles. The quickstart demonstrates Nano Banana 2 at 1024 × 1024. Available options depend on the model and workflow.
Image generation uses our asynchronous REST API, not the OpenAI images endpoint. Submit a request, save the task ID, then check the task until it finishes. The examples above show the request, status and download steps.
The Nano Banana 2 quickstart uses an idempotency key so retries return the original task. Keep the same key and request body. An interrupted connection does not mean generation failed. The playground saves the request in your browser so you can continue checking it.
Completed images appear in Assets. The managed Nano Banana 2 flow returns protected download URLs that work with your login session or project API key. Download results before their expiry; this flow retains task media for 30 days.
From your first request onward
Review the model pricing, create your API key, and follow the quickstart from request to downloaded image.
Nano Banana API is an independent service. Not affiliated with Google.