Skip to content

[DOCS] Document the CLI TextToVideo tool and avatar library #727

Closed

Description

@edenreich

Summary

Document the CLI's new TextToVideo agent tool and the avatar library, shipped in inference-gateway/cli#1270 (issue inference-gateway/cli#1257).

User-facing behaviour to cover:

  • TextToVideo tool - renders a video clip through the gateway's Videos API (POST /v1/videos, GET /v1/videos/{id}, GET /v1/videos/{id}/content, gateway v0.54.0+) and saves an MP4. Two modes: a text prompt (optionally with a portrait as the first frame), and a lip-synced avatar render from a portrait plus a .wav or .mp3 clip. Off by default because avatar renders send the user's face and voice to a third-party provider.
  • Config - top-level text_to_video: block: enabled, model (prompt renders, default elevenlabs/veo-3.1-fast-generate-001), avatar_model (lip-sync renders, default elevenlabs/creatify-aurora), size (widthxheight passthrough), output_dir (default ~/.infer/tmp/video), timeout (900), poll_interval (5), require_approval. Env overrides INFER_TEXT_TO_VIDEO_*.
  • Gateway - the Videos API needs VIDEOS_ENABLED=true; a gateway the CLI starts gets it automatically while the tool is enabled.
  • Avatar library - ~/.infer/avatars/<name>/, one folder per avatar with one or more portrait images (.png, .jpg, .jpeg, .webp), e.g. several angles; lip-sync models use the first image in sort order. Kept by /reset.
  • Commands - infer avatars list [--format json] and infer avatars delete <name>.
  • Limits - portrait plus audio must stay under the gateway's 10 MiB request body; creatify-aurora renders 480p or 720p and keeps the portrait's aspect ratio.

Affected pages (proposed): the CLI tools reference (new TextToVideo section), the CLI configuration reference (text_to_video block and env vars), the CLI commands page (infer avatars), and a short "Text to video and avatars" guide next to the existing text-to-speech / music pages.

Source of truth in the CLI repo: docs/text-to-video.md, docs/tools-reference.md, docs/configuration-reference.md.

Acceptance Criteria

  • TextToVideo is documented with its parameters, both modes and the privacy note.
  • The text_to_video config block and INFER_TEXT_TO_VIDEO_* env vars are listed, including avatar_model.
  • The avatar library layout and infer avatars list|delete are documented with an example.
  • The VIDEOS_ENABLED gateway requirement is mentioned.

Activity

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

    @edenreich
    ContributorAuthor

    Also document infer avatars create <name> --from <photo> (added in inference-gateway/cli#1270): it copies the photo in as the primary image and generates extra views (default: both three-quarter angles; --angles, --quality default high, --size default 1024x1536) through the gateway image edit API with tools.image_edit.model. Note that generating views sends the photo to the image-edit provider (OpenAI by default).

  5. edenreich commented on Sep 22, 2026

    @edenreich
    ContributorAuthor

    @claude Can you work on this? use /ponytail:ponytail

  6. inference-gateway-maintainer commented on Sep 22, 2026

    @inference-gateway-maintainer
    Contributor

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


    Done - PR #729

    • Gather context (existing CLI docs pages, sidebar, source of truth in cli repo)
    • New guide page cli-text-to-video.md
    • CLI tools reference: TextToVideo section (new "Video Tools" group in cli.md)
    • text_to_video config block + INFER_TEXT_TO_VIDEO_* env vars (incl. avatar_model)
    • Avatar library layout + infer avatars list|create|delete with examples
    • VIDEOS_ENABLED gateway requirement
    • Sidebar entries (Reference + Tools) and TTS cross-link
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit + open PR

    Acceptance criteria all covered. Also added the smaller touch points in cli.md: ~/.infer/tmp/video in the userspace tmp tree, avatars/ in the config-files table, the /reset preserved list, and infer avatars in the command reference.

    Note: docs/text-to-video.md in the CLI repo was not reachable from this run (404), so the content is written from this issue's description plus the existing TextToMusic/TextToSFX pages as the house style. Worth a check that the TextToVideo parameter names (prompt, avatar, audio, output_path) and the --angles default wording match the implementation.
    | Branch

  7. moved this from Todo to In progress in 2026on Sep 22, 2026
  8. moved this from In progress to QA in 2026on Sep 22, 2026
  9. moved this from QA to Done in 2026on Sep 23, 2026
  10. 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