Media
Reduce the sample rate and bit depth for a lo-fi effect
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-bitcrusher' \
-F 'file=@/path/to/audioFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/audio-bitcrusher' \
-F 'audioFile=/path/to/file.ext' \
-F 'preset=medium' \
-F 'sampleRate=8000' \
-F 'bitDepth=8' \
-F 'dither=none' \
-F 'mix=0.8' \
-F 'outputFormat=mp3'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/audio-bitcrusher| Name | Type | Required | Description |
|---|---|---|---|
| audioFile | fileupload required | Yes | — |
| preset | select | No | Choose the intensity of the bitcrushing effect. Mild = subtle degradation, Heavy = extreme digital distortion. |
| sampleRate | number | No | Target sample rate. Lower values = more aliasing and gritty digital artifacts. |
| bitDepth | number | No | Target bit depth. Lower values = more quantization noise and harsh digital distortion. |
| dither |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-audio-bitcrusher": {
"name": "audio-bitcrusher",
"description": "Reduce the sample rate and bit depth for a lo-fi effect",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-bitcrusher",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-bitcrusher",
"arguments": {
"audioFile": "https://example.com/file.ext",
"preset": "medium",
"sampleRate": 8000,
"bitDepth": 8,
"dither": "none",
"mix": 0.8,
"outputFormat": "mp3"
}
}
}| select |
| No |
| Dithering reduces quantization artifacts by adding noise. None = raw quantization noise. |
| mix | range | No | Balance between dry (original) and wet (bitcrushed) signal. |
| outputFormat | select | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]