# Sonilo 1.1 Text to Music API

> Sonilo 1.1 Text to Music generates an instrumental music track up to 10 minutes long from a text description of style, mood, and instruments.

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

## Facts

- Provider: Sonilo
- Type: Audio model
- Model ID: `sonilo/1.1/text-to-music`
- Price: From $0.23 per run
- Capabilities: text to music
- 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/text-to-music",
  "prompt": "A blend of R&B warmth, soul depth, neo-soul texture, gospel spirit, pop clarity, and jazz sophistication.",
  "duration": 90
}'
```

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 Text to Music through SandBase?

Create a SandBase API key, then send requests with the model ID "sonilo/1.1/text-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 Text to Music and the other models in the catalog; you do not need to sign up with Sonilo separately.

## README

### Sonilo 1.1 Text to Music

Sonilo 1.1 Text to Music generates a music track up to 10 minutes from a text prompt.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Style, mood, instruments. |
| `duration` | integer 1–600 | 90 | Track length in seconds. |

#### Billing

$0.0025 per second of requested duration, with a 10-second minimum.

| Length | Price |
|---|---|
| 5 s | $0.025 |
| 90 s | $0.225 |
| 600 s | $1.50 |

Failed runs are not charged.

#### Prompting

- List genre, mood, and lead instruments in one sentence.

#### Also on SandBase

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