Google Imagen 4 is an advanced image generation model capable of delivering high-quality visual performance, with strong prompt-following capabilities and stable generation results across various styles and scenarios.
Generate image
All API requests must be authenticated using a Bearer token in the Authorization header. Please ensure your API key is active.Authorization: Bearer sk-xxxxxx
These parameters come from the selected model form_schema. Switching models updates this list and the request example.
prompt*stringText description of the image. Imagen 4 excels at detail, text rendering and photorealism; the more specific the prompt, the better.
negative_prompt?stringNegative prompt to exclude unwanted elements, styles or artifacts. Optional.
size?stringAspect ratio of the output image. Imagen 4 supports 1:1, 3:4, 4:3, 9:16, 16:9. Default 1:1.
image_size?stringOutput image resolution. Imagen 4 Standard supports 1K and 2K. Default 1K.
n?numberNumber of images to generate per request, 1 to 4. Default 1.
person_generation?stringControls whether people may be generated. 'Allow All' is not available in the EU, UK, Switzerland, and MENA regions. Default Allow Adult.
seed?numberRandom seed, from 1 to 2147483647. The same seed with the same parameters reproduces consistent results. Leave empty for random.
created?integerParameter description for Created
data?arrayParameter description for Data