# audiotranscriptionopenai: Transcribe Audio with OpenAI

> audiotranscriptionopenai (Transcribe Audio with OpenAI) is a 1001fx API function in the group AI: POST https://api.1001fx.com/ai/audiotranscriptionopenai, 10 credits per minute (minimum 10). It works as a ready-made module in n8n or as a plain HTTP call.

**Deprecated:** this function will be removed in a future release.

Transcribes audio to text. Will be charged per minute.

- This service is provided by an external service provider: Microsoft Azure OpenAI. The data of the call is sent to the provider. [More about service providers](https://1001fx.com/functions#serviceproviders)

- Group: AI
- Endpoint: `POST https://api.1001fx.com/ai/audiotranscriptionopenai`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 10 credits per minute (minimum 10)
- Ready-made in: n8n
- Service provider: OpenAI
- Docs: https://1001fx.com/functions/audiotranscriptionopenai

## Parameters

- `file` (file, optional) – Audio file for transcription: The audio or video file to transcribe.
- `fileUrl` (string, optional) – File URL: The URL of an audio or video file to transcribe.
- `prompt` (string, optional) – Prompt: An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.
- `temperature` (number, optional, default `0`) – Temperature: The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Default is 0
- `language` (string, optional) – Language: The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency. See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
- `responseFormat` (enum, optional, one of `json`, default `json`) – Response Format: The format of the transcript output. Defaults to json.

## Example: Transcribe an uploaded video (MP4)

```bash
curl -X POST 'https://api.1001fx.com/ai/audiotranscriptionopenai' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file=@transcribe.mp4' \
  -F 'prompt=1001fx is a nocode function set' \
  -F 'temperature=0.2' \
  -F 'language=DE'
```

Answer (HTTP 200):

```json
{
  "result": {
    "text": "1001fx is a nocode function library.",
    "duration": 0.07488333333333334,
    "durationUnit": "minutes"
  }
}
```
