Skip to content

V1.1

POST/v1/run

1.1 Video To Music by Sonilo - advanced AI model for video-to-audio. Delivers high-quality results with fast inference, suitable for both creative and production workflows.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to sonilo/1.1/video-to-music.

Default: sonilo/1.1/video-to-music

stringpromptrequired

Optional text prompt steering the musical style. If omitted, a prompt is generated automatically from the video.

Optional<string>video

Public http(s) URL of the source video to score.

Optional<integer>duration

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.

Range: 1 to 600

Optional<integer>num_samples

How many distinct music tracks to generate for the video.

Range: 1 to 3

Default: 1

Optional<number>start_offset

Optional. Start scoring from this offset (seconds) into the video. Requires Start Offset + Duration <= Video Duration.

Range: 0 to 600

Optional<number>prompt_influence

Turn it up to match the text prompt

Range: 0 to 1

Default: 0.5

Response Schema

The submit endpoint returns a run response. If its status is pending or running, poll GET /v1/run/{id} with the returned opaque ID until it reaches a terminal state.

stringidrequired

Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.

stringstatusrequired

Current public run status.

Allowed values: pending, running, completed, failed, timeout

Optional<string>model

Public SandBase model name used for this run.

Optional<array<object>>outputs

Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.

Optional<object>error

Present only for failed or timeout runs. Contains a public error type and sanitized message.

Optional<string>error.type

Stable public error category.

Optional<string>error.message

Sanitized error message safe to show to clients.

Optional<object>usage

Usage details when available.

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: video-to-audio

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async