You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] TextToMusic tool and text_to_music configuration #719
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.
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
Activity
edenreich commentedon Sep 22, 2026
@claude Can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 22, 2026
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
TextToMusictool +text_to_musicconfig docsAll in
cli.md- one file, no new page:TextToMusicnext toTextToSpeech, opt-in viatext_to_music.enabledstated inline.#### TextToMusic Toolsection 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_APPROVALwith defaultsfalse,elevenlabs/music_v2_5,~/.infer/tmp/music, unset), gatewayAUDIO_ENABLEDrequirement and the failure path.~/.infer/tmp/musicas thetext_to_music.output_dirdefault.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.mdpage. Text-to-speech needs one because of local engines, model presets and ffmpeg prerequisites - music has none of that, and the gateway-sidePOST /v1/audio/musicendpoint 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 buildall pass. No en/em dashes in the diff.| Branch
feat(tools): add text-to-music generation tool (#1265)
inference-gateway-releaser commentedon Sep 23, 2026
🎉 This issue has been resolved in version 0.9.15 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀