Image
Compress, resize, rotate, or convert images between formats (HEIC, PNG, JPG, WebP, AVIF).
Body
filestring · binaryRequired
Image file to process
actionstring · enumRequiredPossible values:
Image operation to perform
optionsstringOptional
JSON string. Resize: {"width":800,"height":600,"fit":"contain","quality":0.9}. Rotate: {"angle":90}. Compress: {"quality":0.85,"format":"jpeg"}
Responses
200
Processed image file
image/*
string · binaryOptional
202
Job queued for async processing
application/json
400
Invalid action, missing file, or non-image file
413
File exceeds 25MB limit
429
Rate limit exceeded or queue full
post/api/image-process
POST /api/image-process HTTP/1.1
Host: mioffice.ai
Content-Type: multipart/form-data
Accept: */*
Content-Length: 55
{
"file": "binary",
"action": "heicToJpg",
"options": "text"
}binaryLast updated