Documentation Index
Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Wan 2.7 Image is an Alibaba image model for text-to-image, image editing, and sequential image generation. Use this page when you are ready to call the API after trying the model in the APIXO playground.| Capability | Value |
|---|---|
| Model ID | wan-2-7-image |
| Modes | omni-image, omni-image-pro |
| Prompt | Required, non-empty; supports Chinese/English; max 5000 characters (model-side truncation) |
| Input images | Optional image_urls, 1-9 URLs when provided |
Image limits (image_urls) | JPEG/JPG/PNG(no alpha)/BMP/WEBP, width/height 240-8000 px, ratio 1:8-8:1, file size <=20MB |
| Resolution tiers | 1k, 2k, 4k |
| 4k availability | Only when mode=omni-image-pro, no image_urls, and enable_sequential=false |
Output count (num_images) | 1-4 when enable_sequential=false (default 1); 1-12 when enable_sequential=true |
| Interactive edit boxes | bbox_list requires image_urls; list length must match image count; each image supports up to 2 boxes |
| Color palette control | color_palette is available only when enable_sequential=false; 3-10 colors; ratio sum must be 100.00% |
Endpoint and authentication
Base URL:| Method | Endpoint | Purpose |
|---|---|---|
POST | /generateTask/wan-2-7-image | Submit a generation task |
GET | /statusTask/wan-2-7-image?taskId={taskId} | Poll task status and retrieve results |
Copy-paste async quickstart
This minimal request submits a text-to-image task and returns ataskId.
taskId; you need it to poll for the final result.
Poll for result
resultJson after state becomes success:
Request body
Text-to-image
Image editing
Parameters
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.Required when
request_type is callback. Must be a callback URL that can receive the final task payload. See Webhooks.Wan 2.7 Image input parameters.
Response format
Submit task response
POST /generateTask/wan-2-7-image returns a task ID when the task is accepted:
API status code.
200 means the task was accepted.Human-readable status message.
Unique task identifier used with the status endpoint.
Status response fields
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing generated image URLs in
resultUrls. Present when state is success.Machine-readable failure code. Present when
state is failed.Human-readable failure message. Present when
state is failed.Task creation timestamp in Unix milliseconds.
Task completion timestamp in Unix milliseconds. Present after completion.
Processing duration in milliseconds. Present after completion when provider timing is available.
success, and resultJson.resultUrls contains only successful outputs.
Webhook callback mode
Use callback mode when your backend should receive the final result automatically instead of polling.Billing
Wan 2.7 Image is billed per generated image.| Mode | APIXO price |
|---|---|
omni-image | $0.03 / image |
omni-image-pro | $0.075 / image |
ModelPricing.md.
Latency and polling
Wan 2.7 Image tasks are asynchronous. The backend does not provide a fixed public latency SLA; actual latency varies by prompt complexity, requested image count, image input fetch speed, and queue load.| Workflow | Recommended first poll | Poll interval |
|---|---|---|
| Text-only generation | 10s after task creation | 5s-10s |
| Image editing / multi-image input | 10s-15s after task creation | 5s-10s |
Sequential generation (enable_sequential=true) | 15s after task creation | 8s-12s |
429, slow down requests and retry with backoff. For account-level details, see System APIs.
Errors and troubleshooting
HTTP errors
| Code | Meaning | What to do |
|---|---|---|
400 | Invalid request body, parameter type, or value | Fix the request before retrying |
401 | Missing or invalid API key | Check the Authorization header |
402 | Insufficient balance or quota | Add balance or switch account/key |
403 | Key or route cannot access the model | Check permissions and route strategy |
429 | Rate limit or concurrency limit reached | Retry with exponential backoff |
500 | Server error | Retry with backoff |
502 | Third-party model service error | Retry with backoff |
504 | Third-party model timeout | Retry or use callback mode |
Task failure codes
failCode is route-dependent and may come from mapped third-party model failures. Common values include:
| Fail code | Meaning | What to do |
|---|---|---|
PromptInvalid | Prompt is invalid or rejected by the model service | Rewrite the prompt and retry |
MissingParameter / BadRequest | Required fields are missing or malformed | Check required fields and types |
SensitiveContentDetected / ProhibitedContentDetected | Prompt or image input failed safety checks | Rewrite prompt or change input images |
RateLimitExceeded | Model service or route rate limit was reached | Retry with backoff |
Task TimeOut / Timeout | Generation did not finish in time | Retry or use callback mode |
Parameter troubleshooting
modemust beomni-imageoromni-image-pro.promptis required and cannot be empty.resolutionsupports only1k,2k,4k.4kis invalid whenmode=omni-image, whenenable_sequential=true, or whenimage_urlsis provided.num_imagesrange depends onenable_sequential:1-4when false,1-12when true.image_urlssupports1-9image URLs when provided.bbox_listrequiresimage_urls, its length must matchimage_urls, and each image supports at most2boxes.color_paletteis available only whenenable_sequential=false, with3-10colors and total ratio100.00%.