Documentation Index
Fetch the complete documentation index at: https://docs.soundpiece.co/llms.txt
Use this file to discover all available pages before exploring further.
Welcome
Welcome to the Soundpiece API. The Soundpiece API gives you programmatic access to our audio generation, separation, and adaptation capabilities. Generate songs from lyrics, separate stems from a mix, cut audio to length — anything you can do in the Soundpiece app, you can do over HTTP.What kind of API is this?
Soundpiece is an RPC-style API, similar in shape to Slack’s or Stripe’s APIs. Each endpoint is a named action likecreate.new_song or adapt.separate_stems. There are no resource hierarchies to learn — pick the action you want and call it.
Three patterns hold across the whole surface:
PUTto submit,GETto poll. Every operation is asynchronous — you submit work and we return immediately with anidandstatus: "processing". You then call the same endpoint withGET(or wait for a webhook) untilstatusisreadyorfailed. See Async operations.idempotency_keymakes retries safe. EveryPUTtakes a UUID you choose. Sending the same request twice with the same key returns the original response. The key is echoed back on every response and webhook payload so you can correlate work against your own records.- Signed URLs for downloads. When
statusisready, each output carries a time-limited signed URL you canGETto download FLAC audio. No separate download endpoint; no extra auth on the URL.
What we offer
Song Generation
Produce full-length tracks from lyrics plus a text prompt or a reference track.
Instrumental Generation
Generate instrumentals from a prompt or a reference.
Sample Generation
Create short samples at a target duration, optionally designed to loop seamlessly.
Effects Generation
Generate single-shot effects — risers, impacts, transitions, foley.
Song Remixing
Produce fresh variations of an existing track with new lyrics and prompt.
Stem Separation
Separate a mixed track into vocals, drums, bass, and other stems.
Auto Cut-Down
Trim an existing track to a target duration at musically natural cut points.
Who this is for
- 💻 Developers building music-driven apps and intelligent audio tools
- 🎥 Content creators producing sound for social media
- 🎚️ Music producers generating or remixing audio at scale
- 🧪 Researchers experimenting with generative audio models
- 📚 Music libraries making their music adaptive or looking for tagging solutions
- 🏢 Digital agencies creating branded or campaign-specific music
Get started
Head to the Quickstart for a complete end-to-end example, or jump to one of the core concepts:- Authentication — API keys, signing secrets, key rotation.
- Async operations — the submit-poll-download lifecycle every endpoint follows.
- Webhooks — push notifications when operations complete.
- Errors — HTTP error responses and operation-level failure codes.
- Rate limits —
429handling and how capacity is managed. - Versioning — what’s stable, what changes, how deprecations work.
