Overview
Tool identifierimage_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
Environment variables:MODEL_IMAGE_API_KEY: API key for the image-generation model; falls back toMODEL_AGENT_API_KEYand then tomodel.api_keyfrom the config file when unsetMODEL_AGENT_API_KEY: API key for the agent’s reasoning modelMODEL_IMAGE_NAME: image-generation model nameMODEL_IMAGE_API_BASE: image-generation model API endpoint; defaults to the ModelArk endpoint
Credentials are resolved at tool execution time, not at import time. Importing the tool module does not initialize a client or require credentials to be present.
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.