Pixverse Videos Generation API
POSThttps://api.acedata.cloud/pixverse/videos
Pixverse AI video generation API. Supports models v3.5, v4, and v4.5 for text-to-video and image-to-video, with style/motion and other customization parameters.
Request Headers
acceptstring
Specify the format of the server response. If not specified, the default format is `application/json`.
Please select
authorizationstring
Bearer token
Request Body
actionstring
Optional, video generation action. If it is `generate`, then generate a video based on the prompt, default is `generate`.
promptstringRequired parameter
Required, used for generating text prompts for videos.
modelstringRequired parameter
Required field, used for generating the video model, optional values are `v4`, `v4.5`, `v3.5`, default value is `v3.5`.
stylestring
Optional, specify the style of the generated video, with optional values being `cyberpunk`, `anime`, `comic`, `clay`, `3d_animation`, `realistic`.
image_urlstring
Optional, you can specify an image URL as the first frame of the video, used for generating video scenes.
qualitystring
Optional, the video quality to be generated, selectable values are `360p`, `540p` (default), `720p`, `1080p`.
durationnumber
Optional, the shortest generation duration of the video (seconds), selectable values are `5` or `8`, default is `5` seconds.
Please select
template_idnumber
Optional, specify the template ID to generate the video according to a specific template effect.
motionstring
Optional, the motion mode of the video, selectable values are `normal` (default) and `fast`.
aspect_ratiostring
Optional, the aspect ratio of the video, with optional values of `16:9` (default), `4:3`, `1:1`, `3:4`, `9:16`.
seednumber
Optional, the seed value is a random number used to generate the video, which is randomly generated by default. You can specify the same seed value to reproduce the same video results.
callback_urlstring
Optional, the callback URL after the video generation is completed. If specified, the interface will immediately return `task_id`, and the result will be sent to that URL after the video generation is completed; you can also actively query the video generation status using `task_id`.
asyncboolean
Whether to process in asynchronous mode. When set to `true`, the interface immediately returns `task_id`, without the need to provide `callback_url`, and then the result can be obtained by polling the corresponding task query interface; if `callback_url` is also provided, the result will be pushed to that callback address.
Please select
Response
Pixverse Video Generation
Allow Use General Balance
When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
