Documentation Index
Fetch the complete documentation index at: https://docs.faseeh.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Requires API key authentication via x-api-key header.
Request
Content-Type: multipart/form-data
| Field | Type | Required | Description |
|---|
audio | File | Yes | Audio file to denoise (max 200 MB, max 15 minutes duration) |
File Limits
- Maximum file size: 200 MB
- Maximum duration: 15 minutes
Supported audio formats: WAV, MP3, M4A, FLAC, OGG
Response
Status Code: 200 OK
Headers:
Content-Type: audio/wav
Cache-Control: no-cache
Content-Length: <file_size>
Body: Denoised audio file (WAV format)
Error Responses
400 Bad Request
{
"errorCode": "400xx",
"errorMessage": "File size exceeds 200 MB limit"
}
{
"errorCode": "400xx",
"errorMessage": "Audio duration exceeds 15 minutes limit"
}
401 Unauthorized
{
"errorCode": "40101",
"errorMessage": "Invalid or missing API key"
}
402 Payment Required
{
"errorCode": "40201",
"errorMessage": "Insufficient wallet balance"
}
Example Usage
JavaScript
const formData = new FormData();
const audioFile = document.querySelector('input[type="file"]').files[0];
formData.append("audio", audioFile);
const response = await fetch('https://api.faseeh.ai/api/v1/denoise', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
// Note: Content-Type is set automatically by FormData
},
body: formData,
});
if (response.ok) {
const audioBlob = await response.blob();
const audioUrl = URL.createObjectURL(audioBlob);
// Use audioUrl to play or download the denoised audio
} else {
const error = await response.json();
console.error('Error:', error);
}
Python
import requests
url = "https://api.faseeh.ai/api/v1/denoise"
headers = {
"x-api-key": "YOUR_API_KEY"
}
with open("input_audio.wav", "rb") as audio_file:
files = {"audio": audio_file}
response = requests.post(url, files=files, headers=headers)
if response.status_code == 200:
with open("denoised_audio.wav", "wb") as f:
f.write(response.content)
print("Denoised audio saved successfully")
else:
print(f"Error: {response.status_code} - {response.text}")
cURL
curl -X POST "https://api.faseeh.ai/api/v1/denoise" \
-H "x-api-key: YOUR_API_KEY" \
-F "audio=@input_audio.wav" \
--output denoised_audio.wav
File Limits: Ensure your audio file is under 200 MB and 15 minutes duration. Larger files will be rejected with a 400 error.
API key for authentication
Audio file to denoise (max 200 MB, max 15 minutes duration)
WAV audio file with enhanced voice clarity