Skip to main content
The media proxy serves all user-generated content for Fluxer, including avatars, icons, attachments, emojis, stickers, and external media. All public routes are served from https://fluxerusercontent.com. See the Media Proxy API reference for the full list of available endpoints.

Field notation

Resource tables use a compact notation:
NotationMeaning
fieldRequired field
field?Optional field (may be omitted)
?typeNullable (value can be null)

Enums

ImageSizeEnum

Allowed image sizes in pixels. Related endpoints
ValueDescription
1616 pixels
2020 pixels
2222 pixels
2424 pixels
2828 pixels
3232 pixels
4040 pixels
4444 pixels
4848 pixels
5656 pixels
6060 pixels
6464 pixels
8080 pixels
9696 pixels
100100 pixels
128128 pixels
160160 pixels
240240 pixels
256256 pixels
300300 pixels
320320 pixels
480480 pixels
512512 pixels
600600 pixels
640640 pixels
10241024 pixels
12801280 pixels
15361536 pixels
20482048 pixels
30723072 pixels
40964096 pixels

ImageFormatEnum

Allowed image output formats. Related endpoints
ValueDescription
pngPNG format
jpgJPEG format
jpegJPEG format (alias)
webpWebP format (default, recommended)
gifGIF format (for animated images)

ImageQualityEnum

Image quality levels. Related endpoints
ValueDescription
highHigh quality compression, good balance of size and fidelity (default for most images)
lowLower quality for smaller file sizes, suitable for thumbnails
losslessNo quality loss, largest file sizes (default for external media)

Query parameter schemas

ImageQueryParams

Standard query parameters for image routes. Related endpoints
FieldTypeDescription
size?ImageSizeEnumTarget image size in pixels. Default: 128
format?ImageFormatEnumOutput image format. Default: webp
quality?ImageQualityEnumImage quality level. Default: high
animated?booleanWhether to return animated images (GIF, APNG) if available. Default: false

ExternalMediaQueryParams

Query parameters for the external media proxy. Related endpoints
FieldTypeDescription
width?integerTarget width in pixels (1-4096). If only width is specified, height is calculated to maintain aspect ratio.
height?integerTarget height in pixels (1-4096). If only height is specified, width is calculated to maintain aspect ratio.
format?ImageFormatEnumOutput image format. If not specified, the original format is preserved.
quality?ImageQualityEnumImage quality level. Default: lossless
animated?booleanWhether to preserve animation for GIF images. Default: false

Response schemas

MetadataResponse

Response from metadata extraction. Related endpoints
FieldTypeDescription
formatstringDetected media format (e.g., png, jpeg, gif, mp4)
content_typestringMIME content type
content_hashstringSHA-256 hash of the content
sizeintegerFile size in bytes
width?integerImage or video width in pixels
height?integerImage or video height in pixels
duration?numberVideo or audio duration in seconds
placeholder?stringBlurHash placeholder string for progressive loading
base64?stringBase64-encoded content (if with_base64 was requested)
animated?booleanWhether the image is animated (GIF, APNG)
nsfwbooleanWhether the content was flagged as NSFW
nsfw_probability?numberNSFW probability score (0-1)
nsfw_predictions?map<string, number>Per-category NSFW predictions

ThumbnailResponse

Response from thumbnail generation. Related endpoints
FieldTypeDescription
thumbnailstringBase64-encoded thumbnail image (JPEG)
mime_typestringMIME type of the thumbnail (always image/jpeg)

FrameResponse

Response from frame extraction. Related endpoints
FieldTypeDescription
framesExtractedFrame[]Extracted video frames

ExtractedFrame

Single extracted video frame.
FieldTypeDescription
timestampnumberFrame timestamp in seconds
mime_typestringMIME type of the frame image
base64stringBase64-encoded frame image

Request schemas

MetadataRequest

Discriminated union for metadata extraction requests. The type field determines which variant is used. Related endpoints
TypeDescription
MetadataRequestExternalFetch metadata from an external URL
MetadataRequestUploadGet metadata from an uploaded file
MetadataRequestBase64Get metadata from base64-encoded data
MetadataRequestS3Get metadata from an S3 object

MetadataRequestExternal

Metadata request for external URLs.
FieldTypeDescription
typestringMust be "external"
urlstringExternal URL to fetch
with_base64?booleanInclude base64-encoded content in response
isNSFWAllowedbooleanWhether NSFW content is permitted

MetadataRequestUpload

Metadata request for uploaded files.
FieldTypeDescription
typestringMust be "upload"
upload_filenamestringFilename in the uploads bucket
isNSFWAllowedbooleanWhether NSFW content is permitted

MetadataRequestBase64

Metadata request for base64-encoded data.
FieldTypeDescription
typestringMust be "base64"
base64stringBase64-encoded media data
isNSFWAllowedbooleanWhether NSFW content is permitted

MetadataRequestS3

Metadata request for S3 objects.
FieldTypeDescription
typestringMust be "s3"
bucketstringS3 bucket name
keystringS3 object key
with_base64?booleanInclude base64-encoded content in response
isNSFWAllowedbooleanWhether NSFW content is permitted

FrameRequest

Discriminated union for frame extraction requests. The type field determines which variant is used. Related endpoints
TypeDescription
FrameRequestUploadExtract frames from an uploaded file
FrameRequestS3Extract frames from an S3 object

FrameRequestUpload

Frame extraction request for uploaded files.
FieldTypeDescription
typestringMust be "upload"
upload_filenamestringFilename in the uploads bucket

FrameRequestS3

Frame extraction request for S3 objects.
FieldTypeDescription
typestringMust be "s3"
bucketstringS3 bucket name
keystringS3 object key

ThumbnailRequestBody

Request body for thumbnail generation. Related endpoints
FieldTypeDescription
upload_filenamestringFilename of the uploaded video in the uploads bucket