Developer Docs/Wan 2.7 Image API

Wan 2.7 Image API

Build Wan 2.7 Image integrations with A2E. Review authentication, request parameters, task creation, status, and result endpoints.

Overview

Generate images with the Wan 2.7 image model using text prompts and configurable output dimensions.

Primary Endpoint

POST/api/v1/userWan27Image/start

Start a new Wan2.7-Image generation task

Request Parameters

NameTypeRequiredDescription
namestringYes-
promptstringYesText prompt (max 5000 chars)
modelenum: wan2.7-image | wan2.7-image-proNo-
input_imagesarray<string>NoInput images for editing (0-9 images, max 20MB each)
aspect_ratioenum: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9No-
bbox_listarray<object>NoBounding boxes for interactive editing
force_generatebooleanNo-
webhook_urlstringNoHTTPS 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_tokenstringNoOptional 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/userWan27Image/start" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "My generation task",
  "prompt": "A cinematic scene with natural motion",
  "model": "wan2.7-image",
  "input_images": [],
  "aspect_ratio": "1:1",
  "bbox_list": [],
  "force_generate": false,
  "webhook_url": "https://your-server.example.com/a2e/webhook",
  "webhook_token": "a-shared-secret"
}'

Related Endpoints

POST/api/v1/userWan27Image/start

Start a new Wan2.7-Image generation task

GET/api/v1/userWan27Image/list

Get task list

GET/api/v1/userWan27Image/detail/{id}

Get task details

POST/api/v1/userWan27Image/batchDetail

Batch query task details

DELETE/api/v1/userWan27Image/{id}

Delete task

Responses

200

Task started successfully or NSFW content detected

401

Unauthorized - Invalid or missing bearer token