curl --request POST \
--url https://api.modellix.ai/api/v1/openai/gpt-image-2/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"prompt": "A children's book drawing of a veterinarian using a stethoscope to listen to the heartbeat of a baby otter"
}
EOF{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-openai-abc123",
"model_id": "gpt-image-2",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-openai-abc123"
}
}
}GPT Image 2 is the state-of-the-art image generation model for fast, high-quality image generation. Uses the size parameter for output dimensions including 2K (2048x2048, 2048x1152) and 4K (3840x2160, 2160x3840). Default quality is low when omitted. Does not support transparent backgrounds.
curl --request POST \
--url https://api.modellix.ai/api/v1/openai/gpt-image-2/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"prompt": "A children's book drawing of a veterinarian using a stethoscope to listen to the heartbeat of a baby otter"
}
EOF{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-openai-abc123",
"model_id": "gpt-image-2",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-openai-abc123"
}
}
}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
Request payload for GPT Image 2 generation model.
Request payload for GPT Image 2 generation model.
Image description text, supports up to 32,000 characters
1 - 32000"A children's book drawing of a veterinarian using a stethoscope to listen to the heartbeat of a baby otter"
Output image size in pixels (width x height). Includes standard and 2K/4K presets
1024x1024, 1536x1024, 1024x1536, 2048x2048, 2048x1152, 3840x2160, 2160x3840 "1024x1024"
Image quality level. 'low': fast draft (default), 'medium': balanced, 'high': best quality
low, medium, high "high"