OpenAI compatibility

Create transcription

Transcribes audio into text with POST /v1/audio/transcriptions.

Same request and response as OpenAI's transcriptions endpoint. It is billed like POST /v1/speech-to-text with the same model. json returns text and usage.seconds. verbose_json adds language, duration, segments, and words when asked for. Each segment has id, start, end, text, and speaker when the model labels speakers. Whisper decoder fields such as avg_logprob are not included. A model that returns only word times gets segments built from its words. text, srt, and vtt are built from the same transcript.

POST /v1/audio/translations takes the same form without language and returns English text. It runs on whisper-large-v3; other models return 400 translation_not_supported.

Request parameters

FieldTypeDescription
fileRequiredfile (multipart)The audio (mp3, wav, m4a, flac, ogg, webm, and other common formats). Each model’s size limit applies.
modelRequiredstringA Pascal file speech-to-text model id, for example whisper-large-v3-turbo, whisper-large-v3, parakeet-tdt-0.6b-v3, pascal-transcribe, gemini-3.5-transcribe, or qwen3-asr-1.7b. OpenAI names such as whisper-1 return 400.
languagestringThe spoken language, in the format the model takes (en for Whisper, en-US for Chirp). Omit it to detect. Ignored by models without a language setting.
promptstringText to guide spelling and style. Used by Whisper, Qwen, and Gemini; ignored by others.
response_format
Default json
stringjson, text, srt, verbose_json, or vtt. verbose_json, srt, and vtt turn on the model’s timestamps.
temperaturenumberUsed by Whisper and Gemini; ignored by others.
timestamp_granularities[]array of stringsword and/or segment. word on a model without word times (pascal-transcribe, cohere) returns 400 word_timestamps_not_supported. The timestamps field of GET /v1/models says what each model has.

Code examples

curl https://api.pascalai.co/v1/audio/transcriptions \
  -H "Authorization: Bearer $PASCAL_API_KEY" \
  -F file=@audio.mp3 \
  -F model="whisper-large-v3-turbo" \
  -F response_format="verbose_json"