PixVerse Platform Docs
  1. Getting started
PixVerse Platform Docs
  • Learn about PixVerse Platform
    • Introduce to PixVerse Platform
    • Quick Start
  • Getting started
    • How does the API work?
    • How to get API key?
    • How to check account balance?
    • How to subscribe API plans?
    • How to use Text-to-video
    • How to use Image-to-video
    • How to use Effects?
    • How to use Transition(First-last frame Feature)
    • How to get video generation status?
  • API Reference
    • API Parameter Description
    • Get user credit balance
      GET
    • Upload Image
      POST
    • Text-to-Video generation
      POST
    • Image-to-Video generation
      POST
    • Transition(First-last frame) generation
      POST
    • Get Video Generation Status
      GET
  • Trouble Shooting
    • Common errors and Solutions
    • Error codes
    • FAQ
  • Resources
    • Model & Pricing
    • Rate limit
    • Support
    • Change Logs
    • Term of Service
    • Privacy policy
  • PixVerse Tools
    • PixVerse MCP
  1. Getting started

How does the API work?

The PixVerse Platform API provides a straightforward way to generate videos from text prompts or images. This guide explains the core concepts and workflow of our API.

API Architecture Overview#

The PixVerse API follows RESTful principles, making it easy to integrate with your applications. All API requests are made over HTTPS to ensure security, and data is exchanged in JSON format.

Key Components#

1.
Authentication: Every request requires an API key for authentication
2.
Endpoints: Specialized endpoints for different generation types
3.
Asynchronous Processing: Video generation occurs asynchronously
4.
Status Checking: Get video generation status to monitor generation progress
5.
Result Retrieval: Download links for completed videos

Basic Workflow#

1.
Authentication
All requests must include in the header :
your API key for autentication
A different Ai-trace-id for each unique request (If you use the same ai-trace-id multiple times, You won't get a new video generated)
Other generation task requirements
2.
Request Submission
Submit your generation request to the appropriate endpoint:
our request domain is https://app-api.pixverse.ai
💡
Text-to-video
Image-to-video
Effects
Transition-generation
1.
Use Text-to-Video geneartion interface
https://docs.platform.pixverse.ai/text-to-video-generation-13016634e0
2.
According to parameter, please modify your value what you want
https://docs.platform.pixverse.ai/api-parameter-description-803491m0
{
"aspect_ratio": "16:9",
"duration": 5,
"model": "v3.5",
"motion_mode": "normal",
"negative_prompt": "string",
"prompt": "string",
"quality": "540p",
"seed": 0,
"water_mark": false
}
3.
Response Handling
After submitting a request, you'll receive a response with video_id containing:
{
  "ErrCode": 0,
  "ErrMsg": "success",
  "Resp": {
    "video_id": 0
  }
}
4.
Status Checking
Use the video_id to periodically check the status of your generation:
GET https://app-api.pixverse.ai/openapi/v2/video/result/{video_id}
https://docs.platform.pixverse.ai/get-video-generation-status-13016632e0
5.
Result Retrieval
Once processing is complete, the status endpoint will return status 1
   {
 "ErrCode": 0,
 "ErrMsg": "string",
 "Resp": {
   "create_time": "string",
   "id": 0,
   "modify_time": "string",
   "negative_prompt": "string",
   "outputHeight": 0,
   "outputWidth": 0,
   "prompt": "string",
   "resolution_ratio": 0,
   "seed": 0,
   "size": 0,
   "status": 1,
   "style": "string",
   "url": "string"
 }
}
Previous
Quick Start
Next
How to get API key?