Pricing
Compare models →Each run generates one image. The price depends on the resolution you choose, and on whether enable_web_search and/or enable_image_search are turned on. Both search options are off by default.
Resolution (resolution) | Default, no search | Web search on (enable_web_search=true) | Image search on (enable_image_search=true) | Both on (enable_web_search=true and enable_image_search=true) |
|---|---|---|---|---|
| 0.5k | ||||
| 1k (default) | ||||
| 2k | ||||
| 4k |
Search add-ons:
| Add-on | Extra cost per run |
|---|---|
Web search on (enable_web_search=true) | + |
Image search on (enable_image_search=true) | + |
- Default settings (1k, no search):
$0.07$0.063 per run.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:13:22:33:44:34:55:49:1616:921:91:44:11:88:1"1:1"JSON schema{
"x-placeholder": "Select aspect ratio"
} |
resolution | string | The resolution of the output image.0.5k1k2k4k"1k" |
enable_web_search | boolean | If enabled, the model will use web search to enhance the generation with real-time information.Default: false |
enable_image_search | boolean | If enabled, the model will use image search to enhance the generation with real-time information.Default: false |
output_format | string | The format of the output image.pngjpeg"png" |
README
Google Nano Banana 2 Text-to-Image
Nano Banana 2 Text-to-Image (Gemini 3.1 Flash Image) is Google’s lightweight yet powerful AI image generation model, built for creators who need fast, high-quality visuals from simple text prompts.
It transforms words into expressive, realistic images with remarkable clarity, composition, and style diversity — all within seconds.
Why Choose This?
- Fast generation
Optimized for speed while maintaining high visual quality.
- Multi-resolution support
Output in 1K, 2K, or 4K resolution based on your needs.
- Flexible aspect ratios
Multiple options including 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 4:1, 1:8, and 8:1.
- Cinematic quality
Excels at photorealistic scenes with atmospheric lighting and anamorphic lens effects.
- Prompt Enhancer
Built-in tool to automatically improve your descriptions.
- Format choice
Export in PNG or JPEG format.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the desired image |
| aspect_ratio | No | Aspect ratio: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 4:1, 1:8, 8:1 |
| resolution | No | Output resolution: 0.5k, 1k (default), 2k, 4k |
| enable_web_search | No | Enable web search to enhance generation with real-time info (default: false) |
| enable_image_search | No | Enable image search to enhance generation with real-time info (default: false) |
| output_format | No | Output format: png (default), jpeg |
How to Use
- Write your prompt — describe the image in detail, including style, lighting, and composition.
- Choose aspect ratio (optional) — select a preset or leave empty for default.
- Select resolution — choose 1K, 2K, or 4K based on your needs.
- Choose output format — PNG for transparency support, JPEG for smaller file size.
- Use Prompt Enhancer (optional) — click to automatically refine your description.
- Run — submit and download your generated image.
Pricing
Each run generates one image. The price depends on the resolution you choose, and on whether enable_web_search and/or enable_image_search are turned on. Both search options are off by default.
Resolution (resolution) | Default, no search | Web search on (enable_web_search=true) | Image search on (enable_image_search=true) | Both on (enable_web_search=true and enable_image_search=true) |
|---|---|---|---|---|
| 0.5k | ||||
| 1k (default) | ||||
| 2k | ||||
| 4k |
Search add-ons:
| Add-on | Extra cost per run |
|---|---|
Web search on (enable_web_search=true) | + |
Image search on (enable_image_search=true) | + |
- Default settings (1k, no search):
$0.07$0.063 per run.
Best Use Cases
- Cinematic Imagery — Generate atmospheric scenes with anamorphic lens effects and film-like quality.
- Character Portraits — Create detailed character illustrations with specific attributes.
- Social Media Content — Produce eye-catching visuals for various platforms with flexible aspect ratios.
- Marketing & Ads — Generate professional images for campaigns and promotions.
- Concept Art — Visualize creative ideas with photorealistic rendering.
Pro Tips
- Use cinematic language like "anamorphic lens look," "neon signs reflected in puddles," or "rainy Tokyo street at night" for atmospheric results.
- Be specific about character attributes (hair color, clothing, accessories) for consistent results.
- Match aspect ratio to your target platform: 9:16 for Stories/Reels, 16:9 for banners, 1:1 for feeds.
- Try the Prompt Enhancer to automatically improve your descriptions.
- 2K outputs are charged at 1.5× the standard rate; 4K at 2× the standard rate.
Notes
- Prompt is the only required field.
- If aspect_ratio is not selected, the model uses a default ratio.
- 2K resolution costs 1.5× and 4K resolution costs 2× the standard rate.
- Ensure your prompts comply with Google's Safety Guidelines.
Related Models
- Nano Banana Pro Text-to-Image — Pro tier with enhanced quality.
- Nano Banana Pro Edit — Edit images with text instructions.
- Nano Banana 2 Edit — Image editing capabilities.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Nano Banana 2 Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/nano-banana-2/text-to-image for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"aspect_ratio": "1:1",
"resolution": "1k",
"enable_web_search": false,
"enable_image_search": false,
"output_format": "png"
}Nano Banana 2 Text to Image API — Frequently asked questions
What is the Nano Banana 2 Text To Image API?
Nano Banana 2 Text To Image is a Google model for image generation, exposed as a REST API on OpenSIAI. Google Nano Banana 2 (Gemini 3.1 Flash Image) delivers Pro-quality image generation at Flash speed with 512px to 4K resolution support. Features include improved text rendering, character consistency for up to 5 characters, and real-world knowledge integration. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Nano Banana 2 Text To Image API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/google/nano-banana-2/text-to-image.
How much does Nano Banana 2 Text To Image cost per run or per second?
Nano Banana 2 Text To Image starts at $0.063 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Nano Banana 2 Text To Image accept?
Key inputs: prompt, aspect_ratio, resolution, enable_image_search, enable_web_search, output_format. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/google/nano-banana-2/text-to-image.
How long does Nano Banana 2 Text To Image take to generate?
Reported generation time on OpenSIAI is around 29 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Nano Banana 2 Text To Image outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Google). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
