Properties
| Name | Type | Description |
|---|---|---|
| async | boolean | Run generation on the background worker and return a job to poll (202) instead of waiting inline (200). Use for full-length tracks and slow models. |
| duration_seconds | number | Requested length in seconds (up to 600). Omit it to let the model choose. Limits differ by model, and some models have no length setting; a value a model cannot honor answers 400 naming its limit. |
| format | string | Output audio format: mp3, wav, opus or pcm. Omit it to get the model's native format. A format the model cannot produce answers 400 naming the ones it can. |
| instrumental | boolean | Music only: generate without vocals. |
| loop | boolean | Generate audio that repeats seamlessly, for ambience and hums. Needs a model with the audio_loop capability (GET /v3/audio/models?capability=audio_loop); other models answer 400. |
| model | string | Audio generation model id. List them with GET /v3/audio/models: ?type=music for songs and scores, ?type=sound for sound effects and ambience, ?capability=audio_sections or ?capability=audio_loop for m |
| parameters | object | Provider-specific fields, forwarded verbatim and never gated: the provider validates them. Use it for settings specific to one model, in that provider's own field names. |
| prompt | string | What to generate. For music: genre, mood, instruments, lyrics. For a sound effect: the sound itself, for example "a single hammer strike on an iron anvil". Required unless sections are set. |
| sections | array | A timed plan for music that must fit a picture: each section's duration_ms plus its own prompt and styles, in order. The sections set the total length, so duration_seconds is not sent with them. Needs |
| seed | integer | Seed for more repeatable output. Models without seed support answer 400. |
| store | boolean | Persist the generated audio to /v3/files and return a reusable file_id. Defaults to false; set true to store. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/opper/json-schema/opper-music-request-schema.json",
"title": "MusicRequest",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/opper-audio-api-openapi.yml#/components/schemas/MusicRequest",
"properties": {
"async": {
"description": "Run generation on the background worker and return a job to poll (202) instead of waiting inline (200). Use for full-length tracks and slow models.",
"type": "boolean"
},
"duration_seconds": {
"description": "Requested length in seconds (up to 600). Omit it to let the model choose. Limits differ by model, and some models have no length setting; a value a model cannot honor answers 400 naming its limit.",
"type": "number"
},
"format": {
"description": "Output audio format: mp3, wav, opus or pcm. Omit it to get the model's native format. A format the model cannot produce answers 400 naming the ones it can.",
"type": "string"
},
"instrumental": {
"description": "Music only: generate without vocals.",
"type": "boolean"
},
"loop": {
"description": "Generate audio that repeats seamlessly, for ambience and hums. Needs a model with the audio_loop capability (GET /v3/audio/models?capability=audio_loop); other models answer 400.",
"type": "boolean"
},
"model": {
"description": "Audio generation model id. List them with GET /v3/audio/models: ?type=music for songs and scores, ?type=sound for sound effects and ambience, ?capability=audio_sections or ?capability=audio_loop for models that take those fields. For example elevenlabs/music_v2_5 (music) or elevenlabs/eleven_text_to_sound_v2 (sound effects).",
"type": "string"
},
"parameters": {
"description": "Provider-specific fields, forwarded verbatim and never gated: the provider validates them. Use it for settings specific to one model, in that provider's own field names.",
"type": "object"
},
"prompt": {
"description": "What to generate. For music: genre, mood, instruments, lyrics. For a sound effect: the sound itself, for example \"a single hammer strike on an iron anvil\". Required unless sections are set.",
"type": "string"
},
"sections": {
"description": "A timed plan for music that must fit a picture: each section's duration_ms plus its own prompt and styles, in order. The sections set the total length, so duration_seconds is not sent with them. Needs a model with the audio_sections capability (GET /v3/audio/models?capability=audio_sections); other models answer 400.",
"items": {
"properties": {
"duration_ms": {
"description": "Length of this section in milliseconds. Models set their own per-section limits and answer 400 outside them.",
"type": "integer"
},
"lyrics": {
"description": "Words to be sung in this section. Leave it empty for an instrumental section.",
"type": "string"
},
"negative_styles": {
"description": "Styles this section should avoid, for example [\"vocals\"].",
"items": {
"type": "string"
},
"type": "array"
},
"prompt": {
"description": "What this section should sound like, in words, for example \"a quiet piano intro\" or \"strings build to a swell\". It describes the music and is never sung; put sung words in lyrics.",
"type": "string"
},
"styles": {
"description": "Styles this section should have, for example [\"sparse piano\", \"instrumental\"].",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"duration_ms"
],
"type": "object"
},
"type": "array"
},
"seed": {
"description": "Seed for more repeatable output. Models without seed support answer 400.",
"type": "integer"
},
"store": {
"description": "Persist the generated audio to /v3/files and return a reusable file_id. Defaults to false; set true to store.",
"type": "boolean"
}
},
"required": [
"model"
],
"type": "object"
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/opper-music-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.