Audio

Generate music (sync)

Generate a music track from a text description (ElevenLabs prompt) or lyrics (MiniMax lyrics, with optional [verse]/[chorus] tags; pass [Instrumental] for vocal-less tracks). Synchronous - returns audio bytes. Billed per track.

post/audio/music

Request

  • Base URL: https://kymaapi.com/v1
  • URL: https://kymaapi.com/v1/audio/music
  • Auth: HTTP bearer

Request body

modelstring

Music model SKU (ElevenLabs or MiniMax). Non-music models return 400 not_a_music_model. This lane is paused: every model is switched off, so a request returns 404 model_not_found.

promptstring

Text description of the music. Required for ElevenLabs models. A per-model character cap applies.

lyricsstring

Lyrics for MiniMax models, with optional [verse]/[chorus] tags. Pass [Instrumental] for vocal-less tracks. Falls back to prompt when omitted.

music_length_msinteger

Requested track length in milliseconds. Alias: duration_ms. Model-dependent caps apply.

response_formatstring

Output audio format (provider-dependent; e.g. mp3, wav, flac).

Response

Audio bytes. Billing rides X-Kyma-* response headers. Append ?save_to_blob=1 for a JSON body with a hosted url.

Changes

No recorded changes to this operation across all 1 revision of this API.