Qwen Image Max
"vendor": "alibaba""model_name": "qwen-image-max"text-to-image model with enhanced realism and text rendering
Pricing Card
OFFICIALThis model is retired. New playground requests are unavailable. Documentation remains available for reference.
About
text-to-image model with enhanced realism and text rendering
1. Calling the API
Setup your API Key
Set MULEROUTER_API_KEY as an environment variable in your runtime.
export MULEROUTER_API_KEY="YOUR_API_KEY"Submit a request
The API handles the submit protocol. For async models, it returns a task ID that you can poll for results.
response=$(curl -X POST "https://api.mulerouter.ai/vendors/alibaba/v1/qwen-image-max/generation" \
-H "Authorization: Bearer $MULEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"seed": 0,
"size": "1664*928",
"prompt": "A beautiful sunset over the ocean",
"prompt_extend": true,
"safety_filter": true
}')
REQUEST_ID=$(echo "$response" | grep -o '"id": *"[^"]*"' | head -1 | sed 's/"id": *//; s/"//g')2. Authentication
The API uses an API Key for authentication. Set the MULEROUTER_API_KEY environment variable in your runtime.
Authorization: Bearer YOUR_API_KEY header. Manage keys in your dashboard.3. Queue
For long-running requests, the API returns a task ID. Poll the status endpoint to check progress and retrieve the final result.
Submit a request
curl -X POST "https://api.mulerouter.ai/vendors/alibaba/v1/qwen-image-max/generation" \
-H "Authorization: Bearer $MULEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"seed": 0,
"size": "1664*928",
"prompt": "A beautiful sunset over the ocean",
"prompt_extend": true,
"safety_filter": true
}'Fetch request status
Check if a request is completed or still in progress.
curl -X GET "https://api.mulerouter.ai/vendors/alibaba/v1/qwen-image-max/generation/$REQUEST_ID" \
-H "Authorization: Bearer $MULEROUTER_API_KEY"Get the result
Once completed, the response includes the full result. See Output Schema for the expected format.
curl -X GET "https://api.mulerouter.ai/vendors/alibaba/v1/qwen-image-max/generation/$REQUEST_ID" \
-H "Authorization: Bearer $MULEROUTER_API_KEY"4. Files
Some attributes accept file URLs as input. You can pass your own URL or a Base64 data URI.
Data URI (base64)
Pass a Base64 data URI as file input. Large files may impact performance.
Hosted files (URL)
Pass publicly accessible URLs. Some hosts may block cross-site requests.
5. Schema
Input
seedintegerRandom seed for reproducibility [0, 2147483647]. Using the same seed produces more consistent results. Note: Results are not guaranteed to be identical for every call even with the same seed.
sizeEnumDefault: "1664*928"Image resolution in format "width\*height". Default: 1664\*928 Available resolutions and aspect ratios: - 1664\*928 (default): 16:9 - 1472\*1104: 4:3 - 1328\*1328: 1:1 - 1104\*1472: 3:4 - 928\*1664: 9:16
promptstring* requiredText description for the image (max 800 characters). Describes the desired content, style, and composition of the generated image. Supports both Chinese and English.
prompt_extendbooleanDefault: trueEnable intelligent prompt rewriting. When enabled, the model optimizes and refines the positive prompt. Keep enabled if your input prompt is simple or if you want the model to be more creative. Set to false if your prompt is already detailed and professional.
safety_filterbooleanDefault: trueEnable content safety filter. Defaults to true. Set to false to disable content safety inspection.
negative_promptstringNegative prompt describing unwanted content (max 500 characters). Used to constrain the image generation. Example: low resolution, low quality, deformed limbs, deformed fingers, oversaturated, waxy, no facial details, overly smooth, AI-like, chaotic composition, blurry text, distorted text.
{
"seed": 0,
"size": "1664*928",
"prompt": "A beautiful sunset over the ocean",
"prompt_extend": true,
"safety_filter": true
}Output
imageslist<string uri>Generated image URLs (only present when status is success)
task_infoobject{
"images": [
"https://storage.example.com/image-output.png"
],
"task_info": {
"id": "8e1e315e-b50d-4334-a231-be7d19a372f4",
"status": "completed",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:30.000Z"
}
}