Soundza Music API

The Music API from Soundza — 2 operation(s) for music.

GitHub OpenAPI

Operations 2

POST /music Generate music #
GET /music/{id} Get a music job #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/soundza-com:soundza-com-music-api"
All apis
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.

Get an API 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 Specification

soundza-com-music-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Soundza Music 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: Music
paths:
  /music:
    post:
      operationId: createMusic
      summary: Generate music
      description: Makes an original seamless loop (model stable) or full-length track (model lyria) and answers with it. Music takes about one to three minutes, past the wait window, so this usually answers 202 with a job to poll at GET /music/{id} (the Location header). One job at a time per account. Free, with weekly per-model limits per account across all its keys. All generated music is AI-generated.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MusicRequest'
      responses:
        '200':
          description: 'The finished job: succeeded with its loop or track, 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/MusicGeneration'
        '202':
          description: 'The job, still working: 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/MusicGeneration'
        '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'
        '429':
          description: 'generation_in_progress: this account has a music job running. rate_limited: a weekly per-model 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: music generation is switched off, or the global monthly budget is spent. generator_busy: too many music jobs are running right now. 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:
      - Music
  /music/{id}:
    get:
      operationId: getMusic
      summary: Get a music job
      description: The job's state, and its loop or track once it has succeeded. Any key on the account that started it can read it. Counts toward the lookup limit.
      parameters:
      - name: id
        in: path
        required: true
        description: The job's id, from POST /music.
        schema:
          type: string
      responses:
        '200':
          description: The job.
          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/MusicGeneration'
        '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 music generation 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'
        '429':
          description: 'rate_limited: wait Retry-After seconds, or ask for higher limits.'
          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
            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'
      tags:
      - Music
components:
  schemas:
    MusicGeneration:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - queued
          - running
          - succeeded
          - failed
          description: 'queued and running: still working; poll poll_url until succeeded or failed.'
        model:
          type: string
          description: 'The model: "stable" (Stable Audio 3) or "lyria" (Lyria).'
        looping:
          type: boolean
        prompt:
          type: string
        ai_content:
          type: string
          const: ai
          description: All generated music is AI-generated.
        license:
          type: string
        loop:
          description: Present once a looping job has succeeded.
          type: object
          properties:
            url:
              type: string
              description: The WAV loop at soundza.com/g/<id>. Needs no key. Works for 120 days, then answers 410.
            preview_url:
              type: string
              description: 'An MP3 preview of the loop, for listening only: the url with ?format=mp3. MP3 adds a few milliseconds of silence at each end, so it has a short gap when repeated. Loop the WAV url.'
            file_name:
              type: string
            duration_s:
              anyOf:
              - type: number
              - type: 'null'
            bpm:
              anyOf:
              - type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              - type: 'null'
              description: The loop's tempo.
            bars:
              anyOf:
              - type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              - type: 'null'
              description: How many bars the loop runs.
            seamless:
              type: boolean
              const: true
              description: The WAV (url) runs from its end back into its start with no gap or click. The MP3 preview does not.
          required:
          - url
          - preview_url
          - file_name
          - duration_s
          - bpm
          - bars
          - seamless
          additionalProperties: false
        track:
          description: Present once a non-looping job has succeeded.
          type: object
          properties:
            url:
              type: string
              description: The WAV track at soundza.com/g/<id>. Works for 120 days, then answers 410.
            preview_url:
              type: string
              description: 'An MP3 preview of the track: the url with ?format=mp3.'
            file_name:
              type: string
            duration_s:
              anyOf:
              - type: number
              - type: 'null'
          required:
          - url
          - preview_url
          - file_name
          - duration_s
          additionalProperties: false
        intro_url:
          description: A one-shot intro WAV to play once before the loop, when the model wrote one.
          type: string
        error:
          anyOf:
          - type: object
            properties:
              code:
                type: string
                const: generation_failed
              message:
                type: string
            required:
            - code
            - message
            additionalProperties: false
          - type: 'null'
        quota:
          description: This account's weekly use of the model, after this job.
          type: object
          properties:
            model:
              type: string
            used:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            remaining:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
          required:
          - model
          - used
          - remaining
          additionalProperties: false
        created_at:
          type: string
        finished_at:
          anyOf:
          - type: string
          - type: 'null'
        expires_at:
          anyOf:
          - type: string
          - type: 'null'
          description: 'When the 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 queued or running: seconds to wait before polling again.'
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
      - id
      - status
      - model
      - looping
      - prompt
      - ai_content
      - license
      - 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
    MusicRequest:
      type: object
      properties:
        description:
          type: string
          minLength: 1
          maxLength: 200
          description: The music, in plain words, e.g. "warm orchestral theme, strings and harp". Up to 200 characters.
        model:
          default: stable
          type: string
          enum:
          - stable
          - lyria
          description: '"stable" (default): Stable Audio 3, for seamless loops and short tracks. "lyria": Lyria, for long full-length tracks (no looping).'
        looping:
          default: false
          type: boolean
          description: Return a seamless loop. Stable only — a loop with model lyria is an error. Defaults to false.
        duration_seconds:
          type: number
          minimum: 10
          maximum: 180
          description: 'Full-length tracks only (not loops): length in seconds, 10 to 180. A loop''s length is set by the loop finder.'
        bpm:
          type: integer
          minimum: 40
          maximum: 240
          description: Tempo to aim for, in beats per minute.
        game:
          type: string
          maxLength: 120
          description: What game this is for, e.g. "a cozy farming sim" — improves the fit, and tells us what games people want music for.
        scene:
          type: string
          maxLength: 200
          description: The moment or scene the music plays under, e.g. "a tense boss fight".
        mood:
          type: string
          maxLength: 120
          description: How it should feel, e.g. "calm and hopeful".
      required:
      - description
      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