curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/qwen-image-3.0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A cinematic still of an astronaut exploring an alien planet"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-abc123",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-abc123"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'prompt' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Qwen Image 3.0
[Core Function] Qwen Image 3.0 is Alibaba’s standard text-to-image model balancing quality and speed. [Strengths] It supports free-form output size (widthheight), optional negative prompts, intelligent prompt rewrite (direct/agent modes), batch generation of 1-6 images, and long structured prompts. [Best For] General creative stills, posters with readable text, product shots, and multi-variant exploration (n up to 6) when Pro-tier photorealism is not required. [Limitations] Do NOT use this if the user needs image editing with reference images (use Qwen Image 3.0 Edit). Keep total pixels within 512512 to 2048*2048. Very long prompts combined with a long negative_prompt may exceed the model input capacity (about 4.5k tokens total). [Routing] Prefer Qwen Image 3.0 Pro for higher photorealism; use this for balanced quality/speed. If the user provides reference image(s) to edit, route to Qwen Image 3.0 Edit instead.
curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/qwen-image-3.0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A cinematic still of an astronaut exploring an alien planet"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-abc123",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-abc123"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'prompt' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Image description text, supports Chinese and English
1 - 4500"A serene Japanese garden with cherry blossoms"
Negative prompt describing unwanted content
500"blurry, low quality"
Output image resolution as widthheight (e.g. 10241024). Optional; when omitted the model auto-selects. Total pixels should stay within 512512 to 20482048.
^\d+\*\d+$"1024*1024"
Number of images to generate (1-6)
1 <= x <= 61
Random seed for reproducible results
0 <= x <= 214748364742
Whether to enable intelligent prompt rewriting. Default true (recommended). When enabled, the model rewrites the positive prompt using the mode specified by prompt_extend_mode; most effective for short or simple prompts.
true
Prompt rewrite mode when prompt_extend is true. Default direct. direct: Direct Prompt Enhancement (DPE), suitable for most scenarios (T2I and I2I). agent: Agent Prompt Enhancement (APE), finer rewrite; text-to-image (T2I) only.
direct, agent "direct"