Skip to main content
POST
Error

Authorizations

x-api-key
string
header
required

Organisation API key. Format: sk_<secret>/<keyname> — the secret portion, a literal slash, and the human-readable key name. The header exulu-api-key is accepted as an alias. A Bearer prefix is tolerated and stripped. Keys with an agent scope are only valid for the scoped agent instance.

Body

application/json
sessionId
string<uuid>
required
toolCallId
string
required
model
string
required

Image-generation model that supports editing.

prompt
string
required
referenceImageKeys
string[]
required

S3 keys of the source images. Must belong to the session or calling user's prefix.

Minimum array length: 1
maskKey
string

Optional S3 key of a mask image for inpainting.

n
integer
Required range: x >= 1
size
string
quality
string
styleId
string

Response

Edited images.

generationId
string
images
object[]