Upload Media
/v1/uploadUpload an image, audio, or video file and receive a stored URL for a supported model input.
Multipart form
Image up to 20 MB, audio up to 50 MB, or video up to 500 MB. Supported formats are listed below.
Optional category hint. MIME detection from the file still controls validation.
Supported MIME types
image/jpeg, image/png, image/webp, image/gif — maximum 20 MB.
audio/mpeg, audio/mp4, audio/wav, audio/x-wav, audio/ogg, audio/aac, audio/flac — maximum 50 MB.
video/mp4, video/quicktime, video/webm — maximum 500 MB.
Response
Stored media URL to pass to a supported model input.
Original multipart filename and file size in bytes.
Detected MIME type used when storing the file.
Audio and video only: media duration in seconds, when it can be read from the file.
MIME detection
The server detects the file type from its bytes and filename. The optional type field does not force a MIME type.