Edit a base image with optional references and regions
Create an asynchronous edit task where `images[0]` is the base image and later images are ordered references. Optional normalized regions target inputs by index. `auto` selects a compatible live model; a concrete model is never substituted.
Request Body
application/jsonRequiredmetadataMetadataCaller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars
callback_urlCallback UrlHTTPS URL Beatra will POST the final Task envelope to when the Task reaches a terminal state
callback_signing_key_idCallback Signing Key IdOptional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.
modelModelUse auto for compatibility-based selection from the configured live candidates. A concrete model is evaluated exactly as requested and is never substituted.
"auto"Value in: "auto" | "gpt-image-2" | "image-01" | "image-01-live" | "wan2.7-image-pro" | "wan2.7-image" | "qwen-image-2.0-pro" | "qwen-image-2.0"promptRequired prompt containing at least one non-whitespace character.
1Pattern: "\\S"countCountRequested output image count. The public range is one through four, and the selected model must support the exact count; Beatra does not split the request.
1Minimum: 1Maximum: 4canvasCanvasDesired output canvas. The default is a 2K tier derived from the first base image's ratio; actual output dimensions remain authoritative.
{"type":"preset","tier":"2K","aspect":"source"}seedSeedOptional random seed. Supplying it constrains model eligibility; omit it for model-managed randomness.
negative_promptNegative PromptOptional content or qualities to avoid. Supplying it constrains model eligibility and is rejected when no compatible model is available.
enhance_promptEnhance PromptOmit or use null to retain the selected model's documented default; an explicit boolean constrains model eligibility.
palettePaletteThree to ten weighted RGB colors. Runtime validation requires the weights to sum exactly to 1.0000.
imagesOrdered inputs; images[0] is the base and later entries are references.
edit_regionsEdit RegionsFlat normalized rectangles keyed by an input image_index. Runtime validation enforces cross-coordinate and collection relations.
Header Parameters
X-Request-IdstringOptional client request id echoed in the response.
Idempotency-Key1Maximum length: 128AuthorizationBearer API key.
Task accepted