Skip to main content

Overview

Wan 2.6 Image is an Alibaba image model for text-to-image and image-to-image generation. Use this page when you are ready to call the API after trying the model in the APIXO playground.

Endpoint and authentication

Base URL:
All requests require your APIXO API key:
Submit requests also require:

Copy-paste async quickstart

This minimal request submits a text-to-image task and returns a taskId.
Successful response:
Save the taskId; you need it to poll for the final result.

Poll for result

Processing response:
Success response:
Failed response:
Parse resultJson after state becomes success:

Request body

Text-to-image

Image-to-image

Parameters

string
default:"async"
required
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
string
Required when request_type is callback. Must be a callback URL that can receive the final task payload. See Webhooks.
object
required
Wan 2.6 Image input parameters.

Response format

Submit task response

POST /generateTask/wan-2-6-image returns a task ID when the task is accepted:
integer
API status code. 200 means the task was accepted.
string
Human-readable status message.
string
Unique task identifier used with the status endpoint.

Status response fields

string
Unique task identifier.
string
Current task state: pending, processing, success, or failed.
string
JSON string containing generated image URLs in resultUrls. Present when state is success.
string
Machine-readable failure code. Present when state is failed.
string
Human-readable failure message. Present when state is failed.
integer
Task creation timestamp in Unix milliseconds.
integer
Task completion timestamp in Unix milliseconds. Present after completion.
integer
Processing duration in milliseconds. Present after completion when provider timing is available.
If at least one image succeeds, the task can still return success, and resultJson.resultUrls includes only successful images.

Webhook callback mode

Use callback mode when your backend should receive the final result automatically instead of polling.
See Webhooks for delivery requirements and retry behavior.

Billing

Wan 2.6 Image is billed per generated image. Billing behavior:
For current public pricing, see Pricing. If this route is not listed there, backend billing follows ModelPricing.md.

Latency and polling

Wan 2.6 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.
For production workloads, use callback mode to avoid frequent polling.
Rate limits and concurrency can vary by account, API key, and route. If you receive 429, slow down requests and retry with backoff. For account-level details, see System APIs.

Errors and troubleshooting

HTTP errors

Task failure codes

failCode is route-dependent and may come from mapped third-party model failures. Common values include:

Parameter troubleshooting

  • mode must be text-to-image or image-to-image.
  • prompt is required for both modes and cannot be empty.
  • num_images supports only 1-3, with default 1.
  • aspect_ratio is only effective for text-to-image.
  • image_urls is required for image-to-image and must contain 1-3 image URLs.
  • In image-to-image, output size is fixed to 2K.
See Error Codes for the full error reference.