# Mirelo SFX2.0 · Text to Audio

Turn text into speech and audio with Mirelo SFX2.0 · Text to Audio 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` / `mirelo-ai/sfx2.0/text-to-audio`
- Page: https://spiral.ai/tools/fal/mirelo-ai/sfx2.0/text-to-audio

## Pricing

$0.0195 per second. Billed on `duration`, default 30.

## 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 |  | — | What the sound effect should sound like |
| `negative_prompt` | text |  | — | Sounds to keep out of the result |
| `duration` | number | 0.1 to 600 | 30 | Seconds of sound to generate, up to the deployment's text-to-SFX maximum |
| `seed` | number (whole) | -1 to 9223372036854776000 | — | Seed of the first sample; -1 or unset is random |
| `num_samples` | number (whole) | 1 to 4 | 2 | Number of variations to generate. Billed per sample. |
| `upload_audio_format` | one of | wav, mp3, aac, flac | wav | Audio format of each file |
| `upload_audio_bitrate_kbps` | number (whole) | 32 to 320 | — | Bitrate in kbps for an mp3 or aac upload. mp3 is written at exactly this constant rate, one of 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320. aac takes 32 to 256 as a target the encoder may undershoot on mono or sparse audio. Unset keeps the default: mp3 at LAME V0 VBR, aac at a 256 kbps target. Refused with a lossless upload_audio_format. |

## 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": "mirelo-ai/sfx2.0/text-to-audio",
    "input": {
      "prompt": "Heavy rain on a metal roof with distant thunder"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=mirelo-ai%2Fsfx2.0%2Ftext-to-audio

## Common questions

### Mirelo SFX2.0 · Text to Audio

**How much does Mirelo SFX2.0 · Text to Audio cost?**

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

**How do I use Mirelo SFX2.0 · Text to Audio through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "mirelo-ai/sfx2.0/text-to-audio"` 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 Mirelo SFX2.0 · Text to Audio?**

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

**Can my AI agent use Mirelo SFX2.0 · Text to Audio?**

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

