Wan 2.5 · Video API
Wan. Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills.
POST https://api.synesta.ai/v1/generations
Model ID: wan2.5-text-to-video
Notes
- Price from $1.13 per run (from 18 credits).
POST /estimategives the exact price for your parameters. - Takes no references.
- Duration, s: 5, 10.
- Prompt up to 1500 characters.
- Takes
negative.
Quick start
Start a generation and fetch the result, as in the Quickstart. The key is in the SYNESTA_API_KEY variable.
bash
curl -X POST https://api.synesta.ai/v1/generations \
-H "Authorization: Bearer $SYNESTA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"type":"video","model":"wan2.5-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}'
# then poll until status is done or failed
curl https://api.synesta.ai/v1/generations/GENERATION_ID \
-H "Authorization: Bearer $SYNESTA_API_KEY"python
import os, time, uuid, requests
BASE = "https://api.synesta.ai/v1"
headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"}
res = requests.post(
f"{BASE}/generations",
headers={**headers, "Idempotency-Key": str(uuid.uuid4())},
json={
"type": "video",
"model": "wan2.5-text-to-video",
"prompt": "A lighthouse at dawn, waves rolling in",
"aspect": "16:9",
"resolution": "720p",
"duration": 5,
},
)
data = res.json()["data"]
while data["status"] not in ("done", "failed"):
time.sleep(3)
data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"]
print(data["status"], [o["url"] for o in data["outputs"]])js
const BASE = 'https://api.synesta.ai/v1';
const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` };
const start = await fetch(`${BASE}/generations`, {
method: 'POST',
headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() },
body: JSON.stringify({
"type": "video",
"model": "wan2.5-text-to-video",
"prompt": "A lighthouse at dawn, waves rolling in",
"aspect": "16:9",
"resolution": "720p",
"duration": 5
}),
});
let { data } = await start.json();
while (data.status !== 'done' && data.status !== 'failed') {
await new Promise((r) => setTimeout(r, 3000));
({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json());
}
console.log(data.status, data.outputs.map((o) => o.url));Input schema
Body of POST /generations. An extra field or a wrong type gives 422 invalid_parameters, a field the model does not take gives 422 unsupported_input.
| Field | Type | Required | Default | Values and limits |
|---|---|---|---|---|
type | string | yes | — | video |
model | string | yes | — | — |
prompt | string | yes | — | max length 1500 |
aspect | string | "16:9" | 1:1, 4:3, 3:4, 16:9, 9:16 | |
resolution | string | "720p" | 480p, 720p, 1080p | |
duration | integer | 5 | 5, 10 | |
video_mode | string | — | max length 32 | |
negative | string | — | max length 500 | |
max_credits | number | — | min 0 | |
webhook_url | string | — | max length 2048; format uri |
Full JSON schema
json
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"model",
"prompt"
],
"properties": {
"type": {
"type": "string",
"enum": [
"video"
]
},
"model": {
"type": "string"
},
"prompt": {
"type": "string",
"maxLength": 1500
},
"aspect": {
"type": "string",
"enum": [
"1:1",
"4:3",
"3:4",
"16:9",
"9:16"
],
"default": "16:9"
},
"resolution": {
"type": "string",
"enum": [
"480p",
"720p",
"1080p"
],
"default": "720p"
},
"duration": {
"type": "integer",
"enum": [
5,
10
],
"default": 5
},
"video_mode": {
"type": "string",
"maxLength": 32
},
"negative": {
"type": "string",
"maxLength": 500
},
"max_credits": {
"type": "number",
"minimum": 0
},
"webhook_url": {
"type": "string",
"maxLength": 2048,
"format": "uri"
}
}
}Response
The example shows the "from" price: the final price depends on the parameters, POST /estimate returns it.
Accepted · 202
Right after the start. Credits are charged, there is no result yet.
json
{
"data": {
"id": 12345,
"type": "video",
"model": "wan2.5-text-to-video",
"status": "queued",
"prompt": "A lighthouse at dawn, waves rolling in",
"cost_credits": 18,
"cost_usd": 1.125,
"refunded": false,
"credits_refunded": 0,
"created_at": "2026-01-15T10:00:00Z",
"finished_at": null,
"outputs": [],
"error": null,
"queue": {
"queued_at": "2026-01-15T10:00:00Z"
},
"partial_refund": null,
"applied": {
"model": "wan2.5-text-to-video",
"aspect": "16:9",
"resolution": "720p",
"duration": 5
}
},
"meta": {
"replayed": false
}
}Done · GET /generations/{id}
When status is done. The links in the example are placeholders.
json
{
"data": {
"id": 12345,
"type": "video",
"model": "wan2.5-text-to-video",
"status": "done",
"prompt": "A lighthouse at dawn, waves rolling in",
"cost_credits": 18,
"cost_usd": 1.125,
"refunded": false,
"credits_refunded": 0,
"created_at": "2026-01-15T10:00:00Z",
"finished_at": "2026-01-15T10:00:42Z",
"outputs": [
{
"url": "https://storage.example.com/result.mp4",
"kind": "video",
"mime": "video/mp4",
"preview_url": null,
"thumb_url": "https://storage.example.com/result-thumb.webp"
}
],
"error": null,
"queue": {
"queued_at": "2026-01-15T10:00:00Z"
},
"partial_refund": null,
"applied": {
"model": "wan2.5-text-to-video",
"aspect": "16:9",
"resolution": "720p",
"duration": 5
}
}
}Other models
Wan family
- Wan 2.5 · from $0.19 per run
- Wan 2.7 · from $0.19 per run
- Wan 2.7 Pro · from $0.25 per run
- Wan 2.6 · from $0.50 per second
- Wan 2.6 Flash · from $0.31 per second
- Wan 2.7 · from $0.63 per second
- Wan 2.7 · from $0.63 per second
Video
- Grok Video · from $0.11 per second
- HappyHorse 1.0 · from $1.14 per second
- HappyHorse 1.1 · from $0.88 per second
- Runway · from $0.49 per run