AI
Remove backgrounds, inpaint (object removal), or upscale images using AI models.
Body
filestring · binaryRequired
Image file to process
actionstring · enumRequiredPossible values:
AI operation to perform
maskDatastring · binaryOptional
Mask image for inpaint action (required for inpaint)
optionsstringOptional
JSON string. removeBackground: {"format":"png"}
Responses
200
AI-processed image
image/*
string · binaryOptional
202
Job queued for async processing
application/json
400
Invalid action, missing file, or missing mask for inpaint
413
File exceeds 10MB limit
429
Rate limit exceeded or queue full
post/api/ai-process
POST /api/ai-process HTTP/1.1
Host: mioffice.ai
Content-Type: multipart/form-data
Accept: */*
Content-Length: 82
{
"file": "binary",
"action": "removeBackground",
"maskData": "binary",
"options": "text"
}binaryLast updated