| Environment | Base URL |
|---|---|
| Production | https://app-api.pixverse.ai |
POST https://app-api.pixverse.ai/openapi/v2/video/text/generate| Header | Required | Description |
|---|---|---|
API-KEY | Yes | API Key used for authentication |
Ai-trace-id | Yes | Unique request identifier used for tracing and troubleshooting |
Content-Type | Depends on the endpoint | Use application/json for JSON endpoints and multipart/form-data for upload endpoints |
API-KEY in the request header, not in the request body or URL query string.Ai-trace-id with every request.Ai-trace-id from the affected request.{
"ErrCode": 0,
"ErrMsg": "Success",
"Resp": {
"video_id": 413620241010894,
"credits": 35
}
}| Field | Type | Description |
|---|---|---|
ErrCode | integer | Business error code; 0 indicates success |
ErrMsg | string | Business result message |
Resp | object | Response payload; its structure varies by endpoint |
ErrCode is the PixVerse business error code and is independent of the HTTP status code.ErrCode is 0.Resp varies by endpoint. Refer to the response fields section on the relevant endpoint page.