Nano Banana 2 API overview
Nano Banana 2 is an AI image generation model available on UniAll AI for both text-to-image and image-to-image creation. The public model id is `NanoBanana2-1K` for the 1K variant, with related resolution variants available for 0.5K, 2K, and 4K output.
It is a practical option when you need fast image generation, reference-image based creation, product visuals, posters, social media graphics, or batch creative testing through an API.
What Nano Banana 2 supports
Nano Banana 2 supports two main generation modes:
- **Text to image**: generate an image from a prompt.
- **Image to image**: use one reference image plus a prompt to guide the result.
Key API fields include:
- `model`: use `NanoBanana2-1K` for the 1K model.
- `generation_mode`: `text_to_image` or `image_to_image`.
- `prompt`: required text instruction.
- `image_url`: optional reference image for image-to-image mode.
- `aspect_ratio`: `1:1`, `16:9`, `9:16`, `4:3`, or `3:4`.
- `resolution`: `0.5K`, `1K`, `2K`, or `4K`.
- `num_images`: 1 to 4 images per request.
The API is asynchronous and uses the image generation endpoint:
```http POST /v1/images/generations ```
Example request:
```json { "model": "NanoBanana2-1K", "generation_mode": "image_to_image", "prompt": "A premium product poster with clean lighting and sharp details.", "image_url": "https://example.com/reference.png", "aspect_ratio": "1:1", "resolution": "1K", "num_images": 1 } ```
Pricing comparison by resolution
Nano Banana 2 pricing depends on the selected resolution tier and is billed per generated image. For API usage on UniAll AI, the listed API prices are:
| Resolution | API price per image | |---|---:| | 0.5K | $0.033 | | 1K | $0.044 | | 2K | $0.066 | | 4K | $0.088 |
For online/user generation, the 1K model price shown for `NanoBanana2-1K` is $0.0544 per image. Higher resolution costs more, so 0.5K or 1K is usually better for drafts and A/B testing, while 2K or 4K is better for polished marketing assets.
Who should use Nano Banana 2?
Nano Banana 2 is a good fit for:
- **Developers** building image generation into apps, internal tools, or automation workflows.
- **Ecommerce teams** creating product posters, main images, and campaign visuals.
- **Marketing teams** producing social graphics, ad concepts, and brand visuals.
- **Agencies and resellers** that need an API-based image model with multiple resolution tiers.
- **Product teams** that want async generation and predictable per-image billing.
Nano Banana 2 vs other image APIs
Compared with a generic image generation API, Nano Banana 2 is strongest when you need a simple production workflow with both prompt-only generation and one-reference-image generation. Its selectable resolution tiers make it easier to control cost: use lower resolution for exploration and 4K for final assets.
It is not positioned here as an officially partnered or exclusive model. On UniAll AI, it is provided as a platform-selected image model with API access, pricing, and request parameters exposed for integration.
常见问题
What is the public model id for Nano Banana 2 API?
The public model id for the 1K variant is `NanoBanana2-1K`. Other resolution variants are available for 0.5K, 2K, and 4K.
Does Nano Banana 2 support reference images?
Yes. Nano Banana 2 supports image-to-image generation with one reference image using the `image_url` field, along with a required prompt.
How is Nano Banana 2 priced?
Nano Banana 2 is billed per generated image. API pricing varies by resolution: 0.5K is $0.033, 1K is $0.044, 2K is $0.066, and 4K is $0.088 per image.