The latest open-source video generation model from AlibabaPrice: 0.5 PTC/call
Request
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Content-Type
string
optional
Example:
application/json
Body Params application/json
prompt
string|null
required
aspect_ratio
enum<string>
optional
16:9 or 9:16
Allowed values:
16:99:16
Example
{"prompt":"A dog is running","aspect_ratio":"16:9"}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/302/submit/wan-t2v' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "A dog is running",
"aspect_ratio": "16:9"
}'