Overview
Generate images with the Wan 2.6 image model using text prompts and configurable output dimensions.
Primary Endpoint
POST
/api/v1/userWan26Image/startStart a new Wan2.6-Image generation task
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | - |
| prompt | string | Yes | Text prompt (max 2000 chars) |
| input_images | array<string> | No | Input images for editing (0-4 images) |
| aspect_ratio | enum: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 | No | - |
| negative_prompt | string | No | Negative prompt (max 500 chars) |
| prompt_extend | boolean | No | Enable smart prompt rewriting |
| force_generate | boolean | No | - |
| webhook_url | string | No | HTTPS URL to receive task.completed / task.failed notifications. Best-effort delivery, single attempt, no retries; clients should treat the detail API as the source of truth. |
| webhook_token | string | No | Optional plaintext token returned in the X-A2e-Webhook-Token header so receivers can verify the request originated from a2e. |
Request Example
curl -X POST "https://www.a2e.com.cn/api/v1/userWan26Image/start" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My generation task",
"prompt": "A cinematic scene with natural motion",
"input_images": [],
"aspect_ratio": "1:1",
"negative_prompt": "A cinematic scene with natural motion",
"prompt_extend": true,
"force_generate": false,
"webhook_url": "https://your-server.example.com/a2e/webhook",
"webhook_token": "a-shared-secret"
}'Related Endpoints
POST
/api/v1/userWan26Image/startStart a new Wan2.6-Image generation task
GET
/api/v1/userWan26Image/listGet task list
GET
/api/v1/userWan26Image/detail/{id}Get task details
POST
/api/v1/userWan26Image/batchDetailBatch query task details
DELETE
/api/v1/userWan26Image/{id}Delete task
Responses
200
Task started successfully or NSFW content detected
401
Unauthorized - Invalid or missing bearer token