Run a model: Video
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/video-animate-lite #
Photo to video clip
Image-to-video: one 5- or 10-second clip. Params: prompt, image_url, duration (5|10 seconds). 24 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 24 credits per second of clip · 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–2000 characters | Motion/scene description. |
image_url | yes | text, 1–2048 characters | Source frame. An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL. |
duration | yes | whole number, one of: 5, 10 | Clip length in seconds: 5 or 10. |
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/video-animate-lite" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"prompt": "waves at sunset",
"image_url": "https://example.com/frame.jpg",
"duration": 5
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-animate-pro-1080 #
Cinematic clip (1080p)
Cinematic image-to-video at 1080p: one 5- or 10-second clip with sound. Params: prompt, image_url, duration (5|10), resolution (fixed "1080p"), end_image_url?, aspect_ratio?. 145 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 145 credits per second of clip · 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–2000 characters | Motion/scene description. |
image_url | yes | text, 1–2048 characters | Starting frame (JPEG, PNG or WebP). An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL. |
end_image_url | no | text, 1–2048 characters | Optional final frame for a transition from the start image. |
duration | yes | whole number, one of: 5, 10 | Clip length in seconds: 5 or 10. |
resolution | yes | text, one of: 1080p | This capability renders at 1080p — the value is fixed. For 720p or 4K use the sibling capabilities. |
aspect_ratio | no | text, one of: auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | Frame shape; auto (matches the image) 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/video-animate-pro-1080" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"prompt": "golden-hour drone reveal of the house, slow and steady",
"image_url": "https://example.com/frame.jpg",
"duration": 5,
"resolution": "1080p"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-animate-pro-4k #
Cinematic clip (4K)
Cinematic image-to-video at 4K: one 5- or 10-second clip with sound. Params: prompt, image_url, duration (5|10), resolution (fixed "4k"), end_image_url?, aspect_ratio?. 331 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 331 credits per second of clip · 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–2000 characters | Motion/scene description. |
image_url | yes | text, 1–2048 characters | Starting frame (JPEG, PNG or WebP). An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL. |
end_image_url | no | text, 1–2048 characters | Optional final frame for a transition from the start image. |
duration | yes | whole number, one of: 5, 10 | Clip length in seconds: 5 or 10. |
resolution | yes | text, one of: 4k | This capability renders at 4K — the value is fixed. For 720p or 1080p use the sibling capabilities. |
aspect_ratio | no | text, one of: auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | Frame shape; auto (matches the image) 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/video-animate-pro-4k" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"prompt": "golden-hour drone reveal of the house, slow and steady",
"image_url": "https://example.com/frame.jpg",
"duration": 5,
"resolution": "4k"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-animate-pro-720 #
Cinematic clip (720p)
Cinematic image-to-video at 720p: one 5- or 10-second clip with sound. Params: prompt, image_url, duration (5|10), resolution (fixed "720p"), end_image_url?, aspect_ratio?. 65 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 65 credits per second of clip · 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–2000 characters | Motion/scene description. |
image_url | yes | text, 1–2048 characters | Starting frame (JPEG, PNG or WebP). An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL. |
end_image_url | no | text, 1–2048 characters | Optional final frame for a transition from the start image. |
duration | yes | whole number, one of: 5, 10 | Clip length in seconds: 5 or 10. |
resolution | yes | text, one of: 720p | This capability renders at 720p — the value is fixed. For 1080p or 4K use the sibling capabilities. |
aspect_ratio | no | text, one of: auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | Frame shape; auto (matches the image) 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/video-animate-pro-720" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"prompt": "golden-hour drone reveal of the house, slow and steady",
"image_url": "https://example.com/frame.jpg",
"duration": 5,
"resolution": "720p"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-animate-standard #
Photo to full-motion clip
Full-motion image-to-video with sound: one 5-, 10- or 15-second clip, optional end frame. Params: prompt, start_image_url, duration (5|10|15), end_image_url?, generate_audio?, negative_prompt?. 36 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 36 credits per second of clip · 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–2000 characters | Motion/scene description. |
start_image_url | yes | text, 1–2048 characters | Starting frame. An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL. |
end_image_url | no | text, 1–2048 characters | Optional final frame — the clip travels from the start image to this one. |
duration | yes | whole number, one of: 5, 10, 15 | Clip length in seconds: 5, 10 or 15. |
generate_audio | no | yes / no | Generate a soundtrack with the clip; on when omitted. Priced the same either way. |
negative_prompt | no | text, 0–500 characters | What to avoid. |
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/video-animate-standard" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"prompt": "slow push-in as steam rises from the cup",
"start_image_url": "https://example.com/frame.jpg",
"duration": 5
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-camera-move #
Move a real camera around a photo
Moves a real camera around what a photograph shows: an orbit, a dolly in, a crane up or a sweep around and in, flown exactly as asked. One 5-second clip at 768p. Params: image_url, move (orbit_left|orbit_right|dolly_in|crane_up|corner_sweep), degrees|travel|rise, duration (fixed 5), resolution (fixed "768p"). 85 credits, charged once per photograph per move. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 85 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 |
|---|---|---|---|
image_url | yes | text, 1–2048 characters | The photograph the camera moves around: an uploaded file_url from /v1/uploads or an external image URL (https). Crop it to the frame shape you want first — the clip comes back in the picture's own shape. |
move | yes | text, one of: orbit_left, orbit_right, dolly_in, crane_up, corner_sweep | Which move to fly. orbit_left / orbit_right walk around the subject at the distance the photo was taken from; dolly_in advances into the room with a little drift, so it reads as a dolly and not a zoom; crane_up lifts; corner_sweep goes around and in at once, which is the reveal for a large room. |
degrees | no | number, 5–45 | How far around the subject the camera travels, for orbit_left, orbit_right and corner_sweep. Defaults to 35 for an orbit, 26 for a sweep. Refused for the other moves. |
travel | no | number, 0.1–0.6 | How far into the scene the camera advances, as a fraction of its starting distance, for dolly_in. Default 0.45. Refused for the other moves. |
rise | no | number, 2–25 | How far the camera lifts, in degrees above the subject, for crane_up. Default 12. Refused for the other moves. |
duration | yes | whole number, one of: 5 | Clip length in seconds. This capability renders 5-second clips — the value is fixed. |
resolution | yes | text, one of: 768p | This capability renders at 768p — the value is fixed. |
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/video-camera-move" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://media.oneupai.com/u/…/uploads/oneup_upload_…",
"move": "orbit_right",
"degrees": 35,
"duration": 5,
"resolution": "768p"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-cutout #
Cut the person out of a clip
The person in one of your clips, cut out from the room, ready for a new background (a colour, a photo or the room blurred) in a render. Params: video_url (your upload or asset, up to 3 minutes). The result is a video asset you reference as a segment's background matte. Billed per started minute of the clip, once per clip; asking again for the same clip costs nothing. 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 |
|---|---|---|---|
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/video-cutout" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://media.oneupai.com/u/oneup_upload_yourclip/1790000000/sig"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-cutout-pro #
Cut the person out of a clip, finest edges
Cuts the person out of one of your clips so it can stand on a new background (a color, a photo or the room blurred) in a render. Params: video_url (your upload or asset, up to 3 minutes). The result is two video assets, always in this order: the person's colors, then the person's coverage (black is the room, white is the person); reference them as a segment's background matte and alpha (schema v1.20). Billed per started 30 frames of the whole clip (5 credits a second at 30 frames a second), once per clip; asking again for the same upload costs nothing. 5 credits per 30 frames. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 5 credits per started 30 frames of your video · 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 |
|---|---|---|---|
video_url | yes | text | The clip whose person is cut out: an uploaded video of yours or one of your video assets (up to 3 minutes). |
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/video-cutout-pro" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://media.oneupai.com/u/oneup_upload_yourclip/1790000000/sig"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-lipsync-lite #
Lip-sync a video
Lip-sync your uploaded video to your uploaded audio. Params: video_url, audio_url (both must be your uploads or assets). Billed per second of the longer input, rounded up, up to 60 seconds. 9 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 9 credits per second of your media (rounded up) · 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 |
|---|---|---|---|
video_url | yes | text, 1–2048 characters | Your video: the file_url of one of your uploads or the URL of one of your assets. Its length counts toward the billed seconds. |
audio_url | yes | text, 1–2048 characters | The speech to sync to: the file_url of one of your uploads or the URL of one of your assets. Its length counts toward the billed seconds. |
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/video-lipsync-lite" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://media.oneupai.com/u/oneup_upload_yourvideo/1790000000/sig",
"audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-lipsync-pro #
Lip-sync a video (studio)
Highest-fidelity lip-sync of your uploaded video to your uploaded audio; the result is cut to the shorter input. Params: video_url, audio_url (your uploads or assets), sync_mode (fixed "cut_off"). Billed per second of the shorter input, rounded up, up to 60 seconds. 18 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 18 credits per second of your media (rounded up) · 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 |
|---|---|---|---|
video_url | yes | text, 1–2048 characters | Your video: the file_url of one of your uploads or the URL of one of your assets. The result is cut to the shorter of video and audio. |
audio_url | yes | text, 1–2048 characters | The speech to sync to: the file_url of one of your uploads or the URL of one of your assets. |
sync_mode | no | text, one of: cut_off | Fixed to cut_off: the result is cut to the shorter input, which is what you are billed for. |
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/video-lipsync-pro" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://media.oneupai.com/u/oneup_upload_yourvideo/1790000000/sig",
"audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig",
"sync_mode": "cut_off"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-lipsync-standard #
Lip-sync a short moment
Lip-sync your uploaded video to your uploaded audio; the video's timing is mapped onto the audio, so the result runs as long as the audio. Params: video_url, audio_url (your uploads or assets), sync_mode (fixed "remap"). Billed per second of the audio, rounded up, up to 60 seconds. 11 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 11 credits per second of your media (rounded up) · 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 |
|---|---|---|---|
video_url | yes | text, 1–2048 characters | Your video: the file_url of one of your uploads or the URL of one of your assets. Its timing is mapped onto the audio, so the result runs as long as the audio. |
audio_url | yes | text, 1–2048 characters | The speech to sync to: the file_url of one of your uploads or the URL of one of your assets. You are billed for its length. |
sync_mode | no | text, one of: remap | Fixed to remap: the video's timing is mapped onto the audio, so the result runs as long as the audio, which is what you are billed for. |
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/video-lipsync-standard" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://media.oneupai.com/u/oneup_upload_yourvideo/1790000000/sig",
"audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig",
"sync_mode": "remap"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.
POST /v1/queue/submit/oneup/video-talking-photo #
Talking photo
A still photo that speaks your uploaded audio, at 1080p. Params: image_url (any image), audio_url (your upload or asset — sets the length), prompt?, resolution (fixed "1080p"). Billed per second of audio, rounded up, up to 30 seconds. 34 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.
Key: API key · Credits: 34 credits per second of your media (rounded up) · 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 |
|---|---|---|---|
image_url | yes | text, 1–2048 characters | The photo to animate — a person, facing the camera. An upload file_url, one of your assets, or any image URL. |
audio_url | yes | text, 1–2048 characters | The speech: the file_url of one of your uploads or the URL of one of your assets. Its length is what you are billed for (up to 30 seconds). |
prompt | no | text, 0–1000 characters | Optional direction for the performance (calm, animated, looking left…). |
resolution | no | text, one of: 1080p | Fixed to 1080p. |
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/video-talking-photo" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/portrait.jpg",
"audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig",
"resolution": "1080p"
}'Response (200)
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}Errors: the same as every endpoint in this group, listed above.