Watermarking and AI features (auto alt text and SEO rename) require a paid plan. Attempting to use these features on a free plan returns a
403 error.Request
Method:POSTURL:
https://fluximage.app/api/compressContent-Type:
multipart/form-dataAuthorization:
Bearer flx_live_your_key_here
Parameters
Core
File
required
Image file to optimize. Repeat this field to include multiple files in a single request. Maximum 20 files per batch; each file must not exceed 20 MB.
string
default:"webp"
Output format. Accepted values:
webp, avif, jpg, png.number
default:"82"
Compression quality, from
40 to 100. Higher values produce larger files with better fidelity. Applies to webp, avif, and jpg outputs; PNG uses lossless compression regardless of this value.number
Maximum output width in pixels. The image is scaled down proportionally if it exceeds this value. Images smaller than this value are not enlarged.
number
Maximum output height in pixels. The image is scaled down proportionally if it exceeds this value. Images smaller than this value are not enlarged.
string
Custom identifier used to group results from the same session. If omitted, the API generates a random identifier automatically.
Watermark
File
PNG image to overlay as a watermark on every processed file. Requires a paid plan. If you are on the free plan, this field is ignored.
number
default:"20"
Watermark width as a percentage of the base image width. Accepted range:
5–50.number
default:"80"
Watermark opacity from
0 (fully transparent) to 100 (fully opaque).string
default:"BR"
Position of the watermark on the image. Accepted values:
AI features
boolean
default:"false"
When
true, the API uses AI to generate an SEO-optimized alt text string for each image. Requires a paid plan and available AI credits. Each image consumes one AI credit.boolean
default:"false"
When
true, the API uses AI to generate an SEO-friendly filename for each image (lowercase words joined by hyphens). Requires a paid plan and available AI credits. Enabling both autoAltText and autoRenameSEO still consumes only one AI credit per image, not two.string
default:"English"
Language used for AI-generated alt text and filenames. Accepted values:
English, Español, Català, Français, Deutsch, Italiano, Português, Nederlands, Polski, Русский, 中文, 日本語, 한국어, Arabic, Hindi.string
A short phrase describing the context of your images, used to improve AI output quality. Example:
"ecommerce store selling sportswear".string
Keywords to guide AI alt text and filename generation. Example:
"running shoes men".Example request
Response
200 OK
Returns a JSON object with adata array. Each element corresponds to one successfully optimized image.
Response fields
object[]
Array of optimized image results, one per successfully processed file.
Error codes
403 AI error response shape
When an AI feature is blocked, the response includes botherror and message fields: