Skip to main content
POST
Generate Static Video

Authorizations

x-simli-api-key
string
header
required

Body

application/json
faceId
string
required
audioBase64
string
required
audioFormat
enum<string>
required
Available options:
pcm16,
pcm32,
wav,
mp3,
ogg
audioSampleRate
integer
default:16000
audioChannelCount
integer
default:1
videoStartingFrame
integer
default:0
disableSuperRes
boolean
default:false

Turns off the face restoration pass on legacy faces.

streaming_width
integer
default:768

Width of the video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.

Required range: x >= 512
streaming_height
integer
default:768

Height of the video in pixels. See streaming_width.

Required range: x >= 512
avatar_position_x
number
default:0.5

Where the avatar sits across the canvas, from 0 (left) to 1 (right). Trinity-2 only.

Required range: 0 <= x <= 1
avatar_position_y
number
default:1

Where the avatar sits down the canvas, from 0 (top) to 1 (bottom). Trinity-2 only.

Required range: 0 <= x <= 1
camera
CameraSetting · object | null

The camera the video starts with, on top of the avatar's own framing. Trinity-2 only. Leave it out to keep the avatar's framing.

background_id
string<uuid> | null

One of your uploaded backgrounds, by the id POST /assets/backgrounds returned, to show behind the avatar, cropped to fill the canvas. Trinity-2 only. Leave it out for the avatar's own. An id that is not one of your account's is dropped with a warning, and the video uses the avatar's own. An image is not accepted: upload it first.

foreground_id
string<uuid> | null

One of your uploaded foregrounds, by the id POST /assets/foregrounds returned, laid over the avatar through its transparency and cropped to fill the canvas. Trinity-2 only; otherwise as background_id.

Response

Successful Response

The response is of type any.