Skip to content

[DOCS] Document the new POST /audio/music operation #709

Closed

Description

Summary

While documenting POST /audio/sfx (issue #704, PR #708) I noticed the canonical inference-gateway/schemas openapi.yaml also carries a sibling operation that is not documented anywhere on the docs site: POST /audio/music (createMusic), which composes a music clip from a text prompt. Like /audio/sfx it is a gateway extension shaped after /audio/speech (JSON in, raw audio bytes out), gated by AUDIO_ENABLED, and served by ElevenLabs (elevenlabs/music_v2_5, upstream POST /music).

CreateMusicRequest per the schema:

  • model (string, required)
  • prompt (string, required): genre, mood, instruments, tempo
  • duration_seconds (number, 3-600, optional)
  • instrumental (boolean, default false)
  • response_format (mp3 / opus / aac / flac / wav / pcm, default mp3)

Providers without music support return 400 with Music generation is not supported by this provider yet.

Affected pages: api-reference.md (Audio API section, next to the new Sound effects subsection) and supported-providers.md (ElevenLabs entry).

Acceptance Criteria

  • API reference documents POST /audio/music alongside /audio/speech and /audio/sfx, with every field's range and default
  • A curl usage example composing a clip via ElevenLabs
  • ElevenLabs provider entry notes music-generation support
  • Note that providers without support return 400

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 1m 46s —— View job • docs/issue-709-20260922-1429 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-709-20260922-1429?quick_pull=1&title=Issue%20%23709%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23709%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #714 opened

    Skipped: SDK wrappers for /audio/music (none exist yet, page says so); no generated sections touched.
    | 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