Run a model: Voice
On this page
Run a model (queued) #
Pictures, clips, voice and music run in the background. Each model has its own path: send the body, get a ticket at once, then poll the job (see Jobs). The charge is taken when we accept the job and refunded if it fails.
Errors any model in this group can return
| 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. |
| 402 | out_of_credits | Your 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. |
| 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. |
| 403 | account_frozen | The 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. |
| 403 | credit_debt | You 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. |
| 403 | entitlement_required | Your 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. |
| 403 | plan_required | This 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. |
| 403 | storage_quota_exceeded | Your 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. |
| 404 | unknown_model | No Alias by that name is available to you. | Check the name, including the oneup/ part, against GET /v1/models. | Not charged. |
| 409 | idempotency_conflict | You 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. |
| 410 | model_retired | This 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. |
| 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. |
| 422 | invalid_input | We accepted the request, but the input could not be used: the model refused it, or the page you asked us to read could not be read. Extra fields: detail, a short reason. The page readers use these codes: listing_unreadable and listing_unreachable for a property listing; page_paywalled, page_not_article, page_unreadable and page_unreachable for an article. | Change the input and send it with a new retry key. | Refunded. |
| 429 | daily_limit_reached | This 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. |
| 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. |
| 503 | unavailable | We 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/queue/submit/oneup/speech-pro #
Studio voice
Studio-grade voice from text: up to 1,000 characters (about a minute) in a named voice, for ad reads and premium narration. Params: text, voice? (one of six voice ids), stability?, similarity_boost?, style?, speed? (0.7–1.2), language_code?, apply_text_normalization? (auto|on|off). 22 credits per request. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 22 credits · Queued: poll for the result
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
Idempotency-Key | header | yes | text, 1–∞ characters | A 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
| Field | Required | Type | Description |
|---|---|---|---|
text | yes | text, 1–1000 characters | The words to say — up to 1,000 characters (about a minute of speech). |
voice | no | text, one of: pro-warm-f, pro-warm-m, pro-bright-f, pro-friendly-m, pro-polished-f, pro-anchor-m | One of our six named studio voices; a clear, natural default when omitted. Each voice reads the model's languages, Spanish included. |
stability | no | number, 0–1 | How steady the delivery is (0 = expressive and variable, 1 = consistent); 0.5 when omitted. |
similarity_boost | no | number, 0–1 | How closely the result sticks to the chosen voice; 0.75 when omitted. |
style | no | number, 0–1 | Style exaggeration; 0 when omitted. |
speed | no | number, 0.7–1.2 | Speaking pace; 1 when omitted. |
language_code | no | text, 2–16 characters | Language of the speech (ISO 639-1 such as en or es); detected when omitted. |
apply_text_normalization | no | text, one of: auto, on, off | Whether numbers and abbreviations are spelled out; auto when omitted. |
label | no | text | Optional. 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. |
Request
curl -X POST "https://api.oneupai.com/v1/queue/submit/oneup/speech-pro" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"text": "This weekend only: every listing on the north shore, open from ten to four. Bring the family.",
"stability": 0.4,
"speed": 1
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/speech-standard #
Narration voice
Narration from text: up to 1,000 characters (about a minute) in a named voice. Params: prompt (the words), voice? (one of six voice ids), style_instructions?, output_format? (mp3|wav|ogg_opus). 11 credits per request. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 11 credits · Queued: poll for the result
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
Idempotency-Key | header | yes | text, 1–∞ characters | A 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
| Field | Required | Type | Description |
|---|---|---|---|
prompt | yes | text, 1–1000 characters | The words to say — up to 1,000 characters (about a minute of speech). Expressive tags like [sigh] or [whispering] are allowed. |
voice | no | text, one of: std-firm-f, std-calm-m, std-warm-f, std-upbeat-m, std-bright-f, std-friendly-m | One of our six named narrator voices; the calm, clear default (std-firm-f) when omitted. Each voice speaks the language of the words. |
style_instructions | no | text, 0–500 characters | How to deliver it, in plain words (warm, brisk, like a documentary…). |
output_format | no | text, one of: mp3, wav, ogg_opus | File type of the result; mp3 when omitted. |
label | no | text | Optional. 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. |
Request
curl -X POST "https://api.oneupai.com/v1/queue/submit/oneup/speech-standard" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Welcome home. Three bedrooms, two baths, and a garden that gets the morning sun.",
"style_instructions": "warm, unhurried, like a friend showing you around"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/speech-transcribe #
Transcript for captions
A word-timed transcript of your uploaded audio or video, ready for captions. Params: audio_url (your upload or asset). The result is an annotation_id you reference from a caption track. Billed per started minute of the input, up to 60 minutes. 2 credits per minute. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 2 credits per started minute of your media · Queued: poll for the result
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
Idempotency-Key | header | yes | text, 1–∞ characters | A 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
| Field | Required | Type | Description |
|---|---|---|---|
audio_url | yes | text | The speech to transcribe — an uploaded audio or video file of yours. |
label | no | text | Optional. 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. |
Request
curl -X POST "https://api.oneupai.com/v1/queue/submit/oneup/speech-transcribe" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"audio_url": "https://media.oneupai.com/u/oneup_upload_yourtalk/1790000000/sig"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.