Skip to main content
POST
Create a render

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <API key>. Keys begin with sk-. A missing or invalid key answers 401 UNAUTHENTICATED. Never expose an API key in browser code.

Headers

Idempotency-Key
string

Caller-generated stable key, maximum 255 characters, scoped to the API key and kept for 24 hours. Required by the application/json draft form of POST /v1/renders; optional and honoured by the multipart/form-data form.

Required string length: 1 - 255
X-Request-Id
string

Optional caller-supplied correlation ID, echoed as sent in the response header. Omit it and the service generates one. Use it for tracing and support.

Minimum string length: 1

Body

Supply the character as one of image, image_url (or its ref_url/ref_image_url aliases), or character_id, and the motion as one of motion_video, motion_video_url (or its video_url/driving_video_url aliases), or motion_id/scene_id. If neither group is supplied at all, the server substitutes its own preconfigured default character_id/motion_id and renders that instead of rejecting the request — supplying either group partially (for example a character source with no motion source) is still an error.

image
file

Character image uploaded directly. Use exactly one character source among image, image_url, and character_id.

image_url
string<uri>

Public URL of a character image that the service can fetch. Use instead of image or character_id.

ref_url
string<uri>
deprecated

Backward-compatible alias for image_url. Do not combine character URL aliases.

ref_image_url
string<uri>
deprecated

Backward-compatible alias for image_url. Do not combine character URL aliases.

character_id
string

ID of a ready reusable Character owned by the caller. Use instead of uploading or linking a new image.

Minimum string length: 1
motion_video
file

Driving video uploaded directly. Use exactly one motion source among motion_video, motion_video_url, and motion_id.

motion_video_url
string<uri>

Public URL of a driving video that the service can fetch. Use instead of motion_video or motion_id.

video_url
string<uri>
deprecated

Backward-compatible alias for motion_video_url. Do not combine motion URL aliases.

driving_video_url
string<uri>
deprecated

Backward-compatible alias for motion_video_url. Do not combine motion URL aliases.

motion_id
string

ID of a ready reusable Motion owned by the caller. Use instead of uploading or linking a new driving video.

Minimum string length: 1
scene_id
string
deprecated

Backward-compatible alias for motion_id (the internal name for a reusable Motion). Do not send both fields.

Minimum string length: 1
mode
enum<string>

Advanced pipeline mode. Omit to infer preprocessed when a Motion ID is supplied and full_pipeline otherwise.

Available options:
full_pipeline,
preprocessed,
character_only,
scene_preprocess
background_mode
enum<string>
default:original

inpaint is accepted and treated as original. This set is unrelated to RenderOutputOptions.background_mode, which belongs to the draft-based flow.

Available options:
original,
solid,
transparent,
inpaint
bg_color
string

Solid background colour as three decimal components, "R,G,B", for example "0,177,64". Valid only with background_mode=solid.

Example:

"0,177,64"

background_url
string<uri>

Optional custom background image URL forwarded to the render pipeline. Normally omitted unless the selected pipeline mode supports it.

model
enum<string>

Optional render model. Omit to let the service infer the model from saved assets or use its configured default.

Available options:
V3,
v3,
V3_Preview,
V4,
v4,
V4_Preview,
V4_BaseSG
character_mapping
string

Multi-person render. A JSON object, sent as a string, that maps each person (track ID) of a multi-person Motion to a ready Character owned by the caller; Character IDs may use the public char_ prefix. For a Motion imported from a template, the track IDs are the UUIDs of the people in that template. A key that is not a track of the Motion answers 400 with the valid keys in the message. People left out of the mapping are rendered with the primary character source (character_id, image, or image_url), which is still required. Billing counts one character per mapping entry.

Response

Render accepted from a direct multipart/form-data request.

stage, progress, and created_at are null on renders that carry no such information. Treat them as optional when reading.

The resource response exposes the result URLs but does not expose media dimensions, duration, thumbnail URL, or URL expiry metadata. Clients must not infer those fields from this contract.

id
string
required

Public Render ID, normally beginning with render_; use it with get, events, and download operations.

Minimum string length: 1
status
enum<string>
required

Overall render lifecycle. ready, failed, and cancelled are terminal states.

Available options:
queued,
processing,
ready,
failed,
cancelled
stage
enum<string> | null
required

Coarse pipeline phase when one can be mapped to the public vocabulary; null when unavailable or unknown.

Available options:
analyzing,
rendering,
finishing
progress
integer
required

Best-effort completion percentage from 0 through 100; 0 until the pipeline reports progress.

Required range: 0 <= x <= 100
video_url
string<uri> | null
required

CDN URL of the completed rendered video; null until the render is ready or when no output was produced. Result files are deleted 24 hours after the render finishes.

alpha_url
string<uri> | null
required

CDN URL of the alpha/mask video for transparent output; null for non-transparent renders or until ready.

created_at
string<date-time> | null
required

ISO 8601 timestamp when the render was created; null when the backing pipeline did not provide it.

completed_at
string<date-time> | null
required

ISO 8601 timestamp when the render entered a terminal state; null while it is still active.

error
object | null
required

Structured failure details when status is failed; otherwise null.