Common APIMedia Upload

Media Upload API

The Media Upload API allows you to upload binary files to WaveSpeed.AI platform. This endpoint supports various media file formats and provides a simple way to upload files for processing.

Binary File Upload

Use this endpoint to upload binary files directly to the platform.

API Endpoints

The request should be a multipart/form-data request containing the file to be uploaded.

Endpoint

POST /api/v3/media/upload/binary

Request


curl --location --request POST 'https://api.wavespeed.ai/api/v3/media/upload/binary' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--form 'file=@"/path/to/your/file"'
  

Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
filefileYes--File to upload (supported types: image, video, audio)

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success, 500 for failure)
messagestringStatus message (e.g., “success” or error message)
data.typestringType of the uploaded file (e.g., “image”)
data.download_urlstringURL to download the uploaded file
data.filenamestringName of the uploaded file
data.sizenumberSize of the uploaded file in bytes
© 2025 WaveSpeedAI. All rights reserved.