Node.js
Videos
Create a video generation
Submit a video generation request and return a pending result.
POST
Node.js
Authorizations
Send your API key as a bearer token:
Authorization: Bearer sk_<secret>.
Body
application/json
AI model ID. See supported models.
Description of the video to generate.
Required string length:
1 - 4096Optional output aspect ratio. See supported values by model.
Optional output resolution. See supported values by model.
Optional duration in seconds. See supported values by model.
Set to true to generate audio when supported by the model.