curl --request POST \
--url https://api.modellix.ai/api/v1/google/imagen-4.0-fast-generate-001/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Watercolor illustration of a Japanese pagoda surrounded by cherry blossoms"
}
'
{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-pqr678",
"model_id": "google/imagen-4.0-fast-generate-001",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-pqr678"
}
}
}Google Imagen 4.0 Fast text-to-image model optimized for speed. Supports prompt, sampleCount, aspectRatio, and personGeneration.
POST
/
imagen-4.0-fast-generate-001
/
async
curl --request POST \
--url https://api.modellix.ai/api/v1/google/imagen-4.0-fast-generate-001/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Watercolor illustration of a Japanese pagoda surrounded by cherry blossoms"
}
'
{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-pqr678",
"model_id": "google/imagen-4.0-fast-generate-001",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-pqr678"
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
application/json
Imagen 4.0 Fast request schema. Supports prompt, sampleCount, aspectRatio, and personGeneration.
Image description text
Minimum string length:
1Example:
"Watercolor illustration of a Japanese pagoda surrounded by cherry blossoms"
Number of images to generate per request
Required range:
1 <= x <= 4Example:
1
Image aspect ratio
Available options:
1:1, 3:4, 4:3, 9:16, 16:9 Example:
"1:1"
Person generation policy
Available options:
dont_allow, allow_adult, allow_all Example:
"allow_all"
⌘I