Edit image
Edit or compose images from stored files or public URLs.
← All Image Generation endpoints · Capability overview
/v1/image-generation/edithttps://api.vee3.io/v1/image-generation/edit
Edit or compose images from stored files or public URLs.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
image-generation.editParameters6 fields
promptstringRequiredText description of the image to generate or of the edit to apply.
max length 4000
imagesarrayRequiredSource images as stored file names from files.list_uploaded_files and/or public http or https image URLs. One image is an edit. Several images are composed into one scene. Upload files with files.upload_file first.
min 1, max 8
nintegerOptionalNumber of images to generate (1 to 10). Each returned image costs 50 tokens.
Default: 1 · min 1, max 10
sizestringOptionalOptional output size as WIDTHxHEIGHT (for example 1024x1536) or auto. This sets aspect ratio, not exact pixel size. Omit for the default aspect ratio.
max length 32
output_format"webp" | "png" | "jpeg"OptionalEncoding of the returned image. webp is smaller; png is lossless.
Default: "webp"
file_namestringOptionalOptional account-relative storage path for the image. When n is greater than 1, an index is inserted before the extension (for example art/fox.webp becomes art/fox-1.webp and art/fox-2.webp). If omitted, the file is stored under image-generation/ with a generated name.
max length 255
Response19 fields
generation_idstringUnique identifier, prefix igen_.
statusstringAlways "completed" for a successful generation.
promptstringEcho of the requested prompt.
image_countintegerNumber of images returned and billed.
token_costintegerTokens charged for this request (50 times image_count).
output_formatenumEncoding of the stored images (webp, png, or jpeg).
sizestringEcho of the requested size when one was passed.
created_atstringISO 8601 timestamp.
imagesarrayitems8 fieldsGenerated images stored in account file storage.
imagesarrayitemsimage_urlstringSigned download URL from account file storage.
file_namestringAccount-relative path where the image was stored.
file_size_bytesintegerImage file size in bytes.
retained_untilstringISO 8601 timestamp when account storage retention expires.
download_codestringShort code to pass to the @vee3/cli `vee3-get-file` command.
download_idstringStable identifier for the reserved download.
expires_atstringISO 8601 timestamp when the download code can no longer be resolved (60 minutes after reserve).
commandstringSuggested terminal command for downloading to a local path.
install_commandstringOne-time command to install the Vee3 CLI (`npm install -g @vee3/cli`). On networks that inspect HTTPS, install may require Node 22.15+ with NODE_OPTIONS=--use-system-ca.
troubleshootingstringWhat to do if installation or downloading fails: re-read this tool's description via meta-tools.describe for setup and troubleshooting steps.
HTTP errors: unauthorized, validation_error, insufficient_tokens, payment_required, uploaded_file_name_in_use, image_generation_timeout, image_generation_blocked, uploaded_file_not_found, url_blocked, image_input_not_supported