Text-to-Image
Generate images from text prompts using Nano Banana and Imagen 4 models, with support forsearch grounding, text rendering, reference images, and configurable safety controls.
Available Models
vertex/nano-banana-flash
Nano Banana Flash
Gemini Flash
Fast
4K
10
Search grounding
vertex/nano-banana-pro
Nano Banana Pro
Gemini Pro
Standard
4K
10
Text rendering, character consistency
vertex/imagen-4
Imagen 4
Imagen 4.0
Standard
2K
4
Balanced quality and adherence
vertex/imagen-4-fast
Imagen 4 Fast
Imagen 4.0 Fast
Fastest
1K
4
Lowest cost, highest throughput
vertex/imagen-4-ultra
Imagen 4 Ultra
Imagen 4.0 Ultra
Slowest
2K
4
Highest quality, complex prompts
Nano Banana Flash
Model ID: vertex/nano-banana-flash | Engine: Gemini Flash
Optimized for fast generation, search-grounded accuracy, and high-volume workflows.
Minimal Request
{
"model": "vertex/nano-banana-flash",
"prompt": "A cozy Japanese ramen shop on a rainy night, steam rising from bowls, warm ambient lighting"
}With Parameters
{
"model": "vertex/nano-banana-flash",
"prompt": "A hyperrealistic macro photograph of a butterfly on a lavender flower, water droplets on wings, golden hour light",
"aspect_ratio": "4:3",
"quality": "2K",
"num_images": 1,
"temperature": 1.0,
"seed": 42
}Search Grounding
Set use_search_grounding: true to incorporate real-time Google Search context. This improves factual and visual accuracy for real-world subjects such as architecture, landmarks, and products.
Batch Variations
Generate multiple variations of a single prompt by setting num_images (up to 10). Increase temperature above 1.0 for greater variation between outputs.
Nano Banana Pro
Model ID: vertex/nano-banana-pro | Engine: Gemini Pro
Optimized for production-quality output, multi-language text rendering in images, 4K resolution, and consistent character or product depiction across multiple requests.
Minimal Request
With Parameters
Text Rendering
Nano Banana Pro renders text within generated images with high accuracy across multiple languages.
Reference Images
Pass reference images for character or product consistency across multiple outputs. Each reference includes a url and a description guiding the model on what to match.
Imagen 4
Model ID: vertex/imagen-4 | Engine: Imagen 4.0
General-purpose generation with high prompt adherence, multilingual support, and configurable safety filtering and person-generation policies.
Minimal Request
With Parameters
Safety Controls
Imagen models support fine-grained content policies via person_generation and safety_filter_level.
Imagen 4 Fast
Model ID: vertex/imagen-4-fast | Engine: Imagen 4.0 Fast
Optimized for bulk generation, rapid prototyping, and cost-sensitive workloads. Output is fixed at approximately 1K resolution.
Minimal Request
With Parameters
Async Mode
Set mode: "async" to return a task_id immediately instead of waiting for generation to complete. Poll GET /tasks/{task_id} for results.
Imagen 4 Ultra
Model ID: vertex/imagen-4-ultra | Engine: Imagen 4.0 Ultra
Highest quality output with high prompt adherence for complex multi-element compositions. Slower and higher cost than other Imagen 4 variants.
Minimal Request
With Parameters
Maximum Quality
Supported Aspect Ratios
1:1
Yes
Yes
Yes
4:3
Yes
Yes
Yes
3:4
Yes
Yes
Yes
16:9
Yes
Yes
Yes
9:16
Yes
Yes
Yes
3:2
Yes
Yes
—
2:3
Yes
Yes
—
21:9
Yes
Yes
—
1:4
Yes
Yes
—
4:1
Yes
Yes
—
5:4
Yes
Yes
—
4:5
Yes
Yes
—
Last updated
Was this helpful?