Imagen-4.0
Imagen 4.0 GccAi Image Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- Based on Google Imagen 4 model, high-quality image generation
- Only supports text-to-image, does not support image-to-image / reference images
- Supported ratios: 16:9 (landscape), 9:16 (portrait)
- Generated image links are valid for 24 hours, please save them promptly
POST
Documentation Index
Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
All APIs require Bearer Token authenticationGet API Key:Visit the API Key Management Page to obtain your API KeyAdd the following to your request header:
Body
Image generation model nameFixed value:
imagen-4.0-gccaiText description for image generationBoth English and Chinese descriptions are supported
Number of images to generateValue range: 1
Image generation ratioSupported formats:
1:1- Square4:3- Landscape3:4- Portrait16:9- Landscape (default)9:16- Portrait
Ratios not in the supported list (e.g.
21:9) will automatically fall back to the default 16:9 without raising an error.Unsupported fields:
image, image_urls, mask, quality, etc. will be ignored. If image_urls / image is passed, it will error directly: google_imagen4 currently supports text-to-image only.Response
Response status code
Response data array