models/Stability AI/Stable Audio 25 Text To Audio
SA
Stability AI

Stable Audio 25 Text To Audio

music
Compare

Generate high quality music and sound effects using Stable Audio 2.5 from StabilityAI

MODALITIES
text
PER SECOND
$0.200

Stable Audio 25 Text To Audio (stability-ai/stable-audio-25-text-to-audio) is a music model from Stability AI. Pricing via AIgateway: $0.200 per second. Call it via https://api.aigateway.sh/v1/audio/music — set model="stability-ai/stable-audio-25-text-to-audio". Best for: Background tracks, Game scores, Ad jingles.

model · stability-ai/stable-audio-25-text-to-audio

Use this model

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

Capabilities

Strengths

  • Full-track generation
  • Lyric-aware composition

Use cases

Background tracksGame scoresAd jingles

Pricing

Per video second$0.200
You pay pass-through · 5% applied at credit top-up, not per-call.
See API example →CompareAPI referenceSee usage ranking →

Collections

More text models →More from Stability AIFrontier models →Free-tier models →
API schema

Call Stable Audio 25 Text To Audio from any OpenAI SDK

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

Request body

json
{
  "model": "stability-ai/stable-audio-25-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": "stability-ai/stable-audio-25-text-to-audio",
  "created": 1776947082
}

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

Quickstart

# See docs at https://aigateway.sh/docs

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 Stable Audio 25 Text To Audio?
Generate high quality music and sound effects using Stable Audio 2.5 from StabilityAI It is a music model from Stability AI, accessible via AIgateway's OpenAI-compatible API at slug stability-ai/stable-audio-25-text-to-audio.
How much does Stable Audio 25 Text To Audio cost via AIgateway?
Pass-through pricing plus a 5% platform fee applied at top-up. See the pricing panel on this page for exact rates.
How do I call Stable Audio 25 Text To Audio from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to "stability-ai/stable-audio-25-text-to-audio". The request and response shapes match OpenAI exactly.
Does Stable Audio 25 Text To Audio support streaming, tool calling, vision, and JSON mode?
Streaming — no. Tool calling — no. Vision — no. JSON mode — no. Prompt caching — no.
What are the best use cases for Stable Audio 25 Text To Audio?
Background tracks, Game scores, Ad jingles. Key strengths: Full-track generation; Lyric-aware composition.
Can I bring my own Stability AI API key (BYOK)?
Yes. Attach a Stability AI key in your AIgateway dashboard and this model flips to pass-through — you pay Stability AI directly and AIgateway waives the 5% platform fee on those calls.