Skip to main content
POST
/
v1
/
videos
Wan text-to-video
curl --request POST \
  --url https://api.powertokens.ai/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "wan2.7-t2v",
  "prompt": "Realistic style, a black kitten curiously looks up at the sky, the camera gradually rises from eye level.",
  "seconds": "5",
  "size": "1080P"
}
'
{
  "id": "<string>",
  "task_id": "<string>",
  "object": "video",
  "model": "<string>",
  "progress": 123,
  "created_at": 123
}

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> in the request header.

Body

application/json
model
enum<string>
required

Wan text-to-video model. The platform currently supports wan2.7-t2v.

Available options:
wan2.7-t2v
prompt
string
required

Text prompt describing the desired video content. Supports Chinese and English, up to 800 characters.

seconds
enum<string>
default:5

Video duration (seconds) as a string. Default is "5".Range: [2, 15].

Available options:
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
size
enum<string>
default:1080P

Output video resolution tier. wan2.7-t2v defaults to 1080P on the platform. Options: 720P, 1080P.

Available options:
720P,
1080P
prompt_extend
boolean
default:false

Whether to enable intelligent prompt rewriting. The platform passes this field through to the upstream provider.

watermark
boolean
default:false

Whether to add a watermark to the video.

seed
integer

Random seed, range [0, 2147483647].

negative_prompt
string

Negative prompt describing content you do not want in the video. Up to 500 characters.

Response

Submitted successfully. Returns a video task object.

id
string

Unique task identifier.

task_id
string

Task ID (same as id).

object
string
Example:

"video"

model
string

Model name used.

status
enum<string>

Task status.

Available options:
pending,
queued,
running,
succeeded,
failed,
cancelled
progress
integer

Task progress (percentage).

created_at
integer<int64>

Creation time as a Unix timestamp (seconds).