POST
/
api
/
v1
/
client
/
aud2video
Audio to Video
curl --request POST \
  --url http://localhost:8000/api/v1/client/aud2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'prompt=<string>' \
  --form audio='@example-file' \
  --form model=Ltx2_19B_Dist_FP8 \
  --form width=768 \
  --form height=768 \
  --form seed=123 \
  --form frames=60 \
  --form guidance=10 \
  --form steps=25 \
  --form fps=123 \
  --form 'negative_prompt=<string>' \
  --form first_frame_image='@example-file' \
  --form last_frame_image='@example-file' \
  --form 'webhook_url=<string>'
{
  "data": {
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Authorizations

Authorization
string
header
required

API key obtained from the ModelBeam dashboard

Body

multipart/form-data
prompt
string
required

Video description

audio
file
required

Audio file (MP3, WAV, OGG, FLAC; max 20MB)

model
string
required
Example:

"Ltx2_19B_Dist_FP8"

width
integer
required
Required range: 256 <= x <= 1280
height
integer
required
Required range: 256 <= x <= 1280
seed
integer
required
frames
integer
required
Required range: 1 <= x <= 120
guidance
number
Required range: 0 <= x <= 20
steps
integer
Required range: 1 <= x <= 50
fps
integer
negative_prompt
string
first_frame_image
file

Starting frame image (max 10MB)

last_frame_image
file

Ending frame image (max 10MB)

webhook_url
string
Maximum string length: 2048

Response

Video generation job created

data
object