Skip to main content
POST
Wan 2.6

Parameters and input modes

Send model and input for text-to-video or first-frame image-to-video, with an optional custom soundtrack add-on for either workflow. See the Body section below for defaults, enum values, and media limits. nsfw_check: true screens text/images; false or omitted skips it. Provider moderation still applies.

Use cases

Submit an example to POST /api/v1/tasks/create_task. The first-frame example uses a hosted sample image; replace cdn.example.com placeholder audio URLs with your own public HTTPS link meeting the Body limits.
Track results with data.task_id from the create-task response via Query task or callback_url (Webhook security); see Create task for submission errors and Quickstart for authentication. Archived video URLs remain valid for 14 days; tasks still unfinished after 24 hours are eligible for timeout cleanup at no charge.

Playground and pricing

Each request generates 1 video and bills requested output seconds at the chosen resolution rate; native or custom audio adds no extra charge. Failed tasks charge 0 credits. Check balances via Available Credits.

Try in Playground

Test text-to-video, first-frame animation, and audio options interactively.

View pricing

Compare 720p and 1080p per-second rates and bonus pricing.

Authorizations

Authorization
string
header
required

Sign in to APIstable, then create and copy a key from API Key management.

Send this HTTP header with every request:

Replace YOUR_API_KEY with the key you created.

Body

application/json
model
enum<string>
required

The APIstable model ID for this endpoint.

Available options:
wan-2.6
Example:

"wan-2.6"

input
object
required

wan-2.6: public HTTPS media without credentials, custom ports, or # fragments; 1 video per request; fallback unavailable. Billable seconds = requested output seconds. Video continuation and effects templates are not supported. When nsfw_check is true, APIstable screens text and images before submission; omitted or false skips APIstable screening. Video and audio are passed to the model provider, which applies its own moderation.

callback_url
string<uri>

Optional public HTTPS endpoint for signed completion callbacks; no redirects or private IPs.

Callbacks

POST
{$request.body#/callback_url}Webhook

Body

application/json

When the task succeeds or fails, APIstable sends a JSON POST to the callback_url supplied at creation. Verify the signature and return HTTP 2xx to acknowledge delivery.

Read data.status to determine the generation outcome. Successful tasks report succeeded with generated video URLs in data.result.urls. For a failed task, data.result is null and data.message contains the failure reason.

Use X-APIstable-Signature, X-APIstable-Timestamp, and X-APIstable-Event-Id to verify and deduplicate deliveries. See Webhook security.

Webhook payload example

code
integer
required
msg
string
required
Allowed value: "success"
data
object
required

Response

2XX

Webhook acknowledged.

Response

Accepted task. Use task_id to query the task, or receive the result at callback_url.

code
any
required
msg
any
required
data
object
required