Jobs
On this page
Jobs #
Check on a queued job, read its files, and list your jobs.
GET /v1/generations #
Your jobs, newest first
Key: API key · Credits: Free · Answers now
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
limit | query | no | whole number, 1–50 | |
offset | query | no | whole number, 0–… |
Request
curl "https://api.oneupai.com/v1/generations?limit=20" \
-H "Authorization: Bearer $ONEUP_API_KEY"Response (200)
{
"generations": [
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"alias": "oneup/image-generate-lite",
"status": "COMPLETED",
"credits": 1,
"created_at": "2026-10-08T14:02:11.482Z",
"refunded": false,
"label": null
}
],
"page": {
"limit": 20,
"offset": 0,
"has_more": false
}
}Errors: invalid_key, account_disabled, rate_limited, internal_error
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 401 | invalid_key | The API key is missing, mistyped, revoked, or past the overlap after a rotation. The answer is the same in every case. | Send Authorization: Bearer oneup_live_… with a current key. You can make a new key on your account page. | Not charged. |
| 403 | account_disabled | The account is disabled: its sign-in was removed or blocked. Every key and session of the account answers this. | Write to video@oneupai.com. | Not charged. The account's credits stay. |
| 429 | rate_limited | You sent requests faster than your plan's rate limit, reached a limit a feature counts on its own, or have two Previews running already. The daily credit limit has its own code, daily_limit_reached. Extra fields: the Retry-After header, in seconds. | Wait that long, then send the same request with the same retry key. | Not charged. |
| 500 | internal_error | Something went wrong on our side that we did not expect. The answer says nothing about the cause. Extra fields: request_id, the same id as the x-request-id header. It names the exact request in our logs. | Send the same request again with the same retry key. If it keeps failing, send us the request_id. | Never charged twice. If we accepted the work before the failure, the same retry key returns it instead of charging again. |
GET /v1/queue/result/{ticket} #
A finished job's files
COMPLETED jobs only; before that the answer is not_found with the current status. A failed job answers upstream_error (refunded).
Key: API key · Credits: Free · Answers now
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
ticket | path | yes | text |
Request
curl "https://api.oneupai.com/v1/queue/result/oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR" \
-H "Authorization: Bearer $ONEUP_API_KEY"Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "COMPLETED",
"alias": "oneup/image-generate-lite",
"assets": [
{
"asset_id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
"content_type": "image/jpeg",
"size_bytes": 780860,
"url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U"
}
]
}Errors: invalid_key, account_disabled, not_found, rate_limited, internal_error, upstream_error
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 401 | invalid_key | The API key is missing, mistyped, revoked, or past the overlap after a rotation. The answer is the same in every case. | Send Authorization: Bearer oneup_live_… with a current key. You can make a new key on your account page. | Not charged. |
| 403 | account_disabled | The account is disabled: its sign-in was removed or blocked. Every key and session of the account answers this. | Write to video@oneupai.com. | Not charged. The account's credits stay. |
| 404 | not_found | What you asked for, such as a ticket, an asset, an upload, a Project or a render, does not exist or is not yours. The answer is the same either way. Extra fields: two cases add one. Asking GET /v1/queue/result/{ticket} before the work is COMPLETED answers not_found with status, the current status. Keep asking for the status, then fetch the result. A render whose Timeline names files that are not yours, or not ready, answers not_found with missing_inputs, the ids it could not use. | Check the id, and that it was made with a key of this account. | Not charged. |
| 429 | rate_limited | You sent requests faster than your plan's rate limit, reached a limit a feature counts on its own, or have two Previews running already. The daily credit limit has its own code, daily_limit_reached. Extra fields: the Retry-After header, in seconds. | Wait that long, then send the same request with the same retry key. | Not charged. |
| 500 | internal_error | Something went wrong on our side that we did not expect. The answer says nothing about the cause. Extra fields: request_id, the same id as the x-request-id header. It names the exact request in our logs. | Send the same request again with the same retry key. If it keeps failing, send us the request_id. | Never charged twice. If we accepted the work before the failure, the same retry key returns it instead of charging again. |
| 502 | upstream_error | The work failed on our side. GET /v1/queue/result/{ticket} also answers this for a generation that ended FAILED. Extra fields: detail is replay_of_failed when you sent a retry key again whose sync run had already failed: nothing ran again and nothing was charged. A failure as it happens has no detail. | Try again with a new retry key. The same key would return the same failed generation. | Refunded. |
GET /v1/queue/status/{ticket} #
A queued job's status
Poll every 2 seconds for the first 30 seconds, then every 5 seconds.
Key: API key · Credits: Free · Answers now
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
ticket | path | yes | text |
Request
curl "https://api.oneupai.com/v1/queue/status/oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR" \
-H "Authorization: Bearer $ONEUP_API_KEY"Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "COMPLETED"
}Errors: invalid_key, account_disabled, not_found, rate_limited, internal_error
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 401 | invalid_key | The API key is missing, mistyped, revoked, or past the overlap after a rotation. The answer is the same in every case. | Send Authorization: Bearer oneup_live_… with a current key. You can make a new key on your account page. | Not charged. |
| 403 | account_disabled | The account is disabled: its sign-in was removed or blocked. Every key and session of the account answers this. | Write to video@oneupai.com. | Not charged. The account's credits stay. |
| 404 | not_found | What you asked for, such as a ticket, an asset, an upload, a Project or a render, does not exist or is not yours. The answer is the same either way. Extra fields: two cases add one. Asking GET /v1/queue/result/{ticket} before the work is COMPLETED answers not_found with status, the current status. Keep asking for the status, then fetch the result. A render whose Timeline names files that are not yours, or not ready, answers not_found with missing_inputs, the ids it could not use. | Check the id, and that it was made with a key of this account. | Not charged. |
| 429 | rate_limited | You sent requests faster than your plan's rate limit, reached a limit a feature counts on its own, or have two Previews running already. The daily credit limit has its own code, daily_limit_reached. Extra fields: the Retry-After header, in seconds. | Wait that long, then send the same request with the same retry key. | Not charged. |
| 500 | internal_error | Something went wrong on our side that we did not expect. The answer says nothing about the cause. Extra fields: request_id, the same id as the x-request-id header. It names the exact request in our logs. | Send the same request again with the same retry key. If it keeps failing, send us the request_id. | Never charged twice. If we accepted the work before the failure, the same retry key returns it instead of charging again. |