Video generation model from PixVerse, generates videos from text, now supports v4.5Base price: 0.1 PTC / per use
Parameter Type
Parameter Value
Price Multiplier
Video Quality quality
360p
×1
540p
×1.5
720p
×2
1080p
×4
Video Duration duration
4s
×1
8s
×2
Motion Mode motion_mode
normal
×1
fast
×2
720p does not support selecting both fast mode and 8s duration at the same time; 1080p does not support selecting fast mode or 8s duration
The price multiplier is dynamically calculated based on the request parameters. Multipliers for multiple parameters are multiplied together. For example: The price for a 720p 8s video is 0.1x2x2=0.4
Request
Header Params
Body Params application/json
Example
{"model":"auto","prompt":"a dog is flying","ratio":"16:9","quality":"360p","duration":5,"motion_mode":"normal"}
Request Code 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/pix/generate' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "auto",
"prompt": "a dog is flying",
"ratio": "16:9",
"quality": "360p",
"duration": 5,
"motion_mode": "normal"
}'