Skip to content

[DOCS] Add the new CLI media examples to the docs index #1227

Closed

Description

Summary

The CLI now ships two runnable examples for its gateway media tools (PR inference-gateway/cli#1864, issue inference-gateway/cli#1859):

  • examples/media-audio - one headless task each for TextToSpeech, TextToMusic and TextToSFX, offline against the tokenless mock with no API key, printing the saved file path from the tool result
  • examples/media-video - TextToVideo renders a clip, VideoToSFX scores it and DubVideo dubs it in one run, plus the avatar library (infer avatars create presenter --from photo.png, infer avatars list, and a lip-synced TextToVideo render through text_to_video.avatar_model) and the infer models local-model path (infer models search musetalk, infer models list, a documented infer models download feeding INFER_TEXT_TO_VIDEO_AVATAR_MODEL=local/musetalk)

docs/examples.md in the CLI repo lists both directories in the Runnable Examples table already. Each README carries a With a real model section naming AUDIO_ENABLED, VIDEOS_ENABLED, the default models from config/config.go and the provider key the gateway needs.

Acceptance Criteria

  • Wherever the docs site indexes CLI examples, examples/media-audio and examples/media-video are listed
  • The media doc pages (text-to-speech.md, text-to-music.md, text-to-video.md) link the new examples as runnable companions
  • The docs say the tokenless mock (v0.14.0) serves the Audio API endpoints and the Videos API, so both examples run offline with no API key

Activity

  1. added
    documentation
    on Nov 15, 2026
  2. edenreich commented on Nov 15, 2026

    @edenreich
    Contributor

    @claude can you document this?

  3. inference-gateway-maintainer commented on Nov 15, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Done - PR #1228

    • Gather context (examples.md, CLI media pages, upstream example READMEs)
    • Link examples/media-audio from the Text-to-Speech page and from the TextToMusic tool reference in cli.md
    • Link examples/media-video from the Text-to-Video page and from the VideoToSFX tool reference in cli.md
    • State that the tokenless mock (v0.14.0+) serves the Audio API endpoints and the Videos API, so both examples run offline with no API key
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit + open PR

    What changed

    • cli-text-to-speech.md - a Runnable example note for examples/media-audio: one headless task each for TextToSpeech, TextToMusic and TextToSFX, the mock answering /v1/audio/speech, /v1/audio/music and /v1/audio/sfx, and a pointer to the example's With a real model section (switches, default models, provider key).
    • cli-text-to-video.md - the same for examples/media-video: TextToVideo + VideoToSFX + DubVideo in one run, the avatar library (infer avatars create/list, lip-sync through text_to_video.avatar_model), the infer models local-model path (local/musetalk), and VIDEOS_ENABLED / AUDIO_ENABLED for a real gateway.
    • cli.md - two short runnable-version notes in the style of the existing examples/tools and examples/computer-use pointers, placed after the TextToMusic and VideoToSFX tool references (that is where TextToMusic/TextToSFX are documented on this site - there is no standalone text-to-music.md).

    Not done

    • No new CLI-examples index section in examples.md: that page indexes gateway Docker Compose / Kubernetes / API examples, and the site already points at the CLI repo's own examples.md from the Canonical CLI references table in cli.md. Say the word if you want a CLI examples table on the site and I'll add one.
    • The infer models local-model path is named in prose but not linked - the docs site has no infer models page yet, so there was no anchor to link.

    Skipped: I did not run bun run preview (no nav/SEO/theme change). Risk: the example READMEs could be renamed upstream, which would leave the new links dangling.
    | Branch | PR #1228

  4. moved this from Todo to In progress in 2026on Nov 15, 2026
  5. moved this from In progress to QA in 2026on Nov 15, 2026
  6. moved this from QA to Done in 2026on Nov 15, 2026
  7. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    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

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions