Files
On this page
Files #
List your stored files, get fresh links to them, and delete them. Uploading is on the Uploads page. None of these cost credits.
GET /v1/assets #
Your stored files, 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–… | |
origin | query | no | text, one of: member | member: only what you uploaded or made, never a file made for you by the service itself. |
Request
curl "https://api.oneupai.com/v1/assets?limit=20" \
-H "Authorization: Bearer $ONEUP_API_KEY"Response (200)
{
"assets": [
{
"id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
"content_type": "image/jpeg",
"size_bytes": 780860,
"created_at": "2026-10-08T14:02:19.906Z",
"url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U",
"width": 1080,
"height": 1920,
"has_audio": false,
"via": "generated"
}
],
"page": {
"limit": 20,
"offset": 0,
"has_more": false
}
}Errors: invalid_request, invalid_key, account_disabled, rate_limited, internal_error
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 400 | invalid_request | The request is malformed or breaks the model's input rules: the body is not JSON, a field is missing, has the wrong type or is out of bounds, or the Idempotency-Key header is missing. Extra fields: detail, which names what is wrong, such as "Idempotency-Key header is required" or "input must have required property 'prompt'". | Fix the request using detail and the Alias's input_schema from GET /v1/models, then send it again. You can keep the same retry key: nothing was created. | Not charged. |
| 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. |
POST /v1/assets/urls #
Fresh links to many of your files at once
Up to 50 files in one call, which counts as one read. An id that is not yours comes back in refused.
Key: API key · Credits: Free · Answers now
Request body
| Field | Required | Type | Description |
|---|---|---|---|
asset_ids | yes | list |
Request
curl -X POST "https://api.oneupai.com/v1/assets/urls" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"asset_ids": [
"oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
"oneup_asset_wVb59L9t3920xfZw397HeG4mnU",
"oneup_asset_Xr4mQ2pL8vNc6TbW1kZ9sHd3Jy"
]
}'Response (200)
{
"urls": [
{
"asset_id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
"url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U",
"content_type": "image/jpeg",
"download_url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U?download=oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND.jpg",
"duration_ms": null
},
{
"asset_id": "oneup_asset_wVb59L9t3920xfZw397HeG4mnU",
"url": "https://media.oneupai.com/a/oneup_asset_wVb59L9t3920xfZw397HeG4mnU/1791436086/Rk2Qe8Lw5Tz1Nv7Hc4Xp9Bm3Jd6Fs0Gy2Ua8Ki5Oe1W",
"content_type": "video/mp4",
"download_url": "https://media.oneupai.com/a/oneup_asset_wVb59L9t3920xfZw397HeG4mnU/1791436086/Rk2Qe8Lw5Tz1Nv7Hc4Xp9Bm3Jd6Fs0Gy2Ua8Ki5Oe1W?download=oneup_asset_wVb59L9t3920xfZw397HeG4mnU.mp4",
"duration_ms": 24000,
"poster_url": "https://media.oneupai.com/a/oneup_asset_A06obVi1TFUVNsSuvw9qWDso2M/1791436086/WkCbUhkBLfms3A9XE37emS1oYI1O66NM2DwSXgqbtKt"
}
],
"refused": [
{
"asset_id": "oneup_asset_Xr4mQ2pL8vNc6TbW1kZ9sHd3Jy",
"code": "not_found"
}
]
}Errors: invalid_request, invalid_key, account_disabled, payload_too_large, rate_limited, internal_error
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 400 | invalid_request | The request is malformed or breaks the model's input rules: the body is not JSON, a field is missing, has the wrong type or is out of bounds, or the Idempotency-Key header is missing. Extra fields: detail, which names what is wrong, such as "Idempotency-Key header is required" or "input must have required property 'prompt'". | Fix the request using detail and the Alias's input_schema from GET /v1/models, then send it again. You can keep the same retry key: nothing was created. | Not charged. |
| 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. |
| 413 | payload_too_large | The request body is over 1 MB. | Upload files first and send their file_url, instead of putting file contents in the body. | 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. |
DELETE /v1/assets/{asset_id} #
Delete one of your files, for good
Key: API key · Credits: Free · Answers now
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
asset_id | path | yes | text |
Request
curl -X DELETE "https://api.oneupai.com/v1/assets/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND" \
-H "Authorization: Bearer $ONEUP_API_KEY"Response (200)
{
"ok": true
}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. |
GET /v1/assets/{asset_id}/url #
A fresh link to one of your files
File links last an hour; ask here for a new one any time.
Key: API key · Credits: Free · Answers now
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
asset_id | path | yes | text |
Request
curl "https://api.oneupai.com/v1/assets/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/url" \
-H "Authorization: Bearer $ONEUP_API_KEY"Response (200)
{
"asset_id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
"url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U",
"content_type": "image/jpeg",
"download_url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U?download=oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND.jpg",
"duration_ms": null
}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. |