curl --request POST \
--url https://api.powertokens.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.2-kf2v-flash",
"images": [
"https://example.com/first-frame.png",
"https://example.com/last-frame.png"
],
"prompt": "Realistic style, a black kitten curiously looking at the sky, camera moving up from eye level to top-down",
"seconds": "5",
"size": "720P",
"prompt_extend": true
}
'{
"id": "<string>",
"task_id": "<string>",
"object": "video",
"model": "<string>",
"status": "pending",
"progress": 123,
"created_at": 123
}For Wan first-and-last-frame video models. After submission, query task status with GET /v1/videos/{task_id}.
Public fields: model, images, prompt, seconds, size, prompt_extend, watermark, seed, and negative_prompt. images must contain exactly 2 items in order: images[0] is the first frame and images[1] is the last frame. The first frame sets the base composition, and the last frame guides the ending shot.
curl --request POST \
--url https://api.powertokens.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.2-kf2v-flash",
"images": [
"https://example.com/first-frame.png",
"https://example.com/last-frame.png"
],
"prompt": "Realistic style, a black kitten curiously looking at the sky, camera moving up from eye level to top-down",
"seconds": "5",
"size": "720P",
"prompt_extend": true
}
'{
"id": "<string>",
"task_id": "<string>",
"object": "video",
"model": "<string>",
"status": "pending",
"progress": 123,
"created_at": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Wanxiang first-and-last-frame-to-video model.
wan2.2-kf2v-flash, wan2.1-kf2v-plus Array of first-frame and last-frame image URLs. Exactly 2 items are required in order: images[0] is the first frame and images[1] is the last frame. Output video aspect ratio follows the first frame, and the last frame is cropped to match it.
2 elementsText prompt describing transition from first to last frame. Supports Chinese and English, max 800 characters.
String form of the video duration in seconds. Currently fixed at "5".
Video resolution. wan2.2-kf2v-flash supports 480P/720P/1080P, wan2.1-kf2v-plus supports 720P only.
480P, 720P, 1080P Whether to enable prompt intelligent rewriting.
Whether to add watermark to video.
Random seed, range [0, 2147483647].
Negative prompt describing content to avoid. Max 500 characters.