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
Parameter | Type | Required | Default | Range | Description |
---|---|---|---|---|---|
file | file | Yes | - | - | File to upload (supported types: image, video, audio) |
Response Parameters
Parameter | Type | Description |
---|---|---|
code | integer | HTTP status code (e.g., 200 for success, 500 for failure) |
message | string | Status message (e.g., “success” or error message) |
data.type | string | Type of the uploaded file (e.g., “image”) |
data.download_url | string | URL to download the uploaded file |
data.filename | string | Name of the uploaded file |
data.size | number | Size of the uploaded file in bytes |