Skip to content

[DOCS] CLI ImageEdit and ImageVariation tools #509

Description

@inference-gateway-maintainer

Documentation Request

What needs documenting

The CLI (inference-gateway/cli) now supports editing an existing image and requesting variations of one, alongside image generation. Two new agent tools were added:

  • ImageEdit - reads an image from a local file path and sends it with a prompt to POST /v1/images/edits using the configured image model (tools.image_edit.model, default openai/gpt-image-2). Parameters: image (required, local file path), prompt (required), quality (optional, auto default, low, medium, high, standard), size (optional, 1024x1024 default, 1536x1024, 1024x1536).
  • ImageVariation - reads an image from a local file path and sends it to POST /v1/images/variations using the configured image model (tools.image_variation.model). Parameters: image (required, local file path), size (optional, same enum as above).

Both save the returned image under .infer/tmp/ and are config-driven (enabled, model, require_approval under tools.image_edit / tools.image_variation). They are independent of the model selected for the chat session, like the existing ImageGeneration tool.

Affected pages

  • CLI tools reference (agent tools: ImageGeneration, ImageEdit, ImageVariation) if the docs site mirrors docs/tools-reference.md
  • CLI shortcuts guide / media tools section if mirrored from docs/shortcuts-guide.md

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions