Skip to main content

Overview

Tool identifier image_generate. image_generate generates images from text. For image-to-image editing, see image_edit. Import path: from veadk.tools.builtin_tools.image_generate import image_generate

Environment & prerequisites

Requirements:Configure an API key that can call the image-generation model. Set MODEL_IMAGE_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_IMAGE_API_KEY: image-generation API key; defaults to the agent model credentials
  • MODEL_IMAGE_API_BASE: image-generation endpoint; defaults to https://ark.cn-beijing.volces.com/api/v3/
  • MODEL_IMAGE_NAME: image-generation model; defaults to doubao-seedream-5-0-260128
config.yaml keys:
config.yaml

Usage

examples/tools/image_generate/agent.py

Notes

image_generate is the canonical import name. from veadk.tools.builtin_tools.generate_image import image_generate still works, but the generate_image module is deprecated — use image_generate instead.
Last modified on September 19, 2026