Create WAN 2.7 — Text To Video
curl --request POST \
--url https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"enable_safety_checker": true,
"enable_prompt_expansion": true
}
}
'import requests
url = "https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video"
payload = { "input": {
"prompt": "Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"enable_safety_checker": True,
"enable_prompt_expansion": True
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {
prompt: 'Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text',
duration: 5,
resolution: '720p',
aspect_ratio: '16:9',
enable_safety_checker: true,
enable_prompt_expansion: true
}
})
};
fetch('https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"run_id": "<string>",
"endpoint": "<string>",
"model": "<string>",
"capability": "<string>",
"mode": "<string>",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"output": {},
"error": {
"type": "<string>",
"code": 123,
"message": "<string>"
},
"billing": {
"amount": "<string>",
"currency": "usd"
},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_ms": 123
}Alibaba
WAN 2.7 — Text To Video
Alibaba WAN 2.7 (2026-06): text-to-video, image-to-video, reference-to-video, and edit; 2–15s, 720p/1080p. Optimized for text to video via apisale.
POST
/
v1
/
run
/
alibaba
/
wan-2.7
/
text-to-video
Create WAN 2.7 — Text To Video
curl --request POST \
--url https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"enable_safety_checker": true,
"enable_prompt_expansion": true
}
}
'import requests
url = "https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video"
payload = { "input": {
"prompt": "Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"enable_safety_checker": True,
"enable_prompt_expansion": True
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {
prompt: 'Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text',
duration: 5,
resolution: '720p',
aspect_ratio: '16:9',
enable_safety_checker: true,
enable_prompt_expansion: true
}
})
};
fetch('https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"run_id": "<string>",
"endpoint": "<string>",
"model": "<string>",
"capability": "<string>",
"mode": "<string>",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"output": {},
"error": {
"type": "<string>",
"code": 123,
"message": "<string>"
},
"billing": {
"amount": "<string>",
"currency": "usd"
},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"elapsed_ms": 123
}Overview
Alibaba WAN 2.7 (2026-06): text-to-video, image-to-video, reference-to-video, and edit; 2–15s, 720p/1080p. Optimized for text to video via apisale.Docs = API contract + Try it (snapshot). Explore = browser playground. Model page = product examples.
Endpoint
POST https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video
| Model slug | alibaba/wan-2.7/text-to-video |
| Category | Text to Video (text-to-video) |
| Lab | Alibaba |
| Mode | async |
Pricing
From $0.070/sec apisale price is 30% below the vendor’s official list price.| Tier | Unit | Official price | apisale price |
|---|---|---|---|
| 720p | second | $0.100 | $0.070 |
| 1080p | second | $0.150 | $0.105 |
Official price = vendor list price. apisale price = what you pay through apisale.
Request
{
"input": {
"prompt": "Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"enable_safety_checker": true,
"enable_prompt_expansion": true
}
}
Parameters
Fields marked * are required. UseAuthorization: Key YOUR_API_KEY for REST.
number
Optional random seed for reproducibility.
string
required
Text prompt. Maximum 5000 characters.
number
Default:
5 Values: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15string
Optional driving audio (WAV/MP3, 3-30s).
string
Default:
1080p Values: 720p, 1080pstring
Default:
16:9 Values: 16:9, 9:16, 1:1, 4:3, 3:4string
Negative prompt. Maximum 2000 characters.
boolean
Default:
trueboolean
Default:
truestring
Optional HTTPS webhook when the run reaches a terminal state.
boolean
Block until completion (same Run response shape).
Input schema
Input schema
{
"params": {
"seed": {
"type": "int",
"description": "Optional random seed for reproducibility."
},
"prompt": {
"type": "string",
"required": true,
"max_length": 5000,
"description": "Text prompt. Maximum 5000 characters."
},
"duration": {
"type": "int",
"values": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"default": 5
},
"audio_url": {
"type": "media",
"description": "Optional driving audio (WAV/MP3, 3-30s)."
},
"resolution": {
"type": "enum",
"values": [
"720p",
"1080p"
],
"default": "1080p"
},
"aspect_ratio": {
"type": "enum",
"values": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"default": "16:9"
},
"negative_prompt": {
"type": "string",
"max_length": 2000,
"description": "Negative prompt. Maximum 2000 characters."
},
"enable_safety_checker": {
"type": "bool",
"default": true
},
"enable_prompt_expansion": {
"type": "bool",
"default": true
}
}
}
Submit response
Returns a Run withrun_id. Poll with GET /v1/runs/{run_id} or use Try it above.
string
required
Unique run ID — save for polling and webhooks.
string
required
queued (async) or terminal state for sync runs.object
Result when
status is succeeded — see Output schema below.Example (async submit)
{
"run_id": "run_550e8400-e29b-41d4-a716-446655440000",
"endpoint": "alibaba/wan-2.7/text-to-video",
"model": "text-to-video",
"capability": "video",
"mode": "text-to-video",
"status": "queued",
"output": null,
"error": null,
"billing": null,
"created_at": "2026-06-27T12:00:00.000Z",
"started_at": null,
"completed_at": null,
"elapsed_ms": null
}
Output
Whenstatus is succeeded, output follows this schema:
Output schema
Output schema
{
"type": "object",
"example": {
"videos": [
{
"url": "https://cdn.mountsea.ai/tasks/ms-example/0.mp4"
}
]
},
"required": [
"videos"
],
"properties": {
"videos": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
}
}
}
}
},
"description": "Succeeded task output: single video URL."
}
Example
curl -X POST "https://api.apisale.ai/v1/run/alibaba/wan-2.7/text-to-video" \
-H "Authorization: Key YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"enable_safety_checker": true,
"enable_prompt_expansion": true
}
}'
Related
Authorizations
Key sk-... (native REST) or Bearer sk-... (vendor SDKs)
Body
application/json
Show child attributes
Show child attributes
Example:
{
"prompt": "Golden-hour ocean waves rolling toward a black-sand beach, slow cinematic camera, warm specular highlights, ultra realistic water foam, no text",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"enable_safety_checker": true,
"enable_prompt_expansion": true
}
Response
201 - application/json
Run accepted
Unique run identifier
Model slug
Available options:
queued, processing, succeeded, failed, timeout, cancelled Show child attributes
Show child attributes
Show child attributes
Show child attributes
