PurAI is SHUT DOWN. This website is purely for archival purposes. No such services exist anymore.
Docs
OpenAI
Using OpenAI Audio Transcriptions

Using OpenAI Audio Transcriptions

Request

URL: https://ai.purlabs.xyz/openai/audio/transcriptions

Request Method: POST

TS Request Interface

interface Request {
  file: string;
  model: string;
  prompt?: string;
  response_format?: string;
  temperature?: number;
  language?: string;
}

Request API Reference

PropertyTypeRequiredDescription
fileFileRequiredThe audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
modelstringRequiredID of the model to use. Only whisper-1 is currently available.
promptstringOptionalAn optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.
response_formatstringOptionalDefaults to json. The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
temperaturenumberOptionalDefaults to 0. 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. If set to 0, the model will use log probability (opens in a new tab) to automatically increase the temperature until certain thresholds are hit.
languagestringOptionalThe language of the input audio. Supplying the input language in ISO-639-1 (opens in a new tab) format will improve accuracy and latency.

Example JSON Request Body

{
  "file": "https://my-audio-sample.com/audio.mp3",
  "model": "whisper-1",
  "response_format": "json"
}

Response

TS Response Interface

interface Response {
  text: string;
};

Example JSON Response

{
  "text": "Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that."
}