Resp.video_id.Resp.url.https://app-api.pixverse.ai| Header | Required | Description |
|---|---|---|
API-KEY | Yes | Your PixVerse API Key. |
Ai-trace-id | Yes | A new UUID for this request. |
Content-Type | Depends on endpoint | Use application/json for JSON requests. Upload endpoints use multipart/form-data. |
Ai-trace-id is a tracing identifier, not an idempotency key. Reusing it may create another task. Before retrying a generation request, check whether the original request returned a task ID.| Input | Endpoint | Returned value |
|---|---|---|
| Image | POST /openapi/v2/image/upload | Resp.img_id |
| Video or audio | POST /openapi/v2/media/upload | Resp.media_id |
ErrCode=0 and a Resp.video_id. It does not mean that generation has completed.GET /openapi/v2/video/result/{video_id} every 3-5 seconds with a new Ai-trace-id.status | Meaning |
|---|---|
1 | Generation completed |
5 | Generating |
7 | Content moderation failed |
8 | Generation failed |
status=1 and Resp.url is accessible. Preserve the request time, video_id, HTTP status, ErrCode, and Ai-trace-id when troubleshooting.