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 looks up at the sky while the camera slowly rises.",
  "seconds": "5",
  "size": "1080P"
}
'
{
  "id": "<string>",
  "task_id": "<string>",
  "object": "video",
  "model": "<string>",
  "status": "pending",
  "progress": 123,
  "created_at": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Wan text-to-video model. The current project implementation exposes wan2.7-t2v.

Available options:
wan2.7-t2v
prompt
string
required

Text prompt describing desired video content. Supports Chinese and English, max 800 characters.

seconds
string
default:5

Video duration in seconds as a string. Current default is "5".

size
enum<string>
default:1080P

Video resolution tier. The current wan2.7-t2v implementation defaults to 1080P. Options: 720P, 1080P.

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

Whether to enable prompt optimization. The project forwards this field upstream.

watermark
boolean
default:false

Whether to add a watermark to the generated video.

seed
integer

Random seed in range [0, 2147483647].

negative_prompt
string

Negative prompt describing content to avoid. Max 500 characters.

Response

Submission successful, returns video task object.

id
string

Task unique 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>

Unix timestamp of creation time (seconds).