Introduction
Google Imagen4 is a high-quality text-to-image generation model from Google, capable of creating stunning images from text descriptions.Request Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name, fixed as google/imagen4 |
| callBackUrl | string | No | Callback URL when task completes |
| input.prompt | string | Yes | Text description for image generation |
| input.negative_prompt | string | No | Negative prompt, describes unwanted content |
| input.aspect_ratio | string | No | Image aspect ratio, e.g. 1:1, 16:9, 9:16 |
| input.num_images | string | No | Number of images to generate |
| input.seed | string | No | Random seed for reproducible results |
Supported Aspect Ratios
1:1- Square16:9- Landscape widescreen9:16- Portrait vertical4:3- Standard landscape3:4- Standard portrait