Developers / Sound Cleaning
Clean audio synchronously
https://api.echonova.ai/v1/sound-cleaningCleans an uploaded MP3, WAV, FLAC or OGG/Opus file of up to 10 minutes and 150MB in one call and returns the job with the cleaned file URL. Every tuning field is optional; an omitted one uses its default.
Headers
Bearer, a space, then your API key, which starts with ek_. Create keys in the portal under Developers, API Keys.
Request body
multipart/form-data
Audio file (mp3, wav, flac, ogg/opus). Up to 10 minutes, 150MB.
High-pass cutoff in Hz
High-pass smoothness
Target loudness in LUFS
Peak ceiling in dBFS
Compressor threshold in dBFS
Compressor ratio
Compressor attack in ms
Compressor release in ms
Response
200 application/json Every response uses this envelope.
The result.
The job id.
pending, processing, completed or failed.
The name of the uploaded file.
Time-limited link to the cleaned WAV.
Length of the audio in seconds.
Credits charged, a whole number.
The tuning values the job ran with.
High-pass cutoff in Hz.
High-pass smoothness.
Target loudness in LUFS.
Peak ceiling in dBFS.
Compressor threshold in dBFS.
Compressor ratio.
Compressor attack in ms.
Compressor release in ms.
Measurements of the cleaned file.
Sample rate of the cleaned file in Hz.
Measured loudness of the cleaned file in LUFS.
Measured peak of the cleaned file in dBFS.
The reason the job failed. Absent unless status is failed.
When the job was created, ISO 8601 in UTC.
true for a successful call.
Repeats the HTTP status.
null on success.
Errors
Same envelope, with success false and data null. All errors
When. The Content-Type header says multipart/form-data but carries no boundary, usually because the client set the header by hand.
Fix. Remove the hand-written header and let the client set it with the boundary.
When. The form has a part with a field name other than file, or more than one part named file (only one file is accepted).
Fix. Send exactly one file part, and name it file.
When. The form has no file part, or the request was not multipart at all.
Fix. Send a multipart form with one part named file.
When. The part's Content-Type does not start with audio/; <type> is what the client sent.
Fix. Set the part's type, for example audio/wav or audio/mpeg.
When. The file's duration is over 10 minutes.
Fix. Split the recording into parts of 10 minutes or less.
When. The file is empty or could not be decoded as audio.
Fix. Check the file plays, or export it again in a common format.
When. The file extension or its Content-Type is not one of the four formats, or the two do not match.
Fix. Send MP3, WAV, FLAC or OGG/Opus with a matching extension and type.
When. A tuning field is outside its range; the message names the field and the bound.
Fix. Stay inside the minimum and maximum listed for the field.
When. The body or query carries a field the endpoint does not define.
Fix. Remove the field.
When. The Authorization header is missing or is not Bearer ek_..., no key matches the token, or the key is deleted, disabled or its account is closed.
Fix. Send Authorization: Bearer ek_... with an enabled key from this environment.
When. The workspace balance cannot cover the charge for this call; nothing ran and nothing was charged.
Fix. Add credits to the workspace.
When. The workspace that owns the key has no subscription.
Fix. Check the workspace's plan in the portal.
When. The subscription is in a state other than active or trial.
Fix. Renew the subscription.
When. The key is restricted and Sound Cleaning is not among its services.
Fix. Edit the key and turn Sound Cleaning on, or use another key.
When. The upload is over 150 MB; the request is cut off before the file is read.
Fix. Re-encode at a lower bitrate or as mono.
When. The key made more than 100 requests to one endpoint in 60 seconds, or one IP address made more than 100 requests to one endpoint in 60 seconds (the IP limit is counted before the key is checked, so it can answer with no key at all); a Retry-After header carries the seconds to wait.
Fix. Wait Retry-After seconds, then retry.
When. The call would take the key past its Credit Limit for this billing cycle; nothing ran and there is no Retry-After header.
Fix. Raise or clear the limit on the key, or wait for the next cycle.
When. An error the API did not classify.
Fix. Check the request, then retry after a short wait; contact support if it persists.
When. Too many uploads were being measured at once, or measuring timed out; nothing was charged.
Fix. Retry after a short wait.
When. The cleaner could not be reached; the charge is refunded.
Fix. Retry once.
When. A transient outage inside the API.
Fix. Retry after a short wait.
When. A transient timeout inside the API.
Fix. Retry after a short wait.
curl -X POST "https://api.echonova.ai/v1/sound-cleaning" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@audio.mp3;type=audio/mpeg"{
"data": {
"id": "66e3f2a1c9d4b8a1f0e12345",
"status": "completed",
"fileName": "noisy.wav",
"outputUrl": "https://storage.example.com/cleaned/66e3f2a1c9d4b8a1f0e12345.wav?signature=abc",
"durationSeconds": 12,
"creditsConsumed": 207,
"options": {
"cutoffFreq": 90,
"qFactor": 0.707,
"targetLufs": -16,
"truePeakDbfs": -1,
"compThreshDb": -3.8,
"compRatio": 4,
"compAttackMs": 5,
"compReleaseMs": 50
},
"metrics": {
"sampleRate": 48000,
"integratedLufs": -16.1,
"truePeakDbfs": -1
},
"error": "The audio could not be cleaned.",
"createdAt": "2026-10-11T10:21:04.512Z"
},
"success": true,
"statusCode": 200,
"errorMessage": null
}