Nano Banana 2
| Provider | |
| Model name | Nano-Banana-2 |
| Endpoint | /v1/chat/completions |
| Result | Markdown image content in choices[0].message.content |
| Pricing | See HiAPI Pricing |
Nano Banana 2 balances speed, visual quality, and production throughput. It is a good default when you need repeated brand, social, or campaign assets.
Key Parameters
Section titled “Key Parameters”| Parameter | Type | Notes |
|---|---|---|
model | string | Use Nano-Banana-2 |
messages | array | Put the prompt in a user message |
extra_body.google.image_config.aspect_ratio | string | Common values include 1:1, 16:9, 9:16, 4:3 |
extra_body.google.image_config.image_size | string | Common values include 1K and 2K |
stream | boolean | Set to false for a complete image response |
Example
Section titled “Example”curl -X POST https://api.hiapi.ai/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "Nano-Banana-2", "stream": false, "messages": [{"role": "user", "content": "Design a premium coffee brand social poster with a cold brew glass and minimal typography"}], "extra_body": { "google": { "image_config": {"aspect_ratio": "4:3", "image_size": "2K"} } } }'Next Steps
Section titled “Next Steps”- Read the Image Generation guide
- Compare with Nano Banana Pro
- Review API Reference