GET
/v1/schemas/fal/audio/sonilo%2Fv1.1%2Fvideo-to-music
Accept:
Request body
5 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| video_url* | string | Public http(s) URL of the source video to score. | |
| start_offset | number | Optional. Start scoring from this offset (seconds) into the video. Requires Start Offset + Duration <= Video Duration. | 0 ≤ n ≤ 600 · nullable |
| num_samples | integer | How many distinct music tracks to generate for the video. | 1 ≤ n ≤ 3 · default: 1 |
| prompt | string | Optional text prompt steering the musical style. If omitted, a prompt is generated automatically from the video. | nullable |
| duration | number | Optional. Length (seconds) of the video segment to score. When set, scores a segment of this length starting at Start Offset (or from the beginning if Start Offset is unset). Defaults (None) to the rest of the video: the whole video when Start Offset is unset, or from Start Offset to the end when it is set. | 1 ≤ n ≤ 600 · nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"sonilo/v1.1/video-to-music","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}