Skip to main content

Overview

Tool identifier image_edit. image_edit performs image-to-image editing on a source image following a text instruction (replace elements, change style, and so on). The agent extracts the source image and the edit request from user input — you don’t construct the parameters by hand. It uses its own edit-model environment variable, MODEL_EDIT_NAME (note: different from image_generate’s MODEL_IMAGE_NAME). Import path: from veadk.tools.builtin_tools.image_edit import image_edit

Environment & prerequisites

Requirements:Configure an API key that can call the image-editing model. Set MODEL_EDIT_API_KEY for a separate key; otherwise the tool uses MODEL_AGENT_API_KEY, then the Volcengine credentials available to the process.
Environment variables:
  • MODEL_EDIT_API_KEY: image-editing API key; defaults to the agent model credentials
  • MODEL_EDIT_API_BASE: image-editing endpoint; defaults to https://ark.cn-beijing.volces.com/api/v3/
  • MODEL_EDIT_NAME: image-editing model; defaults to doubao-seededit-3-0-i2i-250628
config.yaml keys:
config.yaml

Usage

examples/tools/image_edit/agent.py
Last modified on September 19, 2026