curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/wan2.7-image-pro-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"images": [
"https://example.com/car.jpg",
"https://example.com/paint.jpg"
],
"prompt": "Apply the graffiti from image 2 onto the car in image 1"
}
'{
"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 'images' 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"
}Wan 2.7 Image Pro Edit
[Core Function] Wan 2.7 Image Pro Edit is Alibaba’s flagship reasoning-enhanced image editing model. [Strengths] It supports interactive editing, character-consistent multi-image generation, and complex multi-reference modifications with deep reasoning. [Best For] Highly recommended for: professional image retouching, consistent character sheets, and complex structural edits. [Limitations] Do NOT use this model if you specifically need to use negative prompts to exclude elements during editing (use Qwen Image 2.0 Pro Edit instead). [Routing] Use this by default for high-end image editing and multi-reference consistent character generation.
curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/wan2.7-image-pro-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"images": [
"https://example.com/car.jpg",
"https://example.com/paint.jpg"
],
"prompt": "Apply the graffiti from image 2 onto the car in image 1"
}
'{
"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 'images' 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 editing instruction, supports Chinese and English
1 - 5000"Apply the graffiti from image 2 onto the car in image 1"
Input image URLs or Base64 strings (1-9 images). Formats: JPEG, JPG, PNG, BMP, WEBP. Resolution: [240, 8000] px per side, aspect ratio [1:8, 8:1], max 20MB per image
1 - 9 elements["https://example.com/image1.jpg"]
Output resolution. Preset: 1K, 2K. Or custom pixels (format: widthheight, range [768768, 2048*2048]). Max 2K for image editing
"2K"
Number of images. Default mode (enable_sequential=false): 1-4, default 4. Sequential mode (enable_sequential=true): 1-12, default 12. Directly affects cost
1 <= x <= 121
Random seed for reproducible results
0 <= x <= 2147483647Enable sequential mode for generating coherent multi-image sets from image input