Transcriptions & Translations API
FastRouter provides OpenAI-compatible audio APIs for transcribing speech into text or translating audio into English, using the Whisper model.
Introduction
FastRouter provides OpenAI-compatible endpoints for converting audio into text — either as a direct transcription or as a translation into English. The API accepts common audio formats and supports multiple output types such as plain text, JSON, SRT, and VTT.
Before you begin, replace placeholders like <FASTROUTER_API_KEY> with your actual key (see Keys & Settings in your dashboard).
Models
FastRouter supports:
openai/whisper-1
Transcriptions API
Use this endpoint to convert spoken audio into written text in the original language.
Endpoint
POST https://go.fastrouter.ai/api/v1/audio/transcriptionsBase URL
https://go.fastrouter.ai/api/v1Supported Input File Formats
MP3, MP4, MPEG, MPGA, M4A, WAV, WEBM
Parameters
model
Must be "whisper-1"
file
Path to the audio file
language
(Optional) ISO-639-1 code (e.g., "en", "es")
response_format
(Optional) Output format (see below)
temperature
(Optional) Sampling temperature
Using the OpenAI SDK (Python)
Transcription Example (cURL)
Output Formats
Set response_format to:
json— Basic structured outputtext— Plain textsrt— SubRip subtitle filevtt— WebVTT subtitle fileverbose_json— Metadata + transcript
Translations API
Use this endpoint to translate audio into English, regardless of the source language. The API automatically transcribes and translates the audio.
Note: This endpoint always outputs English text.
Endpoint
Using the OpenAI SDK (Python)
Translation Example (cURL)
Last updated