Google Nano Banana 2 Lite Text To Image
Playground
Try it on WavespeedAI!Google Nano Banana 2 Lite Text to Image generates high-quality images from text prompts with low latency, flexible aspect ratios, and fast image creation for creative and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Google Nano Banana 2 Lite Text-to-Image
Google Nano Banana 2 Lite Text-to-Image generates images from text prompts with a fast, lightweight image model. The public interface keeps the workflow simple: write a prompt, choose an aspect ratio, select an output format, and generate a single image result.
Why Choose This?
-
Fast text-to-image generation
Generate images quickly from natural-language prompts. -
Flexible aspect ratios
Choose common square, portrait, landscape, and wide-format aspect ratio presets. -
Simple generation controls
The public form focuses onprompt,size, andoutput_format. -
Single-image output
Each request generates one image for predictable cost and behavior. -
Standard image output
Generated images are returned as URLs in the standard WaveSpeed prediction response.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text prompt describing the image to generate. |
| size | No | Output aspect ratio preset. Default: 1:1. |
| output_format | No | Output image format: png, jpeg, or webp. Default: png. |
| enable_sync_mode | No | Wait for the result to be generated and uploaded before returning the response. API only. Synchronous requests may hit timeouts because Google inference time can fluctuate. Default: false. |
| enable_base64_output | No | Return output as a BASE64 string instead of a URL. API only. Default: false. |
How to Use
- Write your prompt — Describe the subject, scene, style, lighting, and composition.
- Choose aspect ratio — Select the output
sizebased on your target layout. - Choose output format — Use
png,jpeg, orwebpdepending on your workflow. - Submit — Generate the image and retrieve the output URL.
Pricing
| Output Images | Price |
|---|---|
| 1 | $0.035 |
Best Use Cases
- Creative image generation — Generate concept art, illustrations, thumbnails, and visual ideas from text.
- Marketing assets — Create campaign images, social visuals, blog graphics, and promotional content.
- Prompt testing — Quickly iterate on prompt wording, style direction, and composition.
- Layout-specific generation — Generate square, portrait, landscape, or banner-style images for different use cases.
Pro Tips
- Use clear prompts with subject, scene, lighting, style, and composition.
- Keep the prompt focused on the main subject and visual intent.
- Use
pngfor higher-quality general output. - Use
jpegfor smaller file sizes. - Use
webpwhen you need web-friendly image output. - Choose the aspect ratio based on the final placement, such as square, portrait, landscape, or wide banner.
<ApiPage model={model}>
## Authentication
For authentication details, please refer to the [Authentication Guide](/docs-authentication).
## API Endpoints
### Submit Task & Query Result
## Parameters
### Task Submission Parameters
#### Request Parameters
#### Response Parameters
<SubmitResponse />
#### Result Request Parameters
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| id | string | Yes | - | Task ID |
#### Result Response Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., "success") |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content. |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: `created`, `processing`, `completed`, or `failed` |
| data.created_at | string | ISO timestamp of when the request was created (e.g., "2023-04-01T12:34:56.789Z") |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
</ApiPage>