Render

On this page

Render #

Edit with the render engine: render a saved version of a Project's Timeline, a free preview, then a charged final. Projects and Timelines has the saving. /docs/render lists the operations a Timeline can use.

POST /v1/renders #

Render a Timeline version: a free preview or a charged final

A final is charged when it is accepted and refunded if it fails. A preview is free and limited by an allowance.

Key: API key · Credits: Preview free; final: the render model's price · Queued: poll for the result

Parameters

Parameters
NameInRequiredTypeDescription
Idempotency-Keyheaderyestext, 1–∞ charactersA unique value you make for each new job (a UUID works). Sending the same key with the same body again returns the same job and never charges twice; the same key with a different body is idempotency_conflict.

Request body

Request body
FieldRequiredTypeDescription
aliasyestext, one of: oneup/render-captions, oneup/render-timelineA render model.
project_idyestext
version_idyestext
kindyestext, one of: preview, final, framepreview: free, quick, kept 72 hours. final: full quality, charged, cannot be canceled. frame: one picture of a segment's first or last frame.
auto_initialnoyes / noMark the one automatic first preview of a Project. Previews only.
labelnotextOptional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.
segment_idnotextframe only: the segment.
atnotext, one of: first, lastframe only.
from_msnowhole numberpreview only, with to_ms: a preview of just this span of the Timeline, from this millisecond. At most 10 seconds long, inside the video; drawn at full quality without the preview mark; counts its started seconds of preview time.
to_msnowhole numberpreview only, with from_ms: the span's end (not included).

Request

curl -X POST "https://api.oneupai.com/v1/renders" \
  -H "Authorization: Bearer $ONEUP_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "alias": "oneup/render-timeline",
  "project_id": "3f6c2a9e-8b1d-4e7a-9c5f-2d8b7a1e4c60",
  "version_id": "b7e4d2a1-5c3f-4a8e-9b6d-1f2e3c4d5a6b",
  "kind": "preview"
}'

Response (202)

{
  "render_id": "8e2631f2-3e17-457f-8fa5-05d4c8b93f00",
  "ticket": "oneup_req_7nyDXaO5sbLwWruJ2PshDL2i6D",
  "kind": "preview",
  "status": "QUEUED"
}
Errors: invalid_request, invalid_key, out_of_credits, account_disabled, account_frozen, credit_debt, entitlement_required, plan_required, preview_quota_exhausted, not_found, unknown_model, idempotency_conflict, model_retired, payload_too_large, operation_unavailable, daily_limit_reached, rate_limited, internal_error, unavailable
Errors: POST /v1/renders
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.
402out_of_creditsYour balance is smaller than the price of this request. Extra fields: topup_url, your account page; required, the price of this request in credits; packs, the credit packs you can buy there, each with its credits and price_cents (an empty list when none is on sale).Add credits from your account page, or wait for your plan's next month of credits. Then send the same request with the same retry key.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.
403preview_quota_exhaustedA Preview allowance is used up. Previews are free, and limited by rendered seconds per Project, per day and per billing month. Extra fields: scope (project, customer_day or plan_period), allowance_seconds, used_seconds, remaining_seconds, and renews_at when that allowance renews (a Project's own allowance does not).Wait until renews_at, or make a shorter Preview. A final is not limited by this.Not charged.
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.
404unknown_modelNo Alias by that name is available to you.Check the name, including the oneup/ part, against GET /v1/models.Not charged.
409idempotency_conflictYou sent a retry key again with a different request.Make a new retry key for each new request. To retry the first request, send exactly the same body.This request is not charged; the first one stands.
410model_retiredThis Alias was replaced, and its notice period has ended. Extra fields: replacement, the Alias to use instead (or null).Send your request to the replacement.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.
422operation_unavailableThe Timeline asks for an operation this render Alias does not offer. Extra fields: detail, which names it, such as "operation not available: fit.smart_crop".Check supported_operations for the render Alias in GET /v1/models, and change the Timeline.Not charged.
429daily_limit_reachedThis request would take the credits your account spent today past its daily credit limit. The count starts again at 00:00 UTC. Extra fields: limit, the daily limit in credits; renews_at, when the count starts again (the next 00:00 UTC); and the Retry-After header, the seconds until then.Send it again after renews_at, with the same retry key. Nothing ran.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.

GET /v1/renders/estimate #

About how long a render of this kind and length takes

From recent finished renders of that kind and a similar length, plus the renders waiting ahead. seconds is the middle time and slow_seconds the slow end (the 90th percentile); both are null when there are too few to say.

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
kindqueryyestext, one of: final, preview
duration_msqueryyeswhole number, 1–3600000The video's length in milliseconds.

Request

curl "https://api.oneupai.com/v1/renders/estimate?kind=final&duration_ms=30000" \
  -H "Authorization: Bearer $ONEUP_API_KEY"

Response (200)

{
  "seconds": 95,
  "slow_seconds": 140,
  "queued_ahead": 0
}
Errors: invalid_request, invalid_key, account_disabled, rate_limited, internal_error
Errors: GET /v1/renders/estimate
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.

GET /v1/renders/{render_id} #

A render's status and links

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
render_idpathyestext

Request

curl "https://api.oneupai.com/v1/renders/68d46bc5-8aec-452d-9cc6-e02c953705cd" \
  -H "Authorization: Bearer $ONEUP_API_KEY"

Response (200)

{
  "render_id": "68d46bc5-8aec-452d-9cc6-e02c953705cd",
  "ticket": "oneup_req_SeGKfj9MtZBDnuujfWeatmFPit",
  "kind": "final",
  "status": "COMPLETED",
  "progress": {},
  "poster_url": "https://media.oneupai.com/a/oneup_asset_A06obVi1TFUVNsSuvw9qWDso2M/1791436086/WkCbUhkBLfms3A9XE37emS1oYI1O66NM2DwSXgqbtKt",
  "asset_id": "oneup_asset_wVb59L9t3920xfZw397HeG4mnU",
  "created_at": "2026-10-08T04:07:18.992Z",
  "completed_at": "2026-10-08T04:08:03.414Z"
}
Errors: invalid_key, account_disabled, not_found, rate_limited, internal_error
Errors: GET /v1/renders/{render_id}
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.

POST /v1/renders/{render_id}/cancel #

Cancel a running preview

Finals cannot be canceled.

Key: API key · Credits: Free · Answers now

Parameters

Parameters
NameInRequiredTypeDescription
render_idpathyestext

Request

curl -X POST "https://api.oneupai.com/v1/renders/8e2631f2-3e17-457f-8fa5-05d4c8b93f00/cancel" \
  -H "Authorization: Bearer $ONEUP_API_KEY"

Response (200)

{
  "cancelled": true
}
Errors: invalid_request, invalid_key, account_disabled, not_found, rate_limited, internal_error
Errors: POST /v1/renders/{render_id}/cancel
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.
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.