This API version is deprecated.
Please use PixVerse API v2 it supports all recent features, including effects, extend, lipsync and more.
Retrieve PixVerse job status and results
Table of contents
Use this endpoint to retrieve status and results of
If you specified optional parameter replyUrl
you technically do not need to use this endpoint to retrieve results since API will call provided replyUrl
once job generation completed.
Important API periodically polls (checks) Discord every 15 to 60 seconds (depending on the load) and updates all currently executed jobs statuses and results. Polling interval is used for safety reasons, aiming to prevent any potential issues with Discord and PixVerse, such as bans or excessive requests.
Jobs lifespan guaranteed to be at least 31 days, after that they will be expired and may be recycled.
https://api.useapi.net/v1/pixverse/jobs/?jobid=
jobid
Request Headers
Authorization: Bearer {API token}
API token
is required, see Setup useapi.net for details.
Query Parameter
jobid
is required, use value returned by
Responses
-
If field
status
value is created, started or progress wait in a loop for at least 10..30 seconds and retry again. When completed retrieve generated video fromattachments
field. Fieldcontent
contains message generated by PixVerse reflecting current generation parameters and progress. Optional arrayembeds
contains additional information.{ "jobid": "<jobid>", "verb": "pixverse-create_single", "status": "completed", "created": "2023-09-09T02:04:49.667Z", "updated": "2023-09-09T02:19:20.256Z", "prompt": "Sun breaking through clouds over the beautiful view of San Francisco", "buttons": [ "U1", "U2", "U3", "U4", "V1", "V2", "V3", "V4", "ReDo"], "discord": "<ABC…secured…xyz>", "server": "<Discord server id>", "channel": "<Discord channel id>", "maxJobs": 10, "messageId": "<Discord message id>", "content": "<@Discord user id> (prompt: Sun breaking through clouds over the beautiful view of San Francisco style: Realistic aspect-ratio: 16:9) Author: <@Discord user id>)", "timestamp": "2023-09-09T02:05:24.991000+00:00", "attachments": [ { "url": "<generated video url>", "proxy_url": "<generated proxy video url>", "width": 768, "height": 768, "content_type": "<generated video type>", "id": "<Discord attachment id>", "filename": "<generated video filename>", "size": 7204115 } ], "code": 200 }
-
{ "error": "Query param jobid not provided", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
-
{ "error": "Account has no subscription or subscription expired", "code": 402 }
-
{ "error": "Unable to locate job <jobid>", "code": 404 }
-
{ "error": "Job has expired", "code": 410 }
Model
{ // TypeScript, all fields are optional
jobid: string,
parentJobId: string,
verb: 'pixverse-create' | 'pixverse-animate' | 'pixverse-create_single' | 'pixverse-meme_face' | 'pixverse-button',
status: 'created' | 'started' | 'moderated' | 'progress' |
'completed' | 'failed' | 'cancelled',
created: string, // YYYY-MM-DDTHH:mm:ss.sssZ, IS0 8601, UTC
updated: string, // YYYY-MM-DDTHH:mm:ss.sssZ, IS0 8601, UTC
prompt: string,
negative_prompt: string,
motion: number,
seed_value: number,
image: { size: number, type: string },
face: { size: number, type: string },
button: 'U1' | 'U2' | 'U3' | 'U4' | 'V1' | 'V2' | 'V3' | 'V4' | 'ReDo' | '🔄' | '🔀' | '⏫',
buttons: [ 'U1', 'U2', 'U3', 'U4', 'V1', 'V2', 'V3', 'V4', 'ReDo', '🔄', '🔀', '⏫' ],
style: 'Realistic' | 'Anime' | '3D Animation',
aspect_ratio: '16:9' | '9:16' | '1:1' | '4:3' | '3:4',
character: 'eula' | 'ganyu' | 'hutao' | 'kamisatoayaka' | 'keqing' | 'klee' | 'nahida' | 'ningguang' | 'raidenshogun' | 'xiangling' | 'yaemiko',
discord: string, // Provided for debugging purposes only, contains the first 3 and the last 3 characters of the original value
server: string,
channel: string,
maxJobs: number,
messageId: string,
content: string, // Contains message generated by PixVerse reflecting current generation parameters and progress
timestamp: string,
attachments: [
{
id: string,
content_type: string,
filename: string,
url: string,
proxy_url: string,
size: number,
width: number,
height: number
}
],
embeds: [
{
type: string,
description: string,
image: {
url: string,
proxy_url: string,
width: number,
height: number
}
}
],
error: string,
errorDetails: string,
code: 200
}
Examples
-
curl https://api.useapi.net/v1/pixverse/jobs/?jobid=… \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const jobid = "jobid returned by pixverse/create, pixverse/animate, pixverse/create_single, pixverse/meme_face or pixverse/button"; const apiUrl = `https://api.useapi.net/v1/pixverse/jobs/?jobid=${jobid}`; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" jobid = "jobid returned by pixverse/create, pixverse/animate, pixverse/create_single, pixverse/meme_face or pixverse/button" apiUrl = f"https://api.useapi.net/v1/pixverse/jobs/?jobid={jobid}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())