# Sonilo V1.1 Text to Music

Turn text into speech and audio with Sonilo V1.1 Text to Music from fal through one Spiral API key. It runs in the background and returns audio. Pay as you go, with no subscription.

- Provider: fal
- Category: Audio
- Runs: In the background
- Returns: audio
- Tool id: `fal` / `sonilo/v1.1/text-to-music`
- Page: https://spiral.ai/tools/fal/sonilo/v1.1/text-to-music

## Pricing

$0.00325 per second. Billed on `duration`, default 90.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 255 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `prompt` (required) | text |  | — | Text prompt describing the music to generate. |
| `duration` | number (whole) | 1 to 600 | 90 | Requested output duration in seconds (max 600). Also used for billing (one billable unit per second per sample, rounded up; each sample under 10s bills as 10s). |
| `num_samples` | number (whole) | 1 to 3 | 1 | How many distinct music tracks to generate. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "sonilo/v1.1/text-to-music",
    "input": {
      "prompt": "A blend of R&B warmth, soul depth, neo-soul texture, gospel spirit, pop clarity, and jazz sophistication."
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=sonilo%2Fv1.1%2Ftext-to-music

## Common questions

### Sonilo V1.1 Text to Music

**How much does Sonilo V1.1 Text to Music cost?**

$0.00325 per second. Billed on `duration`, default 90. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Sonilo V1.1 Text to Music through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "sonilo/v1.1/text-to-music"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use Sonilo V1.1 Text to Music?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use Sonilo V1.1 Text to Music?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

