Nano Banana image generation through the API
The image endpoint explained: three modes, request shape, and honest arithmetic on what an image costs.
2 min · · Updated · models · изображения · setup
Update, October 2026. Image generation through Zukko is temporarily unavailable. For the current model list, see the Models page or
GET https://api.zukko.pro/v1/models. Closest replacement: none yet — only text models are currently available in Zukko.
Images live on a separate endpoint — text models go through /v1/chat/completions or /v1/messages, images through /v1/images/generations. Billing differs too: per finished image rather than per token.
The minimal request
curl https://api.zukko.pro/v1/images/generations \
-H "Authorization: Bearer fetch_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2-text-to-image",
"prompt": "Microservice architecture diagram, flat graphics, light background"
}'The endpoint follows the OpenAI format, so a client library that already speaks image generation connects by changing the base URL.
Three modes, three models
The mode comes from the model you pick rather than a parameter — worth knowing, because it is easy to get wrong.
| Mode | Model | What to send |
|---|---|---|
| Text to image | nano-banana-2-text-to-image | prompt |
| Editing | nano-banana-2-edit-developer | prompt and images |
| From a reference | nano-banana-2-reference-to-image-developer | prompt and images |
The images field takes an array of URLs or data URLs. For editing that is the source picture; for reference mode, a sample of style or composition.
What an image costs
The price is fixed per image; prompt length does not affect it.
| Model | Per image |
|---|---|
nano-banana-2-text-to-image | $0.08 |
nano-banana-2-text-to-image-developer | $0.04 |
nano-banana-2-edit-developer | $0.04 |
nano-banana-2-lite-text-to-image-developer | $0.028 |
The developer variants cost half. The lite line is cheaper still and noticeably faster; on simple graphics the difference in output is small, on complex scenes it shows.
The practical consequence: iterate on prompts with the lite model and do the final pass on the full one. Ten tuning iterations on lite cost 28 cents against 80.
What not to expect
Image models handle text inside a picture poorly: captions come out with errors, and that is a property of the model class rather than this particular one. If your layout needs readable text, it is safer to leave space for it and place the caption as a separate layer.
Reproducing several references at once is also hard. Reference mode carries overall style well and specific details less so.
Connecting
The key and address are the same as for text models: https://api.zukko.pro/v1 for OpenAI-compatible clients, a fetch_... key in the Authorization: Bearer header. The list of available models comes from /v1/models, while prices and limits come from /v1/models/info (or the Models page in the dashboard).
zukko
Pay 25×
less
for Claude Code & ChatGPT
One fetch_* key and base URL api.zukko.pro — for Cursor, Claude Code, Codex, and any SDK.
Related articles
- xAI Grok API: Connecting Grok 4.7, Price and the 256K ContextHow to call grok-4.7 through an OpenAI-compatible API, what to do about the 256K context limit and what typical requests cost. Plus a comparison with Grok 4.6.
- GPT-6 Astra or Claude Fable 5.1: Two Top Models by Price and IndexTwo premium models with the same intelligence index and different Zukko prices. We price a single request and an agent session with cache, and explain how to choose on your own data.
- Qwen or DeepSeek via API: Price, Context and Intelligence IndexFour models, one task and an honest calculation: what a run costs on Qwen 3.8 Max and Flash versus DeepSeek V4 Pro and V4.1 Flash.
- Prompt Engineering Examples: 12 Ready-Made Templates for WorkTwelve prompt templates for everyday tasks: what each one says, why it is built that way, and what a single API call costs.