Skip to main content
Use the File API to upload images, videos, and audio that you can pass into Modellix prediction APIs. Uploads are authenticated with your API Key and are not billed. Files are retained for a limited time (default 7 days).

Upload Media File

Upload a single file via multipart/form-data.

List Media Files

List non-expired files for your team.

Delete Media File

Delete a file and free upload quota immediately.

Prerequisites

Typical workflow

1

Upload a file

Send a POST request to /api/v1/media/files with multipart/form-data. The form field name must be file.The file must use a supported extension and contain valid content for that type.
On success, the response includes a file_id, media type (image, video, or audio), and a url:
2

Use the file URL in a model API

Pass data.url into the image, video, or audio input fields of a prediction API (for example image_url).
Prefer the returned url over hosting the asset yourself when you only need a temporary public URL for model input.
3

List files (optional)

List media files that belong to your team and have not yet expired. Default page size is 100; limit is capped at 100.
4

Delete files you no longer need

Delete a file you no longer need. After deletion, it no longer counts toward your upload limit.
Returns 404 if the file is not found.

Limits and supported formats

Default limits

LimitDefault
Max file size16 MB
Files per team10
Concurrent uploads per team2
RetentionAbout 7 days
Files expire after the retention window. Delete unused files early if you are approaching the per-team file count limit.

Allowed file extensions

CategoryExtensions
imagejpg, jpeg, png, webp, gif, bmp, tiff, tif, heic, heif
videomp4, m4v, webm, mov, mkv, avi
audiomp3, wav, m4a, aac, ogg, flac, opus, weba
The response type field is derived from the extension and is one of image, video, or audio.

Error handling

Error responses use the same JSON shape as other Modellix APIs:
HTTP statusCommon causes
400Missing file, unsupported format, content mismatch, invalid image, or rejected content
401Missing or invalid API Key
404File not found (delete only)
413File exceeds the maximum allowed size
429Upload quota or concurrency limit exceeded
500Internal server error

Next steps