Soundza Variations API
The Variations API from Soundza — 1 operation(s) for variations.
The Variations API from Soundza — 1 operation(s) for variations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/soundza-com:soundza-com-variations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Soundza Variations API
version: 1.0.0
description: 'Search and download free music, sound effects and ambience, and browse the packs they come in. Search and lookups work without a key: up to 3 pages of 20, lighter results and 20 calls a minute per address. Downloads, every page and the full metadata need a free API key sent as `Authorization: Bearer `. Get one at https://soundza.com/developers/keys. The API is free. We''d appreciate one link back to soundza per project once others see what you make (never required): https://soundza.com/developers#credit
Free keys get 60 searches a minute, 250 downloads an hour and 500 a week. Every response carries X-RateLimit-* headers. Guidelines: https://soundza.com/developers#guidelines
Writing searches:
- Describe the sound the way you''d say it, as specifically as you like: "sci-fi pistol shot, punchy", "soft UI click for a menu", "rain on a car roof". A descriptive search is read into filters; interpreted_as shows how, and you can send any of it back as a parameter to change it. - Set type when you know it (sound_effect, music, ambience). - For sound effects, category narrows to a kind, a UCS category such as SCIFI, LASERS, GUNS, WEAPONS, EXPLOSIONS, ROBOTS, ELECTRICITY, USER INTERFACE, BEEPS, ALARMS, SWOOSHES, FOOTSTEPS, MAGIC, GAMES, MACHINES or MECHANICAL. - good_for moves sounds suited to a job up the results: transition, reveal, build_up, impact_on_beat, title_or_logo, notification, ui_click, menu, game_pickup, game_hit, game_power_up, footsteps, background_bed, intro, outro. - Each result says how it matched. text_match "all_words" means sounds matched every word. "any_word" means none had them all, so these match some of them, closest first, and each sound''s matched_words lists which of your words it matched. "similar_title" is a typo match. notes says the same in a sentence. An empty page means the catalog doesn''t have that sound yet. - Fetch per_page=50 (limit works too) instead of paging at 15. Downloading:
- Use each result''s download_url exactly as given: it carries the search_id that ties the download to the search. - Save each file once and reuse it by sound id. A sound''s file never changes, so key your cache on the id, not the URL (the link differs per search). Fetching a sound again within the week doesn''t count as another download, but every fetch counts toward a file-fetch cap. - download_url answers with a 302 to a link that lasts 5 minutes: follow the redirect (curl -L) and save the bytes then. Don''t store the link. - Check GET /v1/removals at least monthly and delete any sound it lists. Type and facts:
- music: Tracks, excerpts, loops, one-shots, stems, stingers, jingles and vocal chops, game music included. Facts: form (track, excerpt, loop, one_shot, stem), parts (full_mix, single_part), vocals (none, backing, lead), bpm, key, note, chord. - sound_effect: Whooshes, impacts, foley, UI and game sounds, voices as effects. Facts: category (UCS), style (retro, cartoon; set per pack). - ambience: Places, room tone and noise beds. Facts: category (UCS). The type says what a sound is. Filter by type first, then by the facts you know, then put the rest in q. With type=music, full mixes come first, then loops, then single parts, unless you set parts. good_for moves sounds suited to a job up the results without filtering any out: transition, reveal, build_up, impact_on_beat, title_or_logo, notification, ui_click, menu, game_pickup, game_hit, game_power_up, footsteps, background_bed, intro, outro. A search with q that finds nothing within its type searches every type and says so in relaxed_filters. A sound our rules haven''t placed yet has no type, so it only appears in searches without one. Generating sounds:
- When nothing in the catalog fits, make the sound: POST /v1/generations with a JSON body {"prompt": "magic sparkle chime"}. Optional: duration_seconds (0.5 to 10, default 3), takes (1 to 3, best first, default 1), seed. - It waits and answers with the finished takes, usually in about 5 seconds.'
termsOfService: https://soundza.com/terms
contact:
email: admin@soundza.com
url: https://soundza.com/developers
license:
name: 'Sounds: Soundza Standard License'
url: https://soundza.com/license
servers:
- url: https://api.soundza.com/v1
security:
- bearerAuth: []
tags:
- name: Variations
paths:
/variations:
post:
operationId: createVariation
summary: Make variations of a sound
description: 'Makes AI-generated variations of one sound effect: takes that are the same sound, played differently, lined up with the original''s attack and matched to its length, tone and loudness, ready to lay along a video timeline or drop into a game''s random container. Answers with them, usually in 5–10 seconds for a short one-shot and up to about 30 for a 10-second sound or a busy moment; past about 50 seconds, 202 with a job to poll at GET /generations/{id}. Each take counts as one generation against the same limits (6 takes use 6).'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VariationRequest'
responses:
'200':
description: 'The finished job: succeeded with its takes, or failed with an error.'
headers:
X-RateLimit-Limit:
description: The limit of the window that applies to this call.
schema:
type: integer
X-RateLimit-Remaining:
description: Generations left in that window.
schema:
type: integer
X-RateLimit-Reset:
description: The window's length in seconds (windows roll).
schema:
type: integer
X-RateLimit-Policy:
description: 'Which window: generations_per_hour or generations_per_week.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
'202':
description: 'The job, still working: wait was false, or it ran past the wait. Poll its poll_url.'
headers:
X-RateLimit-Limit:
description: The limit of the window that applies to this call.
schema:
type: integer
X-RateLimit-Remaining:
description: Generations left in that window.
schema:
type: integer
X-RateLimit-Reset:
description: The window's length in seconds (windows roll).
schema:
type: integer
X-RateLimit-Policy:
description: 'Which window: generations_per_hour or generations_per_week.'
schema:
type: string
Location:
description: The job's poll_url.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
'400':
description: 'invalid_request: a parameter is wrong; `details` says which.'
headers:
X-RateLimit-Limit:
description: The limit of the window that applies to this call.
schema:
type: integer
X-RateLimit-Remaining:
description: Calls left in that window.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the window reopens when blocked; otherwise the window's length (windows roll).
schema:
type: integer
X-RateLimit-Policy:
description: 'Which window: searches_per_minute, downloads_per_hour or downloads_per_week for this key, or the same with an account_ prefix for every key on the account together.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: missing_key, invalid_key or revoked_key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'not_found: no public sound with that id, or no take with that id on this account.'
headers:
X-RateLimit-Limit:
description: The limit of the window that applies to this call.
schema:
type: integer
X-RateLimit-Remaining:
description: Calls left in that window.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the window reopens when blocked; otherwise the window's length (windows roll).
schema:
type: integer
X-RateLimit-Policy:
description: 'Which window: searches_per_minute, downloads_per_hour or downloads_per_week for this key, or the same with an account_ prefix for every key on the account together.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: 'take_expired: the take''s link has expired, so it can''t be varied.'
headers:
X-RateLimit-Limit:
description: The limit of the window that applies to this call.
schema:
type: integer
X-RateLimit-Remaining:
description: Calls left in that window.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the window reopens when blocked; otherwise the window's length (windows roll).
schema:
type: integer
X-RateLimit-Policy:
description: 'Which window: searches_per_minute, downloads_per_hour or downloads_per_week for this key, or the same with an account_ prefix for every key on the account together.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: 'unsupported_source: that sound can''t be varied (an ambience, or longer than the limit, for example). Try another.'
headers:
X-RateLimit-Limit:
description: The limit of the window that applies to this call.
schema:
type: integer
X-RateLimit-Remaining:
description: Calls left in that window.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the window reopens when blocked; otherwise the window's length (windows roll).
schema:
type: integer
X-RateLimit-Policy:
description: 'Which window: searches_per_minute, downloads_per_hour or downloads_per_week for this key, or the same with an account_ prefix for every key on the account together.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'generation_in_progress: this account has a job running; wait a few seconds, or poll details.poll_url. rate_limited: an hourly or weekly generation limit, or the limit per address, was hit. Wait Retry-After seconds.'
headers:
X-RateLimit-Limit:
description: The limit of the window that applies to this call.
schema:
type: integer
X-RateLimit-Remaining:
description: Generations left in that window.
schema:
type: integer
X-RateLimit-Reset:
description: The window's length in seconds (windows roll).
schema:
type: integer
X-RateLimit-Policy:
description: 'Which window: generations_per_hour or generations_per_week.'
schema:
type: string
Retry-After:
description: Seconds until the call would be allowed.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server_error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: 'generation_unavailable: generation is switched off. generator_busy: the GPU is busy. Retry after Retry-After seconds.'
headers:
Retry-After:
description: Seconds until the call would be allowed.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Variations
components:
schemas:
Generation:
type: object
properties:
id:
type: string
status:
type: string
enum:
- queued
- running
- succeeded
- failed
description: 'queued and running: still working (a call that didn''t wait, or waited past its limit); poll poll_url until succeeded or failed.'
prompt:
type: string
duration_seconds:
type: number
takes_requested:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
seed:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
model:
type: string
description: 'The model that made the takes: "stable-audio-3-medium".'
ai_content:
type: string
const: ai
description: Every take is AI-generated.
takes:
type: array
items:
$ref: '#/components/schemas/Take'
description: Best first. Empty until the job has succeeded.
error:
anyOf:
- type: object
properties:
code:
type: string
const: generation_failed
message:
type: string
required:
- code
- message
additionalProperties: false
- type: 'null'
description: 'Set when the job failed. Failed jobs don''t count toward the limits, except these, which come from what was asked: a generation whose takes all came out silent or clipped, and a variation with no clean takes. A sound file that can''t be varied doesn''t count.'
created_at:
type: string
finished_at:
anyOf:
- type: string
- type: 'null'
expires_at:
anyOf:
- type: string
- type: 'null'
description: 'When the take links stop working: 120 days after the job finished. Null until it has succeeded.'
poll_url:
type: string
description: GET this for the job's current state.
poll_after_seconds:
description: 'While the job is queued or running: seconds to wait before polling again.'
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
kind:
type: string
const: variation
description: Set on variation jobs (POST /variations) only. Absent on a generation.
spread:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
description: 'Variation jobs only: the 1–10 spread the takes were made at (a preset word resolved).'
source:
type: object
properties:
sound_id:
anyOf:
- type: string
- type: 'null'
take_id:
anyOf:
- type: string
- type: 'null'
required:
- sound_id
- take_id
additionalProperties: false
description: 'Variation jobs only: what was varied, a catalog sound or a take from a generation. One is set.'
required:
- id
- status
- prompt
- duration_seconds
- takes_requested
- seed
- model
- ai_content
- takes
- error
- created_at
- finished_at
- expires_at
- poll_url
additionalProperties: false
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
enum:
- missing_key
- invalid_key
- revoked_key
- invalid_request
- not_found
- rate_limited
- server_error
- generation_unavailable
- generation_in_progress
- generator_busy
- upload_not_enabled
message:
type: string
details:
description: 'invalid_request: a list of which parameter is wrong and why. From POST /generations: the running job''s id and poll_url (generation_in_progress), or the window hit and seconds to wait (rate_limited).'
anyOf:
- type: array
items:
type: object
properties:
param:
anyOf:
- type: string
- type: 'null'
message:
type: string
required:
- param
- message
additionalProperties: false
- type: object
properties:
id:
type: string
poll_url:
type: string
limit:
type: string
retry_after:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
additionalProperties: false
limit:
description: 'rate_limited only: the window that was hit.'
type: string
retry_after:
description: 'rate_limited only: seconds to wait.'
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
contact:
description: 'rate_limited only: where to ask for higher limits.'
type: string
required:
- code
- message
additionalProperties: false
required:
- error
additionalProperties: false
VariationRequest:
type: object
properties:
sound_id:
type: string
minLength: 1
maxLength: 200
description: 'The sound to vary: a soundza sound''s id or slug, e.g. "footstep-on-wood". A one-shot up to 10 seconds, not an ambience. Send this or take_id.'
take_id:
type: string
minLength: 1
maxLength: 200
description: A take you made with generate_sound (or an earlier variation), to vary instead of a soundza sound. Send this or sound_id.
spread:
default: 5
anyOf:
- type: integer
minimum: 1
maximum: 10
- type: string
enum:
- subtle
- natural
- bold
description: How different the takes are, 1 to 10, or "subtle" (2), "natural" (5), "bold" (8). Defaults to 5. Measured on each sound, so a spread means the same on a punch as on a footstep.
takes:
default: 6
type: integer
minimum: 1
maximum: 8
description: How many variations to make, 1 to 8, best first. Defaults to 6. Each one counts as a generation.
prompt:
type: string
minLength: 1
maxLength: 200
description: What the sound is, e.g. "boot on gravel", when its title doesn't say. Defaults to the sound's title and tags.
seed:
type: integer
minimum: 0
maximum: 2147483647
description: Any whole number. Send the same seed with the same sound and settings to get the same variations back; leave it out to get new ones each time.
wait:
default: true
type: boolean
description: Whether the call waits for the variations. By default it waits and answers with them. If you send false, it answers right away with a 202 and a job ID, and you check on the job at GET /generations/{id} until it's done.
additionalProperties: false
Take:
type: object
properties:
id:
type: string
rank:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
description: 1 is the best take.
url:
type: string
description: The WAV, at soundza.com/g/<id>. Needs no key; redirects to the file. Works for 120 days, then answers 410.
preview_url:
type: string
description: 'An MP3 preview of the same take: the url with ?format=mp3.'
file_name:
type: string
description: A file name for the WAV from the prompt and rank, e.g. "magic-sparkle-chime-1.wav".
format:
type: string
const: wav
duration_seconds:
anyOf:
- type: number
- type: 'null'
required:
- id
- rank
- url
- preview_url
- file_name
- format
- duration_seconds
additionalProperties: false
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A Soundza API key, starting sz_live_.
externalDocs:
description: Developer docs
url: https://soundza.com/developers