Skip to main content
POST
/
v1
/
videos
Wan reference-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-r2v",
  "prompt": "Have the character wave to the camera and walk forward slowly.",
  "seconds": "5",
  "size": "1080P",
  "subject_reference": [
    {
      "type": "character",
      "image": [
        "https://example.com/assets/subject-reference.png"
      ]
    }
  ]
}
'
{
  "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 reference-to-video model. The current project implementation exposes wan2.7-r2v.

Available options:
wan2.7-r2v
subject_reference
object[]
required

Subject reference input. Must not be mixed with image or images.

prompt
string

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-r2v 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].

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).