models/Mirelo AI/Mirelo SFX2.0
MA
Mirelo AI

Mirelo SFX2.0

music
Compare

Generates sound effects from text prompts with control over duration, negative prompts, sample count, and output audio format.

MODALITIES
text
PER SECOND
$0.010

Mirelo SFX2.0 (mirelo-ai/sfx2.0/text-to-audio) is a music model from Mirelo AI. Pricing via AIgateway: $0.010 per second. Call it via https://api.aigateway.sh/v1/audio/music — set model="mirelo-ai/sfx2.0/text-to-audio".

model · mirelo-ai/sfx2.0/text-to-audio

Use this model

model: mirelo-ai/sfx2.0/text-to-audio
curl https://api.aigateway.sh/v1/audio/music \
  -H "Authorization: Bearer $AIGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"mirelo-ai/sfx2.0/text-to-audio","prompt":"lo-fi piano with light rain","duration":15}'
API schema

Call Mirelo SFX2.0 from any OpenAI SDK

POST https://api.aigateway.sh/v1/audio/music·Content-Type: application/json·Auth: Bearer sk-aig-...

Request body

json
{
  "model": "mirelo-ai/sfx2.0/text-to-audio",
  "prompt": "Calm lo-fi instrumental, warm Rhodes, vinyl crackle",
  "is_instrumental": true,     // omit and pass "lyrics" for a vocal track
  "duration": 15,             // seconds — honored, clamped to this model's range
}

// Response is an async job — poll /v1/jobs/<id> until status === "completed".

Response

json
{
  "id": "job_abc123",
  "status": "queued",
  "model": "mirelo-ai/sfx2.0/text-to-audio",
  "created": 1776947082
}

// After completion:
{
  "id": "job_abc123",
  "status": "completed",
  "result": {
    "url": "https://media.aigateway.sh/music/abc123.mp3",
    "duration": 30
  }
}

Quickstart

import os, requests

r = requests.post(
    "https://api.aigateway.sh/v1/audio/music",
    headers={"Authorization": f"Bearer {os.environ['AIGATEWAY_API_KEY']}"},
    json={
        "model": "mirelo-ai/sfx2.0/text-to-audio",
        "prompt": "Calm lo-fi instrumental, warm Rhodes, vinyl crackle",
        "is_instrumental": True
    },
)
print(r.json())

Errors

401authentication_errorInvalid or missing API key
402insufficient_creditsWallet empty (PAYG only)
404not_foundUnknown model or endpoint
429rate_limit_errorOver per-minute limit — see Retry-After header
500server_errorUpstream provider failed (retryable)
503service_unavailableUpstream saturated (retryable)
Full docs →API reference →OpenAPI spec →llms.txt →

Frequently asked questions

What is Mirelo SFX2.0?
Generates sound effects from text prompts with control over duration, negative prompts, sample count, and output audio format. It is a music model from Mirelo AI, accessible via AIgateway's OpenAI-compatible API at slug mirelo-ai/sfx2.0/text-to-audio.
How much does Mirelo SFX2.0 cost via AIgateway?
Pass-through pricing. See the pricing panel on this page for exact rates.
How do I call Mirelo SFX2.0 from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to "mirelo-ai/sfx2.0/text-to-audio". The request and response shapes match OpenAI exactly.
Does Mirelo SFX2.0 support streaming, tool calling, vision, and JSON mode?
Streaming — no. Tool calling — no. Vision — no. JSON mode — no. Prompt caching — no.
Can I bring my own Mirelo AI API key (BYOK)?
Yes. Attach a Mirelo AI key in your AIgateway dashboard and this model flips to pass-through — you pay Mirelo AI directly and AIgateway adds no platform fee on those calls.