# cutaudiofile: Cut Audio File

> cutaudiofile (Cut Audio File) is a 1001fx API function in the group Audio & video: POST https://api.1001fx.com/audiovideo/cutaudiofile, 3 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Cuts an MP3 from a file or URL: starting at a given second, the given duration (in seconds) is cut out.

- Group: Audio & video
- Endpoint: `POST https://api.1001fx.com/audiovideo/cutaudiofile`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make and n8n
- Docs: https://1001fx.com/functions/cutaudiofile

## Parameters

- `url` (string, optional) – URL: The URL of the media file. Has to get acce
- `file` (file, optional) – Media file: Media file to be cut.
- `start` (number, required, default `0`) – Start time in Seconds: Start of cut in seconds.
- `duration` (number, optional) – Duration: Duration in seconds. Default 60s

## Example: Cut an audio file from a URL

```bash
curl -X POST 'https://api.1001fx.com/audiovideo/cutaudiofile' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'url=https://api.1001fx.com/testdata/transcribe.mp3' \
  -F 'start=2' \
  -F 'duration=5'
```
