Skip to main content
POST
Generate music from video

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
video
file
required

Multipart file part; e.g. video/mp4. Max file size 300MB.

prompt
string

Optional text prompt to guide music generation.

Response

OK - Streaming NDJSON response with audio generation events

A single NDJSON event from the Sonilo streaming response. Additional event types beyond those listed may appear; unknown types should be ignored by clients.

copy_index
integer
required
Required range: x >= 0
display_tags
string[]
required
prompt_index
integer
required
Required range: x >= 0
stream_index
integer
required
Required range: x >= 0
title
string
required
type
enum<string>
required
Available options:
title
summary
string

Short natural-language description of the generated track.