Qwen Image Edit Max
"vendor": "alibaba""model_name": "qwen-image-edit-max"Premium image editing model with enhanced quality - supports multi-image input/output, text modification, and advanced editing
Pricing Card
OFFICIALThis model is retired. New playground requests are unavailable. Documentation remains available for reference.
About
Premium image editing model with enhanced quality - supports multi-image input/output, text modification, and advanced editing
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-edit-max/generation" \
-H "Authorization: Bearer $MULEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"n": 1,
"seed": 0,
"size": "1024*1024",
"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-edit-max/generation" \
-H "Authorization: Bearer $MULEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"n": 1,
"seed": 0,
"size": "1024*1024",
"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-edit-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-edit-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
nintegerDefault: 1Number of images to generate (1-6).
seedintegerRandom seed for reproducibility [0, 2147483647]. Using the same seed helps ensure consistency of generated content. Note: Results are not guaranteed to be identical for every call even with the same seed.
sizeEnumOutput image resolution in format "width\*height". Width and height must be in range [512, 2048] pixels. Default: Maintains aspect ratio similar to input image with resolution close to 1024\*1024.
imageslist<string>* requiredArray of input image URLs or Base64-encoded images. Supports 1-3 images. For multi-image input, the order defines their sequence. The aspect ratio of the output image is determined by the last image. Image requirements: - Formats: JPG, JPEG, PNG, BMP, TIFF, WEBP, GIF (first frame only) - Resolution: Width and height should be between 384 and 3072 pixels - Size: No larger than 10 MB
promptstring* requiredImage editing instruction (max 800 characters). Describes the elements and visual features you want in the generated image. When editing multiple images, use "Image 1", "Image 2", "Image 3" to refer to corresponding images. Supports both Chinese and English.
prompt_extendbooleanDefault: trueEnable intelligent prompt rewriting. When enabled, a large language model optimizes the positive prompt. Significantly improves results for simple or less descriptive prompts.
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, error, worst quality, low quality, disfigured, extra fingers, bad proportions.
{
"n": 1,
"seed": 0,
"size": "1024*1024",
"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"
}
}