Skip to content

Imagen 4

Imagen 4 is Google's standard-tier image generation model, the default production choice in the Imagen 4 family, balancing photorealistic quality with practical generation speed for commercial photography, scene generation, and everyday visual asset pipelines.

Image Gen
index.ts
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'google/imagen-4.0-generate-001',
prompt: 'A red balloon on a wooden table.'
});

About Imagen 4

Imagen 4 is the standard tier in Google's Imagen 4 image generation family. It represents the typical production choice when neither speed nor quality is at an extreme. It launched alongside the fast and ultra variants as part of a new category of image-only models on AI Gateway, distinct from multimodal models that generate images as one output type among several.

The standard tier covers a wide range of commercial use cases: product photography with accurate color reproduction and material rendering, scene generation for e-commerce and marketing, editorial illustrations, and visual asset creation for content platforms. It delivers photorealistic quality across nature, wildlife, and cinematic scenes without requiring the ultra tier's additional cost.

Prompt adherence is a core strength of Imagen 4. The model renders complex descriptions (specific lighting conditions, material properties, background environment, and subject pose) with fidelity to the written description. For production pipelines where prompt engineering is a significant investment, this reliability means a refined prompt produces consistent, repeatable output.

As an image-only model, integration is straightforward. Pass prompts via experimental_generateImage (aliased as generateImage) from the AI SDK. There's no text response to parse, no modality configuration to establish, and no reasoning overhead.