> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Transcribe speech to text

Supported transcription models include `whisper-1`, `gpt-4o-transcribe`, and `gpt-4o-mini-transcribe`. To upload a file from Windows, use a request like this:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/audio/transcriptions' \
    --header "Authorization: Bearer $GEEKAI_API_KEY" \
    --form 'file=@"/C:/User/GeekAI/test.mp3"' \
    --form 'model="whisper-1"' \
    --form 'response_format="text"'
```

On Linux, use a local path such as the following:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/audio/transcriptions' \
    --header "Authorization: Bearer $GEEKAI_API_KEY" \
    --form 'file=@/home/geekai/test.mp3' \
    --form 'model=whisper-1' \
    --form 'response_format=text'
```

`gpt-4o-transcribe` and `gpt-4o-mini-transcribe` only support JSON responses (`response_format=json`).

### Audio formats

OpenAI accepts the following audio formats for uploads:

* `flac`
* `mp3`
* `mp4`
* `mpeg`
* `mpga`
* `m4a`
* `ogg`
* `wav`
* `webm`

When uploading a supported format with curl, you may see this error:

```bash theme={null}
file type should be mp3, mp4, wav, wave, mpeg, webm or m4a
```

This can happen if curl infers the wrong media type. Set the file's media type explicitly:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/audio/transcriptions' \
    --header "Authorization: Bearer $GEEKAI_API_KEY" \
    --form 'file=@/home/geekai/test.m4a;type=audio/mp4' \
    --form 'model=whisper-1' \
    --form 'response_format=text'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.