# Sonilo 1.1 Video to Music API

> Sonilo 1.1 Video to Music scores a video with a matching music track that follows its pacing and scene changes, optionally steered by a style prompt.

Source: https://www.sandbase.ai/models/sonilo/1.1/video-to-music
API reference: https://www.sandbase.ai/models/sonilo/1.1/video-to-music#api

## Facts

- Provider: Sonilo
- Type: Audio model
- Model ID: `sonilo/1.1/video-to-music`
- Price: From $0.27 per run
- Capabilities: video to audio
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sonilo/1.1/video-to-music",
  "video": "https://v3b.fal.media/files/b/0a9ddd00/2QssaYyFxstvVlmIraSns_Sonilo_Demo_Original_1.mp4",
  "prompt_influence": 0.5
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Sonilo 1.1 Video to Music through SandBase?

Create a SandBase API key, then send requests with the model ID "sonilo/1.1/video-to-music" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Sonilo account?

No. One SandBase API key and balance gives you access to Sonilo 1.1 Video to Music and the other models in the catalog; you do not need to sign up with Sonilo separately.

## README

### Sonilo 1.1 Video to Music

Sonilo 1.1 Video to Music writes a soundtrack that follows a video's pacing and scene changes.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `video` | video file or URL, required | — | Video to score. |
| `prompt` | string | — | Optional style; generated from the video when empty. |
| `duration` | number 1–600 | — | Length of the segment to score; defaults to the rest of the video. |
| `start_offset` | number 0–600 | — | Where scoring starts, in seconds. |
| `prompt_influence` | number 0–1 | 0.5 | Higher follows the prompt more. |

#### Billing

$0.009 per started second of generated music, with a 10-second minimum. The quote uses `duration`, or the video length minus `start_offset`; the final charge uses the output length.

| Music length | Price |
|---|---|
| 5 s | $0.09 |
| 30 s | $0.27 |
| 120 s | $1.08 |

Failed runs are not charged.

#### Prompting

- Name genre and mood; leave `prompt` empty to let Sonilo read the video.

#### Also on SandBase

Related: `sonilo/1.1/text-to-music`, `sonilo/1.1/text-to-sound-effects`, `sonilo/1.1/video-to-sound-effects`.
