This service has implemented the integration of Pixverse AI, which can be used to generate videos and other content.
API home page: Ace Data Cloud - Pixverse Video Generation
This article will introduce the integration instructions for the Pixverse Videos Generation API, which can generate official Pixverse videos by inputting custom parameters.
To use the Pixverse Videos Generation API, you can first visit the Pixverse Videos Generation API page and click the "Acquire" button to obtain the credentials needed for the request:
If you are not logged in or registered, you will be automatically redirected to the login page inviting you to register and log in. After logging in or registering, you will be automatically returned to the current page.
Upon your first application, there will be a free quota provided, allowing you to use the API for free.
You can generate videos based on prompts, for example, you can input quiver
, as shown in the image:
The generated code is as follows:
You can click the "Try" button to directly test the API, and after waiting for 1-2 minutes, the result is as follows:
{
"success": true,
"task_id": "69e677ca-f1de-419f-99a4-cb39ea0cb5fc",
"trace_id": "e544f904-ac13-4b42-a26e-2de69d9ac06b",
"data": [
{
"id": 317982208110208,
"first_frame": "",
"video_width": 0,
"video_height": 0,
"prompt": "quiver",
"model": "v3.5",
"quality": "360p",
"motion": "normal",
"video_url": "https://media.pixverse.ai/pixverse%2Fmp4%2Fmedia%2Fweb%2F77e48783-3dc9-48ab-84a0-0e310ff9b83d_seed0.mp4",
"template_id": 0,
"template_name": "",
"style": "",
"aspect_ratio": "16:9",
"duration": 5,
"extended": 0,
"last_frame": "",
"seed": 0,
"asset_id": 0,
"asset_name": ""
}
]
}
At this point, we have obtained the content of a video, including video ID, video link, video resolution, video duration, and other details.
The field descriptions are as follows:
- success: Indicates whether the generation was successful; if successful, it is
true
, otherwise it isfalse
. - task_id: The ID of this generation task.
- trace_id: The tracking ID of this generation task.
- data: A list containing detailed information about the generated video.
- id: The unique ID of the generated video, which can be used for further generation.
- first_frame: The link to the first frame image of the video.
- last_frame: The link to the last frame image of the video.
- video_width: The width of the resulting video.
- video_height: The height of the resulting video.
- prompt: The prompt for this video generation task.
- model: The model used for this video generation task.
- video_url: The link to the video generated in this task.
- template_id: The ID of the template effect used in the video.
- template_name: The name of the template effect used in the video.
- asset_id: The ID of the character used in the video.
- asset_name: The name of the character used in the video.
- style: The style of this video generation task.
- aspect_ratio: The size ratio of this video.
- extended: Indicates whether this video is an extended generation; 0 means it is not an extended generation, otherwise it is an extended generation.
If you want to customize the first and last frames for video generation, you can input the links to the first and last frame images:
At this point, the frame
field can accept content like the following:
Next, we need to customize the song generation based on lyrics, title, and style, specifying the following content:
- action: The action for this video generation task, which can be either generate video
action
or extend videoextend
. - prompt: The prompt for this video generation task.
- frame: An array of links to the first and last frame images for this video generation.
An example of the input is as follows:
After filling it out, the generated code is as follows:
The corresponding Shell code:
curl -X POST 'https://api.acedata.cloud/pixverse/videos' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "generate",
"prompt": "gradation",
"frame": ["https://cdn.acedata.cloud/c7zzmb.png","https://cdn.acedata.cloud/fqd8br.png"]
}'
Testing is allowed, and the generated effect is similar.
For more info, please check below APIs and integration documents.
API | Path | Integration Guidance |
---|---|---|
Pixverse Video Generation API Integration Guide | /pixverse/videos |
Pixverse Video Generation API Integration Guide |
Pixverse Tasks API | /pixverse/tasks |
Pixverse Tasks API Integration Guide |
Pixverse Character API | /pixverse/character |
Pixverse Character API Integration Guide |
Base URL: https://api.acedata.cloud
If you meet any issue, check our from support info.