SoundFoundryAI

Music API documentation

Available to approved accounts. Request access.

Authentication

Send your key as a bearer token. Keys are shown once when created, stored only as a hash, and can be revoked at any time. Never put a key in browser code.

Authorization: Bearer sfai_live_…

Generate

One call is one generation request (normally up to 2 alternatives). It costs 10 credits on chirp-v6-mini and 12 on premium models, charged before submission and refunded if the request fails. Scope: music:generate.

curl -X POST https://soundfoundryai.com/api/v1/music/generate \
  -H "Authorization: Bearer $SFAI_KEY" -H "Content-Type: application/json" \
  -d '{"mode":"inspiration","title":"Sunday Morning Glow","prompt":"warm acoustic song about a lazy Sunday","model":"chirp-v6-mini"}'

202 {"job_id":"…","status":"processing"}

Job status

Poll every 5–10 seconds. Scope: music:read.

GET https://soundfoundryai.com/api/v1/music/jobs/{job_id}
200 {"id":"…","status":"completed","tracks":[{"id":"…","title":"…","duration":182}]}

Track download

Returns metadata and a signed MP3 link that expires in 10 minutes.

GET https://soundfoundryai.com/api/v1/music/tracks/{track_id}
200 {"id":"…","format":"mp3","download_url":"https://…","download_expires_in":600}

Errors & limits

  • 401 invalid_api_key — missing, unknown or revoked key
  • 403 insufficient_scope — key lacks the required scope
  • 402 — not enough credits or model not included
  • 429 rate_limited — 10 calls per minute per key; 3 generations per minute per account
  • 503 — generation temporarily unavailable

Privacy & licensing

Tracks are private to the key owner's account. API output carries the same usage rules as studio output; commercial use needs a license. Artist imitation and voice cloning are not supported.

Questions about the API? Email intrepidpi@intrepidsoftllc.com or call +1 757 908 4447.