Edit a base image
Preserve a base image while applying an instruction or bounded change.
Primary agent path
Use beatra.images.edit when the first image must remain the base canvas. Later
ordered images may guide the edit.
- Upload local inputs with
beatra.assets.uploadand use the returned artifact IDs. - Put the base first, followed by up to three optional references.
- Call
beatra.models.listwithcapability: "image_edit"when model, region, control, canvas, or price compatibility matters. Otherwise usemodel: "auto". - Submit once with one
client_request_id; poll withbeatra.tasks.get.
AI guide
MCP integration guide for AI
For custom API integrations, copy this guide into Claude, Codex, or another coding assistant.
Tool arguments
Each normalized region must remain inside its image. Each input can have at
most two regions. Omit edit_regions for a whole-image instruction.
Limits, defaults, and model compatibility
- Edit accepts one to four ordered input images and requests one to four outputs. The first image is the base.
- Edit defaults to a 2K canvas whose ratio follows the first image;
countdefaults to 1. - Exact canvas, negative prompt, prompt enhancement, palette, region, and seed
support is described by
beatra.models.list. - Explicit Qwen Image 2.0 and 3.0 requests accept at most three inputs.
autokeeps the public maximum of four by selecting an eligible model. Incompatible explicit requests fail before charge and never discard an input.
The stable aliases are qwen-image-3.0-pro, qwen-image-3.0,
wan2.7-image-pro, wan2.7-image, qwen-image-2.0-pro, and
qwen-image-2.0. Qwen Image 3 is initially named-only and does not change
auto. Read pricing.options from live discovery and select the option
matching the admitted output resolution. Billing settles to the number of
successfully persisted images, including partial output; input references do
not multiply customer credits. Do not copy models or prices into an agent
prompt.
Task status and recovery
Poll the same task_id until terminal. Retry a lost create response only with
identical arguments and the same client_request_id. Any new instruction,
input order, region, model, or output setting is new work and needs a new ID.
REST API
Custom integrations use POST /v1/images/edits. Follow the generated
API operation
for the complete contract. Skill + MCP is the recommended integration; REST serves custom applications.