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
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 toPOST /v1/images/editsusing the configured image model (tools.image_edit.model, defaultopenai/gpt-image-2). Parameters:image(required, local file path),prompt(required),quality(optional,autodefault,low,medium,high,standard),size(optional,1024x1024default,1536x1024,1024x1536).ImageVariation- reads an image from a local file path and sends it toPOST /v1/images/variationsusing 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_approvalundertools.image_edit/tools.image_variation). They are independent of the model selected for the chat session, like the existingImageGenerationtool.Affected pages
docs/tools-reference.mddocs/shortcuts-guide.mdLinks
docs/tools-reference.md,docs/shortcuts-guide.mdPOST /v1/images/editsandPOST /v1/images/variations(feat: implement images edits and variations endpoints inference-gateway#536)