更新日: 2026-06-06
Imagen 4
Google Imagen 4 is a professional image generation model, called through the Gemini API endpoint.Basic Usage
Response Format
Parameter Description
imageGenerationConfig
Batch Generation
Imagen 4 is a pure image generation model, so
responseModalities should be set to ["IMAGE"]. If you need text descriptions alongside images, use the Gemini image generation model instead.For Imagen 4 prompts, it is recommended to use detailed descriptive language including style, lighting, composition, and other details for better generation results.