Skip to content

[DOCS] Document POST /v1/audio/music #707

Closed

Description

Summary

inference-gateway/schemas is adding a POST /audio/music operation to openapi.yaml (schemas PR inference-gateway/schemas#215, issue inference-gateway/schemas#214). It is a gateway extension that composes a music clip from a text prompt: JSON in, raw audio bytes out, mirroring the existing POST /audio/sfx. ElevenLabs serves it via POST /v1/music.

User-facing surface:

  • POST /v1/audio/music with a CreateMusicRequest body: model and prompt required, optional duration_seconds (3-600), instrumental (default false), response_format (mp3/opus/aac/flac/wav/pcm, default mp3).
  • Responds with raw audio bytes; the Content-Type reflects the requested response_format.
  • Providers without music support return 400.
  • AUDIO_ENABLED now gates POST /v1/audio/speech and POST /v1/audio/music.

Gateway implementation is tracked in inference-gateway/inference-gateway#680. Docs should follow once the gateway ships it.

Affected pages

  • The Audio API reference page (alongside /v1/audio/speech and /v1/audio/sfx)
  • The configuration reference entry for AUDIO_ENABLED
  • The ElevenLabs provider page, if it enumerates supported endpoints

Acceptance Criteria

  • POST /v1/audio/music documented with request fields and a working example
  • AUDIO_ENABLED description updated to mention the music endpoint
  • ElevenLabs provider page lists music generation support

Activity

  1. added
    documentation
    on Sep 22, 2026
  2. moved this to Todo in 2026on Sep 22, 2026
  3. edenreich commented on Sep 22, 2026

    @edenreich
    Contributor

    @claude [model:claude-fable-5-1] [effort:low] Can you work on this? use /ponytail:ponytail

  4. added theissue type on Sep 22, 2026
  5. inference-gateway-maintainer commented on Sep 22, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 5s —— View job • docs/issue-707-20260922-1424 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-707-20260922-1424?quick_pull=1&title=Issue%20%23707%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23707%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented POST /v1/audio/music

    • Gather context
    • Document POST /v1/audio/music in the API reference (new "Music" section under Audio API, mirroring sound effects: request fields, curl example, response, 400 for unsupported providers)
    • Update AUDIO_ENABLED description in configuration.md to cover speech, sfx and music
    • Mention music support on the ElevenLabs provider entry in supported-providers.md
    • lint:md, format:check, build all pass; committed and PR opened

    PR: #713 (Roadmap board set to QA)

    Skipped: SDK examples (SDKs do not wrap the endpoint yet) and the ElevenLabs model id is assumed to be elevenlabs/music_v1 - adjust once the gateway ships #680 if it differs.
    | Branch

  6. moved this from Todo to In progress in 2026on Sep 22, 2026
  7. moved this from In progress to QA in 2026on Sep 22, 2026
  8. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  9. moved this from QA to Done in 2026on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions