# VEED Clean Audio

> Studio-quality speech from noisy recordings


## Overview

- **Endpoint**: `https://fal.run/veed/clean-audio`
- **Model ID**: `veed/clean-audio`
- **Category**: audio-to-audio
- **Kind**: inference
**Description**: Removes background noise from speech while keeping quiet and distant words intact. The same model that powers Clean Audio in the VEED editor, processing thousands of recordings a day. Any audio or video file up to 30 minutes in, 48 kHz loudness-normalized audio out.

**Tags**: speech enhancement, noise reduction, audio denoise



## Pricing

Billing is calculated at **$0.0125 per minute of input audio**. Duration is rounded to whole seconds, then up to full minutes, with a **1-minute minimum**. For example, **10 minutes** costs **$0.125**, and **30 minutes** costs **$0.375**.

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`audio_url`** (`string`, _required_):
  The recording to clean. Any audio or video ffmpeg can decode (wav, mp3, m4a, aac, ogg, mp4, mov, webm, ...); a video's audio track is used and multi-channel input is mixed down to mono. Up to 30 minutes and 512 MB. A public URL or a data URI.
  - Examples: "https://v3b.fal.media/files/b/0aaaa91c/5KspxZ3psz3KmDvSeYVk__noisy_example.m4a"

- **`strength`** (`float`, _optional_):
  How much of the original is allowed to remain under speech: the suppression floor is 1 - strength (the default 0.874 is the validated -18 dB). Lower keeps more room tone behind the voice; silence between words is always fully cleaned. Default value: `0.874`
  - Default: `0.874`
  - Range: `0` to `1`

- **`target_lufs`** (`float`, _optional_):
  Integrated loudness of the output (ITU-R BS.1770). The default -19 LUFS is the level the VEED editor delivers; true peak is capped at -1.1 dBTP. Pass null through the API to skip loudness normalization and keep the input level. Default value: `-19`
  - Default: `-19`
  - Range: `-40` to `-8`

- **`output_format`** (`OutputformatEnum`, _optional_):
  Container for the 48 kHz mono 16-bit output. FLAC is lossless at about half the size of WAV. Default value: `"flac"`
  - Default: `"flac"`
  - Options: `"flac"`, `"wav"`



**Required Parameters Example**:

```json
{
  "audio_url": "https://v3b.fal.media/files/b/0aaaa91c/5KspxZ3psz3KmDvSeYVk__noisy_example.m4a"
}
```

**Full Example**:

```json
{
  "audio_url": "https://v3b.fal.media/files/b/0aaaa91c/5KspxZ3psz3KmDvSeYVk__noisy_example.m4a",
  "strength": 0.874,
  "target_lufs": -19,
  "output_format": "flac"
}
```


### Output Schema

The API returns the following output format:

- **`audio`** (`Audio`, _required_):
  The denoised recording: 48 kHz mono 16-bit, same duration as the input, loudness-normalized.
  - Examples: {"file_name":"denoised.flac","url":"https://v3b.fal.media/files/b/0aaaa933/tYOEy9H8r67qdQEC33yMe_denoised.flac","content_type":"audio/flac"}

- **`audio_duration`** (`float`, _required_):
  Input duration in seconds. Billing: whole seconds rounded up to full minutes, minimum 1 unit.



**Example Response**:

```json
{
  "audio": {
    "file_name": "denoised.flac",
    "url": "https://v3b.fal.media/files/b/0aaaa933/tYOEy9H8r67qdQEC33yMe_denoised.flac",
    "content_type": "audio/flac"
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/veed/clean-audio \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "audio_url": "https://v3b.fal.media/files/b/0aaaa91c/5KspxZ3psz3KmDvSeYVk__noisy_example.m4a"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "veed/clean-audio",
    arguments={
        "audio_url": "https://v3b.fal.media/files/b/0aaaa91c/5KspxZ3psz3KmDvSeYVk__noisy_example.m4a"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("veed/clean-audio", {
  input: {
    audio_url: "https://v3b.fal.media/files/b/0aaaa91c/5KspxZ3psz3KmDvSeYVk__noisy_example.m4a"
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/veed/clean-audio)
- [API Documentation](https://fal.ai/models/veed/clean-audio/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=veed/clean-audio)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
