Skip to content

[DOCS] Document the CLI CreateAvatar tool and avatar reference images #731

Closed

Description

@edenreich

Summary

Follow-up to #727, which is now closed: inference-gateway/cli#1270 also resolves inference-gateway/cli#1271 and inference-gateway/cli#1272. Both change user-facing behaviour of TextToVideo and the avatar library.

User-facing behaviour to cover:

  • CreateAvatar tool ([FEATURE] CreateAvatar tool: let the agent build an avatar from a photo cli#1271) - the agent-side twin of infer avatars create. It builds ~/.infer/avatars/<name>/ from a photo and generates angles with tools.image_edit.model.
    • Opt-in: registered only when both text_to_video.enabled and the new text_to_video.create_avatar are true (env INFER_TEXT_TO_VIDEO_CREATE_AVATAR).
    • Requires approval by default; text_to_video.require_approval overrides.
    • photo is a bare file name, looked up in the working directory, then the session's artifacts directory. Absolute paths and .. are rejected.
    • It never overwrites an avatar and cannot delete one.
    • Parameters: name, photo, angles ([] stores the photo only), quality (default high), size (default 1024x1536).
  • Reference images ([FEATURE] Send avatar folder extra images as reference_images cli#1272) - TextToVideo with a library avatar and no audio now sends every image in the avatar folder as reference_images instead of using a portrait as the first frame, so the person stays consistent in prompt renders.
    • Needs gateway v0.55.0+.
    • Per-model limits: Veo 3.1 takes at most 3 images and needs its default 8 s; Seedance v2 takes 9 and v2.5 takes 30.
    • A bare image file as avatar is still the first frame. The gateway never combines the two.
  • Photo normalisation - infer avatars create (and CreateAvatar) now turn a JPEG upright per its EXIF orientation and strip its metadata, including GPS, before storing it or sending it to a provider.

Affected pages (proposed): the TextToVideo tools reference section (new CreateAvatar section plus the avatar parameter change), the text_to_video config block (create_avatar), and the text-to-video and avatars guide from #727.

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

Acceptance Criteria

  • CreateAvatar is documented with its parameters, the opt-in, the approval default and the privacy note.
  • text_to_video.create_avatar / INFER_TEXT_TO_VIDEO_CREATE_AVATAR is listed.
  • The reference-image behaviour of avatar without audio is documented, including the gateway v0.55.0 requirement and Veo's 3-image limit.
  • The EXIF orientation and metadata stripping on avatar creation 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 23, 2026

    @edenreich
    ContributorAuthor

    @claude Can you document this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Sep 23, 2026

    @inference-gateway-maintainer
    Contributor

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


    Documented CreateAvatar + avatar reference images

    • Gather context (cli-text-to-video.md, cli.md, api-reference.md, CLI PR refactor: apply code readability guidelines #1270)
    • Document CreateAvatar tool (params, double opt-in, approval default, privacy)
    • Document text_to_video.create_avatar / INFER_TEXT_TO_VIDEO_CREATE_AVATAR
    • Document reference-image behaviour of avatar without audio (gateway v0.55.0, Veo 3.1 = 3 images and its default 8 s, Seedance v2 = 9, v2.5 = 30)
    • Mention EXIF orientation + metadata (incl. GPS) stripping
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit + open PR - docs: document createavatar and avatar reference images #733

    Two files touched:

    • cli.md - new CreateAvatar tool section, avatar parameter now covers reference images vs first frame, create_avatar in the config sample, and a Video row in the tool-category table (video tools were missing from it).
    • cli-text-to-video.md - new "Reference images in prompt renders" section with the avatar/audio matrix and per-model limits, new "Creating avatars from chat" section, create_avatar config row, photo-normalisation note on infer avatars create, three troubleshooting rows.

    Skipped: no change to configuration.md (generated, gateway-side only) and no seconds/size TextToVideo parameter backfill - out of scope for this issue, worth a separate ticket if you want the tool reference to list them.
    | Branch | PR #733

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