Media & data
Speech-to-text
Transcribe audio to text with an OpenAI-compatible transcription API, powered by Deepgram Nova-3.
Endpoint
POST
https:/ / api.ppq.ai/ v1/ audio/ transcriptionsParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file | file | Yes | The audio file to transcribe: mp3, mp4, mpeg, mpga, m4a, wav or webm, up to 500 MB. |
model | string | No | One of "nova-3", "nova-2". Default: "nova-3". These are the only transcription models. |
response_format | string | No | One of json, text, srt, vtt, verbose_json. Default: json. |
language | string | No | Language code, for example "en", "es" or "fr", or "multi" to detect the language automatically. |
prompt | string | No | Text to guide the model's style. |
In srt and vtt output, cues follow sentence boundaries and are capped at about 7 seconds or 84 characters each.
Models
GET /v1/audio/models returns the current speech-to-text models with pricing.
curl https://api.ppq.ai/v1/audio/modelsCode examples
from openai import OpenAI
# Initialize client with PayPerQ API
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.ppq.ai/v1"
)
# Transcribe audio file
with open("audio.mp3", "rb") as audio_file:
transcription = client.audio.transcriptions.create(
model="nova-3", # Deepgram Nova-3
file=audio_file,
response_format="json" # Options: json, text, srt, vtt, verbose_json
)
print(transcription.text)