Run a model
On this page
The model list #
Every model, with its input, its output and its live price.
GET /v1/models #
Every model, its input and its price
Public: no key needed. The live list, the same for every caller. Each model also has its own path in this reference.
Key: None · Credits: Free · Answers now
Request
curl "https://api.oneupai.com/v1/models"Response (200)
{
"models": [
{
"alias": "oneup/image-generate-lite",
"name": {
"en": "Quick image",
"es": "Imagen rápida"
},
"group": "building_block",
"status": "active",
"previously": [
"oneup/image-fast"
],
"version": 1,
"category": "image",
"execution": "queue",
"description": {
"en": "Fast text-to-image. Params: prompt, image_size?. Priced per megapixel (max 4 MP).",
"es": "Texto a imagen rápido. Parámetros: prompt, image_size?. Precio por megapíxel (máx. 4 MP)."
},
"example_input": {
"prompt": "a red bicycle in the rain"
},
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "What to generate."
},
"image_size": {
"type": "object",
"additionalProperties": false,
"required": [
"width",
"height"
],
"properties": {
"width": {
"type": "integer",
"minimum": 256,
"maximum": 2048
},
"height": {
"type": "integer",
"minimum": 256,
"maximum": 2048
}
}
}
}
},
"output_schema": {
"type": "object",
"additionalProperties": true,
"required": [
"assets"
],
"properties": {
"assets": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"asset_id",
"content_type",
"size_bytes",
"url"
]
}
}
}
},
"input_modalities": [
"text"
],
"output_modalities": [
"image"
],
"limits": {
"chars": {
"prompt": {
"min": 1,
"max": 2000
}
},
"image_side_px": {
"min": 256,
"max": 2048
},
"megapixels": {
"min": 1,
"max": 4
}
},
"output": {
"summary": {
"en": "One finished image, ready to download or to use as a cover in a video.",
"es": "Una imagen terminada, lista para descargar o usar como portada en un video."
},
"delivery": "file",
"type": "image/*",
"resolution": "as_requested",
"link_expires_in_s": 3600
},
"run_time": {
"p50_s": 6.4,
"p95_s": 15.2
},
"best_for": {
"en": [
"Product shots",
"Social posts",
"Covers and thumbnails"
],
"es": [
"Fotos de producto",
"Publicaciones sociales",
"Portadas y miniaturas"
]
},
"not_for": {
"en": [
"Editing a photo you already have: use oneup/image-edit.",
"Our most detailed pictures: use oneup/image-generate-pro.",
"Pictures larger than 4 megapixels."
],
"es": [
"Editar una foto que ya tienes: usa oneup/image-edit.",
"Nuestras imágenes con más detalle: usa oneup/image-generate-pro.",
"Imágenes de más de 4 megapíxeles."
]
},
"example": {
"input": {
"prompt": "a red bicycle in the rain"
},
"output_url": null,
"response": null
},
"price_examples": {
"en": [
"a picture at the default size (1 megapixel): 1 credit, about $0.01",
"a 2000 × 2000 picture (4 megapixels): 4 credits, about $0.04"
],
"es": [
"una imagen al tamaño por defecto (1 megapíxel): 1 crédito, unos 0,01 US$",
"una imagen de 2000 × 2000 (4 megapíxeles): 4 créditos, unos 0,04 US$"
]
},
"changelog": [
{
"version": 1,
"date": "2026-10-08",
"change": {
"en": "New name; previously oneup/image-fast. The same input, output and price.",
"es": "Nombre nuevo; antes oneup/image-fast. La misma entrada, salida y precio."
}
},
{
"version": 1,
"date": "2026-08-07",
"change": {
"en": "First version.",
"es": "Primera versión."
}
}
],
"pricing": {
"type": "per_megapixel",
"credit_cost": 0,
"unit_credit_cost": 1,
"unit_param": "megapixels",
"unit_min": 1,
"unit_max": 4,
"unit_source": "param"
}
}
]
}Errors: rate_limited, internal_error
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 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. |
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. |
| Method | Path | Key | Credits | How it answers |
|---|---|---|---|---|
POST | / | API key | 2 credits | Queued: poll for the result |
POST | / | API key | 22 credits | Queued: poll for the result |
POST | / | API key | 7 credits | Queued: poll for the result |
POST | / | API key | 10 credits | Queued: poll for the result |
POST | / | API key | 1 credit | Queued: poll for the result |
POST | / | API key | 13 credits (first megapixel) + 4 per additional | Queued: poll for the result |
POST | / | API key | 1 credit per megapixel | Queued: poll for the result |
POST | / | API key | 7 credits (first megapixel) + 4 per additional | Queued: poll for the result |
POST | / | API key | 4 credits | Queued: poll for the result |
POST | / | API key | 3 credits | Queued: poll for the result |
POST | / | API key | 22 credits | Queued: poll for the result |
POST | / | API key | 11 credits | Queued: poll for the result |
POST | / | API key | 2 credits per started minute of your media | Queued: poll for the result |
POST | / | API key | 24 credits per second of clip | Queued: poll for the result |
POST | / | API key | 145 credits per second of clip | Queued: poll for the result |
POST | / | API key | 331 credits per second of clip | Queued: poll for the result |
POST | / | API key | 65 credits per second of clip | Queued: poll for the result |
POST | / | API key | 36 credits per second of clip | Queued: poll for the result |
POST | / | API key | 85 credits | Queued: poll for the result |
POST | / | API key | 2 credits per started minute of your media | Queued: poll for the result |
POST | / | API key | 5 credits per started 30 frames of your video | Queued: poll for the result |
POST | / | API key | 9 credits per second of your media (rounded up) | Queued: poll for the result |
POST | / | API key | 18 credits per second of your media (rounded up) | Queued: poll for the result |
POST | / | API key | 11 credits per second of your media (rounded up) | Queued: poll for the result |
POST | / | API key | 34 credits per second of your media (rounded up) | Queued: poll for the result |
Run a model (answer now) #
Text models and page readers answer in the same request, within 60 seconds. A retry with the same Idempotency-Key within 15 minutes returns the same answer without a second charge.
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. |
| 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. |
| 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. |
| 409 | result_expired | You retried a sync request more than 15 minutes after its first answer, so we no longer hold the output to send again. | If you still need the output, run the request again with a new retry key. That is a new charge. | The first charge stands; the work ran. |
| 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. |
| Method | Path | Key | Credits | How it answers |
|---|---|---|---|---|
POST | / | API key | 3 credits | Answers now |
POST | / | API key | 7 credits | Answers now |
POST | / | API key | 80 credits | Answers now |
POST | / | API key | 30 credits | Answers now |
POST | / | API key | 6 credits | Answers now |
POST | / | API key | 2 credits | Answers now |
POST | / | API key | 2 credits | Answers now |