Skip to content

[DOCS] TextToMusic tool and text_to_music configuration #719

Closed

Description

Summary

The CLI added a TextToMusic tool (text-to-music generation through the gateway's Music API, POST /v1/audio/music, default model elevenlabs/music_v2_5) in inference-gateway/cli#1265. The in-repo reference docs were updated in the same PR; the docs website needs the same coverage.

User-facing change: a new opt-in agent tool that composes a music clip from a text prompt and saves it as a WAV file, gated by text_to_music.enabled (default false).

Affected pages (in-repo references, mirrored by the CLI PR):

  • Tools reference: new TextToMusic tool entry (parameters prompt, seconds, instrumental, output_path; config block text_to_music with enabled, model, output_dir, require_approval).
  • Configuration reference: INFER_TEXT_TO_MUSIC_ENABLED, INFER_TEXT_TO_MUSIC_MODEL, INFER_TEXT_TO_MUSIC_OUTPUT_DIR, INFER_TEXT_TO_MUSIC_REQUIRE_APPROVAL env overrides and the top-level text_to_music: YAML block.
  • Directory structure: generated music WAVs default to ~/.infer/tmp/music (text_to_music.output_dir).

Source of truth: the CLI docs in the PR - docs/tools-reference.md, docs/configuration-reference.md and docs/directory-structure.md in inference-gateway/cli#1265.

Acceptance Criteria

  • The docs website lists the TextToMusic tool wherever the media tools (TextToSpeech) are listed.
  • The configuration pages document text_to_music.enabled, model (default elevenlabs/music_v2_5), output_dir (default ~/.infer/tmp/music) and require_approval, plus the INFER_TEXT_TO_MUSIC_* env overrides.
  • The tool is opt-in by default (hidden unless text_to_music.enabled is true) - stated wherever tool defaults are summarized.
  • No en/em dashes; plain hyphens only.

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


    TextToMusic docs shipped

    • Gather context (read the CLI PR docs as source of truth)
    • Add TextToMusic tool + text_to_music config docs
    • Lint / format / build
    • Commit and open PR (#720)

    All in cli.md - one file, no new page:

    • Tool inventory table (Audio row): TextToMusic next to TextToSpeech, opt-in via text_to_music.enabled stated inline.
    • New #### TextToMusic Tool section under Audio Tools: parameters (prompt, seconds, instrumental, output_path), disabled-by-default (tool definition not sent to the LLM while off), YAML block, a config/env table (INFER_TEXT_TO_MUSIC_ENABLED / _MODEL / _OUTPUT_DIR / _REQUIRE_APPROVAL with defaults false, elevenlabs/music_v2_5, ~/.infer/tmp/music, unset), gateway AUDIO_ENABLED requirement and the failure path.
    • Userspace tmp tree table: ~/.infer/tmp/music as the text_to_music.output_dir default.

    One correction to the issue

    The issue says the clip is saved as a WAV. The CLI PR writes MP3 (CreateMusicRequestResponseFormatMp3; ElevenLabs serves mp3/opus/pcm, not wav). The docs follow the code, so they say MP3.

    Skipped: a dedicated cli-text-to-music.md page. Text-to-speech needs one because of local engines, model presets and ffmpeg prerequisites - music has none of that, and the gateway-side POST /v1/audio/music endpoint is already in the API reference. Add the page when the feature grows local engines or provider-specific setup.

    Validated: bun run lint:md, bun run format:check, bun run build all pass. No en/em dashes in the diff.
    | 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. moved this from QA to Done in 2026on Sep 22, 2026
  9. inference-gateway-releaser commented on Sep 23, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.15 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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