Seedance 2.0 立省 15% | 在 Video Generator 中創作 →

Google Nano Banana Lite Text to Image API

google /

Google Nano Banana 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.

text-to-image
輸入

就緒

A young foreign man standing on a city rooftop at sunrise, holding a shepherd’s staff, surrounded by small fluffy clouds like sheep, dreamy surreal fantasy, soft pastel sky.

$0.035每次運行·~28 / $1

下一步:

示例查看全部

A young foreign man standing on a city rooftop at sunrise, holding a shepherd’s staff, surrounded by small fluffy clouds like sheep, dreamy surreal fantasy, soft pastel sky.

A young foreign man standing on a city rooftop at sunrise, holding a shepherd’s staff, surrounded by small fluffy clouds like sheep, dreamy surreal fantasy, soft pastel sky.

相關模型

README

Google Nano Banana Lite Text-to-Image

Google Nano Banana 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 on prompt, size, and output_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

ParameterRequiredDescription
promptYesText prompt describing the image to generate.
sizeNoOutput aspect ratio preset. Default: 1:1.
output_formatNoOutput image format: png, jpeg, or webp. Default: png.

How to Use

  1. Write your prompt — Describe the subject, scene, style, lighting, and composition.
  2. Choose aspect ratio — Select the output size based on your target layout.
  3. Choose output format — Use png, jpeg, or webp depending on your workflow.
  4. Submit — Generate the image and retrieve the output URL.

Pricing

Output ImagesPrice
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 png for higher-quality general output.
  • Use jpeg for smaller file sizes.
  • Use webp when you need web-friendly image output.
  • Choose the aspect ratio based on the final placement, such as square, portrait, landscape, or wide banner.
無障礙:本網站使用的 AI 模型由第三方提供。

Nano Banana Lite Text To Image API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/google/nano-banana-lite/text-to-image with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Nano Banana Lite Text To Image below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/google/nano-banana-lite/text-to-image" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "size": "1:1",
    "output_format": "png"
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("google/nano-banana-lite/text-to-image", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "size": "1:1",
        "output_format": "png"
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "google/nano-banana-lite/text-to-image",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "size": "1:1",
    "output_format": "png"
}
)

print(output["outputs"][0])  # → URL of the generated output

Nano Banana Lite Text To Image API — Frequently asked questions

What is the Nano Banana Lite Text To Image API?

Nano Banana Lite Text To Image is a Google model for image generation, exposed as a REST API on WaveSpeedAI. Google Nano Banana 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. You can call it programmatically or try it from the playground above.

How do I call the Nano Banana Lite Text To Image API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/google/google-nano-banana-lite-text-to-image.

How much does Nano Banana Lite Text To Image cost per run?

Nano Banana Lite Text To Image starts at $0.035 per run. 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 Lite Text To Image accept?

Key inputs: `prompt`, `size`, `output_format`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/google/google-nano-banana-lite-text-to-image.

How do I get started with the Nano Banana Lite Text To Image API?

Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.

Can I use Nano Banana Lite Text To Image outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Google). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.