Nano Banana · Image Generation
Nano Banana · Introduction
Nano-Banana image models for text-to-image and image-to-image. Models: • nano-banana (standard, 10/img) • nano-banana-pro (enhanced, 20/img) • nano-banana-2 (new, more ratios, 20/img) Returns a taskId; poll for the result.
How to call
- Submit:
POST /api/cqt/generator/nano, returns a taskId. - Query:
GET /api/cqt/info/nano?id=taskId, poll until status = succeeded.
Capability map
POSTText to Image
Generate an image from a text description.
POSTImage to Image
Generate a new image from a reference image + text (e.g. restyle).
Common Errors
| Code | msg | Meaning | How to fix |
|---|---|---|---|
| 451 | input_moderation | Content may violate policies (prompt or input image flagged). Message: This content may violate our policies. | Change the prompt words or the image, then try again |
| 451 | output_moderation | Generated result flagged | Modify the prompt and retry |
| 400 | numImages Only supports 1 - 4 | numImages out of range | Use numImages between 1 and 4 |
| 500 | timeout | Request timed out | Retry later; contact support if it persists |
Errors are returned as upstream bizCode, e.g. upstream bizCode=451, msg=prompt_unsafe.
Tip: after saving your API Key via Authorize, every capability page supports "Try it".