Skip to main content
POST
MAI Image 2.5 Flash Edit

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Microsoft MAI Image edit request. Shared by MAI Image 2.5 Edit and 2.5 Flash Edit. Accepts exactly one source image (JPEG or PNG); output is always PNG.

prompt
string
required

Text description of the edit to apply

Required string length: 1 - 32000
Example:

"Turn this photo into a watercolor painting"

images
string[]
required

Exactly one source image. The item is a publicly accessible image URL or a base64 data URI (JPEG or PNG only).

Required array length: 1 element
Minimum string length: 1
Example:

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.