google/imagen-4.0-generate-001

imagen-4.0-generate-001
Docs
Schema

[Core Function] Imagen 4.0 is Google's flagship professional-grade text-to-image model designed for high-fidelity visual generation. [Strengths] It excels at industry-leading photorealism, exceptional typography/text rendering inside images, and strong prompt adherence, supporting up to 2K resolution and batch generation. [Best For] Highly recommended for general high-quality image generation, marketing assets (posters, product labels, menus, signage), and product photography mockups where readable text is required. [Limitations] Do NOT use this model if you need instant/real-time generation, native image editing (inpainting/outpainting), or negative prompts. It is strictly an image-only output model. [Routing] Use this model by default for high-quality, photorealistic text-to-image requests. If the user emphasizes speed or needs lower cost, route to Imagen 4.0 Fast. If the user demands the absolute highest detail and prompt precision, route to Imagen 4.0 Ultra.

$0.0322/img
text-to-image

Input

Image description text
Image aspect ratio
1:1
Output image resolution
imageSize
Person generation policy
allow_all
Number of images to generate per request

Result

No results yet

Run the model to preview the output here.

Next:

README

"## What Imagen 4.0 Does
Imagen 4.0 is Google’s standard text-to-image model, delivering high-quality, photorealistic output from text prompts. It supports batch generation, person control, and resolution up to 2K — a strong all-round choice for realistic imagery.

Key Features

  • Photorealistic Quality: Produces high-quality, true-to-life images from text.
  • Up to 2K Resolution: Select 1K or 2K output via imageSize.
  • Batch Output: Generate 1–4 images per request via sampleCount.
  • Common Aspect Ratios: Supports 1:1, 3:4, 4:3, 9:16, and 16:9.
  • Person Generation Control: Use personGeneration (dont_allow, allow_adult, allow_all) to govern depiction of people.
  • Asynchronous Architecture: Uses a ““Create Task → Poll Result”” API workflow for reliable integration.

How to Use Imagen 4.0

  1. Write a specific, detailed text prompt describing the scene, subject, and style.
  2. Submit a POST request to the /google/imagen-4.0-generate-001 endpoint with your prompt and optional sampleCount, aspectRatio, personGeneration, and imageSize.
  3. Receive a task_id with a ““pending”” status in the response.
  4. Poll the provided GET endpoint to monitor the task.
  5. Once complete, retrieve and download the generated image(s).

Best Use Cases

  • Photorealistic Marketing Visuals: Create realistic product, lifestyle, and campaign imagery.
  • Editorial & Concept Imagery: Generate detailed scenes for articles and presentations.
  • Design Mockups: Visualize realistic environments and products for client work.
  • Batch Asset Creation: Produce coordinated image sets in a single request.

Tips for Better Results

  • Be Specific for Photorealism: Use detailed prompts describing lighting, materials, and composition for the best realistic output.
  • Use 2K for Final Renders: Set imageSize: 2K when you need maximum detail.
  • Batch with sampleCount: Generate up to 4 variations per request to pick the strongest result.
  • Let Aspect Ratio Guide Composition: Choose a ratio that supports your intended framing.
  • Step Up to Ultra When Needed: For the absolute highest detail and photorealism, use Imagen 4.0 Ultra."

Parameters

Name Description Type Required Enums
prompt Image description text string Yes -
aspectRatio Image aspect ratio string No 1:1, 3:4, 4:3, 9:16, 16:9
imageSize Output image resolution string No 1K, 2K
personGeneration Person generation policy string No dont_allow, allow_adult, allow_all
sampleCount Number of images to generate per request integer No -

Pricing

Unit: $/img

Pricing
$0.0322/img
  • google/imagen-4.0-fast-generate-001: [Core Function] Imagen 4.0 Fast is a high-speed text-to-image model optimized for rapid visual generation. [Strengths] It offers incredible generation speed (approximately 2.7 seconds) and high cost-effectiveness while maintaining excellent text rendering inside images. [Best For] Highly recommended for rapid prototyping, quick design iteration, high-volume image generation, social media thumbnails, blog hero images, and UI mockups. [Limitations] Do NOT use this model if you require 2K resolution (it does not support the imageSize parameter) or the absolute highest cinematic fidelity and strict prompt alignment. Does not support negative prompts or native image editing. [Routing] Choose this model when the user emphasizes ‘fast’, ‘quick’, ‘rapid’, or needs high-volume, low-latency generation.
  • google/imagen-4.0-ultra-generate-001: [Core Function] Imagen 4.0 Ultra is Google’s premium text-to-image model optimized for the highest quality and instruction alignment. [Strengths] It delivers ultimate photorealistic detail, superior texture rendering, and extremely strict adherence to complex, multi-part prompt instructions, supporting up to 2K resolution. [Best For] Highly recommended for high-end commercial marketing assets, professional design, intricate artistic compositions, and scenarios where precise instruction-following is paramount. [Limitations] Do NOT use this model if you need instant/real-time generation, native image editing (inpainting/outpainting), or negative prompts. It is the most expensive tier in the Imagen family. [Routing] Choose this model when the user demands the absolute highest quality, ultimate detail, or has highly complex prompt instructions. Otherwise, default to standard Imagen 4.0 or Imagen 4.0 Fast.
  • openai/gpt-image-1.5: [Core Function] GPT Image 1.5 is a versatile text-to-image generation model. [Strengths] It balances solid visual performance with crucial utility features, notably its native support for generating images with transparent backgrounds. [Best For] Highly recommended for: creating UI icons, standalone logos, game assets, and any graphic design elements that require a transparent background. [Limitations] Do NOT use this model if you need 2K or 4K resolution. Its maximum supported resolution is 1536x1024. [Routing] Choose this model specifically when the user asks for ‘transparent background’, ‘no background’, or ‘PNG icon’. For standard, high-fidelity, or 4K image generation, use GPT Image 2 instead.
  • alibaba/wan2.7-image-pro: [Core Function] Wan 2.7 Image Pro is Alibaba’s flagship reasoning-enhanced image generation model. [Strengths] It features built-in chain-of-thought reasoning (Thinking Mode), exceptional prompt accuracy, native 12-language text rendering, and generates ultra-high-resolution 4K images. [Best For] Highly recommended for: print-ready large-format posters, complex logical prompts, and generating images containing specific text/typography. [Limitations] Do NOT use this model if you need to generate batch images rapidly (use Wan 2.7 Image instead) or if you specifically need negative prompts (use Qwen Image 2.0 Pro). [Routing] Use this model by default for high-end, 4K, or text-heavy image generation tasks.
  • alibaba/qwen-image-2.0-pro: [Core Function] Qwen Image 2.0 Pro is a professional-grade, highly controllable image generation model. [Strengths] It provides exquisite photorealism, professional infographics generation, supports NEGATIVE prompts, and can generate up to 6 image variants per API call. [Best For] Highly recommended for: workflows requiring strict negative prompt exclusion, batch generation (6 variants), and highly detailed infographics. [Limitations] Does not natively output 4K resolution (max is 2K). Does not have the explicit ‘Thinking Mode’ of Wan 2.7. [Routing] Route to this model specifically when the user provides a ‘negative prompt’ or asks for ‘batch generation of 6 images’.
  • bytedance/seedream-5.0-lite: [Core Function] Seedream 5.0 Lite is a smart, reasoning-enhanced image generation model with real-time web search capabilities. [Strengths] It excels at generating time-sensitive imagery, infographics, and content requiring deep world knowledge or online search, boasting superior prompt understanding and reasoning. [Best For] Highly recommended for: current-event posters, text-heavy designs, and concept art requiring complex logical reasoning. [Limitations] As a ‘Lite’ model, its absolute photorealistic aesthetic ceiling might be slightly lower than the specialized 4.5 model. [Routing] Use this model by default when the user needs real-time information, deep reasoning, or complex intent understanding in their image.
  • kling/kling-v3-t2i: [Core Function] Kling V3 T2I is the flagship text-to-image generation model. [Strengths] It delivers state-of-the-art aesthetic quality, high-resolution outputs (up to 2K), and exceptional prompt adherence. [Best For] Highly recommended for: professional concept art, photorealistic portraits, and high-fidelity image generation. [Limitations] Do NOT use this model if you need to strictly reference or edit an existing image. [Routing] Use this as the default model for all text-to-image requests on the Kling platform.
  • openai/gpt-image-2: [Core Function] GPT Image 2 is a state-of-the-art text-to-image generation model. [Strengths] It excels at generating highly detailed, photorealistic images from text descriptions, with native support for ultra-high resolutions including 2K and 4K (up to 3840x2160). [Best For] Highly recommended for: cinematic landscapes, detailed character portraits, high-end commercial concept art, and any scenario requiring maximum resolution and visual fidelity. [Limitations] Do NOT use this model if you need a transparent background (e.g., for icons or UI assets), as it does not support the background: transparent parameter. [Routing] Use this model by default for all high-quality image generation requests. If the user explicitly asks for an image with a transparent background, route to GPT Image 1.5 instead.
  • xai/grok-imagine-image-quality: [Core Function] Grok Imagine Image (Quality) is xAI’s high-fidelity text-to-image generation model. [Strengths] It excels at producing richly detailed, high-quality images from a text prompt, with flexible aspect ratios and an optional 2K resolution. [Best For] Highly recommended for: detailed concept art, marketing visuals, and any scenario where image quality is prioritized over generation speed. [Limitations] Do NOT use this model when latency is critical, as generation is slower than the standard model. [Routing] Use this model by default when the user emphasizes quality or detail. For faster, lighter generation use Grok Imagine Image (standard).

More in this series