Skip to main content
POST
/
v1
/
video
/
generations
Create Video Generation Task
curl --request POST \
  --url https://www.anyfast.ai/v1/video/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "wan2.2-t2v-a14b",
  "prompt": "a cat playing piano",
  "duration": 5,
  "width": 1280,
  "height": 720,
  "seed": 123,
  "metadata": {}
}
'
{
  "id": "5WZH6fIngVFPrffXrECtcN",
  "task_id": "5WZH6fIngVFPrffXrECtcN",
  "object": "video",
  "model": "wan2.2-t2v-a14b",
  "status": "",
  "progress": 0,
  "created_at": 1773803799
}

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

Model ID

Available options:
wan2.2-t2v-a14b
Example:

"wan2.2-t2v-a14b"

prompt
string
required

Text description of the video to generate.

Example:

"a cat playing piano"

duration
number
default:5

Video duration in seconds (3–5).

Required range: 3 <= x <= 5
Example:

5

width
integer

Output video width in pixels.

Example:

1280

height
integer

Output video height in pixels.

Example:

720

seed
integer

Random seed for reproducibility.

metadata
object

Extra parameters passed through to the upstream API.

Response

Task created successfully

id
string
Example:

"5WZH6fIngVFPrffXrECtcN"

task_id
string
Example:

"5WZH6fIngVFPrffXrECtcN"

object
string
Example:

"video"

model
string
Example:

"wan2.2-t2v-a14b"

status
string
Example:

""

progress
integer
Example:

0

created_at
integer
Example:

1773803799