# Sonilo 1.1 Text to Sound Effects API

> Sonilo 1.1 Text to Sound Effects generates a sound effect or ambience from 0.5 to 180 seconds long from a text description, in AAC, MP3, WAV, or FLAC.

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

## Facts

- Provider: Sonilo
- Type: Audio model
- Model ID: `sonilo/1.1/text-to-sound-effects`
- Price: From $0.01 per run
- Capabilities: text 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/text-to-sound-effects",
  "prompt": "Heavy rain on a tin roof with distant rolling thunder",
  "duration": 8,
  "output_format": "aac"
}'
```

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 Sound Effects through SandBase?

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

## README

### Sonilo 1.1 Text to Sound Effects

Sonilo 1.1 Text to Sound Effects generates a sound effect or ambience from 0.5 to 180 seconds from a text prompt.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | The sound, its source, and the space it is in. |
| `duration` | number 0.5–180 | 8 | Length in seconds. |
| `output_format` | `wav` / `mp3` / `aac` / `flac` | `aac` | Output file format. |

#### Billing

$0.0018 per started second of requested duration.

| Length | Price |
|---|---|
| 8 s | $0.0144 |
| 30 s | $0.054 |
| 180 s | $0.324 |

Failed runs are not charged.

#### Prompting

- Name the source and the space, e.g. "rain on a tin roof, distant thunder".

#### Also on SandBase

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