Uploads

On this page

Uploads #

Upload your own files, bring in pictures from the web, keep uploads, and get fresh links to your uploads. None of these cost credits.

GET /v1/uploads #

Your uploaded files, newest first

Your stored uploads with their size, length and sound where measured. No links here; ask POST /v1/uploads/urls for them.

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
limitquerynowhole number, 1–50
cursorquerynotext
originquerynotext, one of: membermember: only what you uploaded or made, never a file made for you by the service itself.
kindquerynotext, one of: audio, video, imageaudio, video or image: only uploads of that kind, so a page and its cursor count those only.

Request

curl "https://api.oneupai.com/v1/uploads?limit=20" \
  -H "Authorization: Bearer $ONEUP_API_KEY"

Response (200)

{
  "uploads": [
    {
      "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
      "content_type": "video/mp4",
      "size_bytes": 8412330,
      "created_at": "2026-10-08T13:58:40.112Z",
      "width": 1080,
      "height": 1920,
      "duration_ms": 14520,
      "has_audio": true
    }
  ]
}
Errors: invalid_request, invalid_key, account_disabled, rate_limited, internal_error
Errors: GET /v1/uploads
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
429rate_limitedYou 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.
500internal_errorSomething 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/uploads/from-extraction #

Keep pictures from a page you read

No credits. Only addresses from your own page read are accepted.

Key: API key · Credits: Free · Answers now

Request body

Request body
FieldRequiredTypeDescription
extraction_idyestextFrom a page read by a web model.
urlsyeslist

Request

curl -X POST "https://api.oneupai.com/v1/uploads/from-extraction" \
  -H "Authorization: Bearer $ONEUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "extraction_id": "oneup_extract_Hq3Nw8Zr1Kt6Vb4Xm9Lc2Pd7Sy",
  "urls": [
    "https://photos.example.com/205-spanton/1.jpg",
    "https://photos.example.com/205-spanton/2.jpg"
  ]
}'

Response (200)

{
  "uploads": [
    {
      "url": "https://photos.example.com/205-spanton/1.jpg",
      "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
      "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
      "bytes": 486112,
      "content_type": "image/jpeg"
    }
  ],
  "skipped": [
    {
      "url": "https://photos.example.com/205-spanton/2.jpg",
      "reason": "source_gone"
    }
  ]
}
Errors: invalid_request, invalid_key, account_disabled, account_frozen, credit_debt, entitlement_required, plan_required, payload_too_large, rate_limited, internal_error, unavailable
Errors: POST /v1/uploads/from-extraction
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
403account_frozenThe account is frozen for now, for example while a payment dispute is open. Extra fields: account_url.See your account page. Reading your results still works.Not charged.
403credit_debtYou have credit debt: a payment for credits you already spent was reversed. Extra fields: account_url.Settle it from your account page; new work is accepted again once it is paid.Not charged.
403entitlement_requiredYour subscription has ended: it was canceled, or a payment failed and the seven days of grace have passed. Extra fields: account_url.Renew on your account page; the same keys work again. Checking status, reading results and downloading your files still work in the meantime.Not charged.
403plan_requiredThis key belongs to an account that is no longer on an API plan, Concierge or Concierge Plus. Only keys of accounts on those plans can start work through the API. Extra fields: account_url.Move the account back to Concierge or Concierge Plus; the key works again.Not charged.
413payload_too_largeThe request body is over 1 MB.Upload files first and send their file_url, instead of putting file contents in the body.Not charged.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer.Wait, then send the same request with the same retry key.Not charged; if it comes after we accepted the work, the charge is refunded.

POST /v1/uploads/from-url #

Import pictures by address

No credits. https on the standard port only; the bytes count toward your storage.

Key: API key · Credits: Free · Answers now

Request body

Request body
FieldRequiredTypeDescription
urlsyeslist

Request

curl -X POST "https://api.oneupai.com/v1/uploads/from-url" \
  -H "Authorization: Bearer $ONEUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "urls": [
    "https://photos.example.com/kitchen.jpg"
  ]
}'

Response (200)

{
  "uploads": [
    {
      "url": "https://photos.example.com/kitchen.jpg",
      "upload_id": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
      "file_url": "https://media.oneupai.com/u/oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
      "bytes": 352871,
      "content_type": "image/jpeg"
    }
  ],
  "skipped": []
}
Errors: invalid_request, invalid_key, account_disabled, account_frozen, credit_debt, entitlement_required, plan_required, payload_too_large, rate_limited, internal_error, unavailable
Errors: POST /v1/uploads/from-url
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
403account_frozenThe account is frozen for now, for example while a payment dispute is open. Extra fields: account_url.See your account page. Reading your results still works.Not charged.
403credit_debtYou have credit debt: a payment for credits you already spent was reversed. Extra fields: account_url.Settle it from your account page; new work is accepted again once it is paid.Not charged.
403entitlement_requiredYour subscription has ended: it was canceled, or a payment failed and the seven days of grace have passed. Extra fields: account_url.Renew on your account page; the same keys work again. Checking status, reading results and downloading your files still work in the meantime.Not charged.
403plan_requiredThis key belongs to an account that is no longer on an API plan, Concierge or Concierge Plus. Only keys of accounts on those plans can start work through the API. Extra fields: account_url.Move the account back to Concierge or Concierge Plus; the key works again.Not charged.
413payload_too_largeThe request body is over 1 MB.Upload files first and send their file_url, instead of putting file contents in the body.Not charged.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer.Wait, then send the same request with the same retry key.Not charged; if it comes after we accepted the work, the charge is refunded.

PUT /v1/uploads/holds/{hold} #

Keep uploads past 30 days under a name

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
holdpathyestext

Request body

Request body
FieldRequiredTypeDescription
upload_idsyeslist

Request

curl -X PUT "https://api.oneupai.com/v1/uploads/holds/video-2026-10-08" \
  -H "Authorization: Bearer $ONEUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "upload_ids": [
    "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
    "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG"
  ]
}'

Response (200)

{
  "held": [
    "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
    "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG"
  ],
  "missing": []
}
Errors: invalid_request, invalid_key, account_disabled, account_frozen, credit_debt, entitlement_required, plan_required, payload_too_large, rate_limited, internal_error, unavailable
Errors: PUT /v1/uploads/holds/{hold}
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
403account_frozenThe account is frozen for now, for example while a payment dispute is open. Extra fields: account_url.See your account page. Reading your results still works.Not charged.
403credit_debtYou have credit debt: a payment for credits you already spent was reversed. Extra fields: account_url.Settle it from your account page; new work is accepted again once it is paid.Not charged.
403entitlement_requiredYour subscription has ended: it was canceled, or a payment failed and the seven days of grace have passed. Extra fields: account_url.Renew on your account page; the same keys work again. Checking status, reading results and downloading your files still work in the meantime.Not charged.
403plan_requiredThis key belongs to an account that is no longer on an API plan, Concierge or Concierge Plus. Only keys of accounts on those plans can start work through the API. Extra fields: account_url.Move the account back to Concierge or Concierge Plus; the key works again.Not charged.
413payload_too_largeThe request body is over 1 MB.Upload files first and send their file_url, instead of putting file contents in the body.Not charged.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer.Wait, then send the same request with the same retry key.Not charged; if it comes after we accepted the work, the charge is refunded.

DELETE /v1/uploads/holds/{hold} #

Release a hold

Always 204; touches only your own holds.

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
holdpathyestext

Request

curl -X DELETE "https://api.oneupai.com/v1/uploads/holds/video-2026-10-08" \
  -H "Authorization: Bearer $ONEUP_API_KEY"

Response (204)

No body.

Errors: invalid_request, invalid_key, account_disabled, rate_limited, internal_error
Errors: DELETE /v1/uploads/holds/{hold}
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
429rate_limitedYou 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.
500internal_errorSomething 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/uploads/initiate #

Get an address to upload a file to

No credits. PUT the bytes to upload_url, then use file_url in a submit. Uploads count toward your storage and stay until you delete them.

Key: API key · Credits: Free · Answers now

Request body

Request body
FieldRequiredTypeDescription
content_typeyestextAn image, video or audio type.
file_namenotext
size_bytesyeswhole number, 1–2000000000
originnotext, one of: systemsystem for a file your own service makes for the person (a card, a code), so their lists leave it out.

Request

curl -X POST "https://api.oneupai.com/v1/uploads/initiate" \
  -H "Authorization: Bearer $ONEUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content_type": "image/jpeg",
  "file_name": "before.jpg",
  "size_bytes": 2450000
}'

Response (200)

{
  "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
  "upload_url": "https://media.oneupai.com/o/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791437600/2450000/Qm7yT2vX9kL4pR1sW8nB3cZ6dF0gH5jK2aE7uY9iO4q",
  "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c"
}
Errors: invalid_request, invalid_key, account_disabled, account_frozen, credit_debt, entitlement_required, plan_required, storage_quota_exceeded, payload_too_large, rate_limited, internal_error, unavailable
Errors: POST /v1/uploads/initiate
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
403account_frozenThe account is frozen for now, for example while a payment dispute is open. Extra fields: account_url.See your account page. Reading your results still works.Not charged.
403credit_debtYou have credit debt: a payment for credits you already spent was reversed. Extra fields: account_url.Settle it from your account page; new work is accepted again once it is paid.Not charged.
403entitlement_requiredYour subscription has ended: it was canceled, or a payment failed and the seven days of grace have passed. Extra fields: account_url.Renew on your account page; the same keys work again. Checking status, reading results and downloading your files still work in the meantime.Not charged.
403plan_requiredThis key belongs to an account that is no longer on an API plan, Concierge or Concierge Plus. Only keys of accounts on those plans can start work through the API. Extra fields: account_url.Move the account back to Concierge or Concierge Plus; the key works again.Not charged.
403storage_quota_exceededYour account has reached its storage quota, so new uploads, new jobs and new Timeline versions are refused. Extra fields: account_url on most calls.Delete assets, uploads or Projects you no longer need, or release a hold. Work you already paid for is never deleted because of this.Not charged.
413payload_too_largeThe request body is over 1 MB.Upload files first and send their file_url, instead of putting file contents in the body.Not charged.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer.Wait, then send the same request with the same retry key.Not charged; if it comes after we accepted the work, the charge is refunded.

POST /v1/uploads/urls #

Fresh addresses for uploads you kept

Key: API key · Credits: Free · Answers now

Request body

Request body
FieldRequiredTypeDescription
upload_idsyeslist

Request

curl -X POST "https://api.oneupai.com/v1/uploads/urls" \
  -H "Authorization: Bearer $ONEUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "upload_ids": [
    "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD"
  ]
}'

Response (200)

{
  "uploads": [
    {
      "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
      "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
      "content_type": "image/jpeg",
      "size_bytes": 2450000,
      "duration_ms": null
    }
  ],
  "missing": []
}
Errors: invalid_request, invalid_key, account_disabled, payload_too_large, rate_limited, internal_error
Errors: POST /v1/uploads/urls
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
413payload_too_largeThe request body is over 1 MB.Upload files first and send their file_url, instead of putting file contents in the body.Not charged.
429rate_limitedYou 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.
500internal_errorSomething 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/uploads/{upload_id} #

Delete one of your uploads, for good

No credits. Refused with upload_in_use, and nothing deleted, while a hold, your Brand Kit or a job still running names the upload. release names your own holds that go with it; a hold not named still refuses.

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
upload_idpathyestext
releasequerynotextYour own hold names that go with the upload, comma separated (at most 100).

Request

curl -X DELETE "https://api.oneupai.com/v1/uploads/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD" \
  -H "Authorization: Bearer $ONEUP_API_KEY"

Response (200)

{
  "ok": true
}
Errors: invalid_request, invalid_key, account_disabled, not_found, upload_in_use, rate_limited, internal_error, unavailable
Errors: DELETE /v1/uploads/{upload_id}
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
404not_foundWhat 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.
409upload_in_useYou asked to delete an upload that is still in use: a hold, your Brand Kit or a job still running names it. Nothing was deleted. Extra fields: reasons, a list of held (a hold names it), brand_kit (your Brand Kit uses it) or in_progress (a job or a render still running was made from it).Release the hold with DELETE /v1/uploads/holds/{name}, take the upload out of your Brand Kit, or wait for the job to finish, then delete it again.Not charged; deleting is free.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer.Wait, then send the same request with the same retry key.Not charged; if it comes after we accepted the work, the charge is refunded.

GET /v1/uploads/{upload_id}/uses #

What still uses one of your uploads

No credits. The uses a delete would refuse on, read without deleting, and your hold names that keep it.

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
upload_idpathyestext

Request

curl "https://api.oneupai.com/v1/uploads/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/uses" \
  -H "Authorization: Bearer $ONEUP_API_KEY"

Response (200)

{
  "reasons": [],
  "holds": []
}
Errors: invalid_key, account_disabled, not_found, rate_limited, internal_error, unavailable
Errors: GET /v1/uploads/{upload_id}/uses
HTTPCodeWhat happenedWhat to doCredits
401invalid_keyThe 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.
403account_disabledThe 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.
404not_foundWhat 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.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer.Wait, then send the same request with the same retry key.Not charged; if it comes after we accepted the work, the charge is refunded.