curl --request POST \
--url https://api.modellix.ai/api/v1/microsoft/mai-image-2.6-flash-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Convert this photo into a cinematic film still with dramatic lighting",
"images": [
"https://example.com/photo.png"
]
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-mai-i2i-26-flash-001",
"model_id": "microsoft/mai-image-2.6-flash-edit",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-mai-i2i-26-flash-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'images' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}MAI Image 2.6 Flash Edit
[Core Function] MAI Image 2.6 Flash Edit is the faster, lower-cost variant of MAI Image 2.6 image editing. [Strengths] It applies prompt-guided edits to a single source image with lower latency than MAI Image 2.6 Edit. [Best For] Highly recommended for: high-throughput edit APIs and production retouching pipelines. [Limitations] Do NOT use this if the caller provides more than one source image, a data URI, or a URL that is not publicly reachable over HTTP or HTTPS. It accepts exactly one JPEG or PNG image URL, and output is always PNG. auto_aspect_ratio and web_grounding are optional booleans; omit them unless the caller sets them. [Routing] Use this model when edit speed or cost matters more than maximum 2.6 quality. For the highest fidelity, route to MAI Image 2.6 Edit.
curl --request POST \
--url https://api.modellix.ai/api/v1/microsoft/mai-image-2.6-flash-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Convert this photo into a cinematic film still with dramatic lighting",
"images": [
"https://example.com/photo.png"
]
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-mai-i2i-26-flash-001",
"model_id": "microsoft/mai-image-2.6-flash-edit",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-mai-i2i-26-flash-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'images' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Microsoft MAI Image 2.6 edit request. Shared by MAI Image 2.6 Edit and 2.6 Flash Edit. Accepts exactly one source image (JPEG or PNG); output is always PNG. auto_aspect_ratio and web_grounding are optional; omit them to leave upstream defaults (do not send the fields).
Text description of the edit to apply. Platform limit is 32,000 UTF-8 bytes, not Unicode characters.
1 - 32000"Turn this photo into a watercolor painting"
Exactly one source image. The item must be a publicly accessible HTTP or HTTPS image URL (JPEG or PNG only).
1 element1["https://example.com/photo.png"]
Optional. When true, the model chooses the output aspect ratio from the prompt and source image. Omit this field unless the caller explicitly wants model-directed framing.
Optional. When true, the model may retrieve current public information (Bing) as extra context. Omit this field unless the caller explicitly wants web-grounded editing.