About Nano Banana
nano-banana is Google's Gemini 2.5 Flash Image model, a fast image generation and editing model with high prompt adherence and advanced text rendering within images. It generates at native 1024x1024 resolution while maintaining consistent quality across aspect ratios.
The model's main strengths are its ability to generate photorealistic images with accurate text integration (in multiple languages), its speed, and its strong semantic understanding of prompts. It reliably interprets and renders complex scenes, textual elements, and styles, outperforming previous diffusion models in prompt adherence and visual coherence, especially for applications requiring accurate text in images and mobile deployment.
Some other noteworthy features of nano-banana include mask-free inpainting (editing image regions with natural language rather than pixel masks), layout-aware outpainting (extending images while preserving perspective and lighting), and high style transfer consistency, making it suitable for professional branding and creative workflows.
Ready to build with Nano Banana?
Try Nano Banana in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.
curl -sSf -X POST https://hub.oxen.ai/api/ai/images/edit \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "nano-banana",
"prompt": "Generate an ox standing in the middle of a snow storm, standing on a long windy road. Zoomed out. Cinematic.",
"aspect_ratio": "16:9"
}'Request parameters
Every field Nano Banana accepts in the request body. See the API reference for response formats.
https://hub.oxen.ai/api/ai/images/edit| Field | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | Text description of what you want to generate, or the instruction on how to edit the given image. Use @Image1, @Image2, etc. to reference the input images. |
input_image | array<string>nullable | No | — | Optional reference image(s) to edit. Leave empty to generate from the prompt alone. Reference them in the prompt as @Image1, @Image2, etc. |
aspect_ratio | string | No | "16:9" | 1:116:99:164:33:43:22:3 |