For the complete documentation index, see llms.txt. This page is also available as Markdown.

Image

Process images

post

Compress, resize, rotate, or convert images between formats (HEIC, PNG, JPG, WebP, AVIF).

Body
filestring · binaryRequired

Image file to process

actionstring · enumRequired

Image operation to perform

Possible values:
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
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"
}
binary

Last updated