SandBase is live — $1 in free credits on signupStart free ›

Google modelsimage generation api

google/nano-banana-2-lite

Nano Banana 2 Lite by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Input
The text prompt to generate an image from.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
The format of the generated image. Allowed values: jpeg, png.
The seed for the random number generator.
When set, enables model thinking with the given level ('minimal' or 'high') and includes thoughts in the generation. Omit to disable. Allowed values: minimal, high.
Optional system instruction that steers the model's persona and output style across the request. Leave blank to omit; when provided, it is sent as the system instruction to Gemini (or as a system message on OpenAI-compatible providers).
Idle

Example output — click Run to generate your own

API README

Nano Banana 2 Lite

Nano Banana 2 Lite is a speed-first image generator for rapid ideation, interactive products, and high-volume visual pipelines. It retains reliable prompt adherence, character consistency, and legible in-image text while prioritizing low latency and cost efficiency.

This endpoint accepts a text prompt and produces one image. It is the Lite text-to-image route: it does not accept reference images, while optional thinking and system instructions can help shape more demanding generations.

Highlights

  • Built for fast iteration. Designed for high-throughput, near-real-time workflows where teams need to draft, compare, and refine many visual directions quickly.
  • Reliable instruction following. Preserves the requested subjects, scene details, and relationships across practical text-to-image prompts.
  • Character consistency. Maintains recognizable character traits, making it useful for repeated concepts and coherent creative exploration.
  • Legible visual text. Handles readable wording inside posters, labels, signs, and other designed imagery without turning the request into a separate editing workflow.

Pricing

UnitPrice
Per request$0.048375

When to Use

Good fitConsider alternatives
Rapid concept thumbnails and visual draftsEditing an existing image, which needs an edit endpoint
High-volume campaign or catalog ideationMaximum-detail professional artwork where speed is secondary
Interactive image experiencesMulti-image reference composition
Character-led concept explorationOutputs above the endpoint's documented resolution controls
Posters, labels, and social graphics with textVideo, animation, or audio generation

Prompt Guide

Describe the subject first, then lock composition, visible text, lighting, and style. Put any wording that must appear in quotation marks, and use concrete spatial directions instead of vague requests. Use thinking_level only when a more involved composition benefits from extra planning.

{
  "prompt": "A friendly yellow robot barista behind a compact walnut coffee counter, three-quarter view, morning window light, teal ceramic cups arranged on the right. A clean menu board above the robot reads \"ROBOT ROAST\" in bold white sans-serif letters. Polished editorial illustration with consistent character details.",
  "aspect_ratio": "16:9",
  "output_format": "png",
  "thinking_level": "minimal",
  "system_prompt": "Keep the composition clean and preserve all quoted text exactly."
}

Technical Specs

SpecValue
Model IDgoogle/nano-banana-2-lite
InputRequired text prompt (3–50,000 characters)
Aspect ratios21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16
Output formatPNG (default) or JPEG
Optional controlsInteger seed, system prompt, thinking level (minimal or high; omit to disable)
OutputOne downloadable image URL
ExecutionAsync

Related

Related Models

google/gemini-2.5-flash-image/editGemini 2.5 Flash Image Edit is Google's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.google/imagen-3Imagen 3 by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.google/imagen-3/fastImagen 3 Fast is Google's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.google/imagen-4/previewImagen 4 Preview by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.google/imagen-4/preview/fastImagen 4 Preview Fast is Google's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.google/imagen-4/preview/ultraImagen 4 Preview Ultra by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.google/nano-bananaGoogle's famous original image generation and editing model.google/nano-banana-2Nano Banana 2 is Google's new state-of-the-art fast image generation and editing model