Skip to main content
POST
Transcribe Pre-recorded Audio

Request contract

  • Method and path: POST /apis/v1/deepgram/speech-to-text-pre-recorded
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0103 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
audio_url
string<uri>
required

Public URL of the audio file to transcribe. Must be a direct, publicly downloadable media file URL — not a preview page, auth-gated link, or expiring/short-lived URL.

Required string length: 1 - 2083
Example:

"https://example.com/audio.wav"

content_type
enum<string>
required

MIME type of the audio file. Without your own Deepgram key, only 'audio/wav' is supported.

Available options:
audio/wav,
audio/mp3,
audio/mpeg,
audio/flac,
audio/webm
Examples:

"audio/wav"

"audio/mp3"

alternatives
integer

Number of alternative transcripts to return.

Required range: x >= 1
detect_language
boolean

Automatically detect language if true. Prefer explicit language over this when the audio language is known; auto-detection reduces accuracy for non-English content. Requires your own Deepgram key.

diarize
boolean

Enable speaker diarization if true. Requires your own Deepgram key.

interim_results
boolean

Return interim results if true. Requires your own Deepgram key.

keyterm
string[]

List of keyterms to boost in the transcript. Supported by Nova-3 and Flux models only. Use simple terms without intensifiers (e.g., 'invoice', 'payment terms'). For other models, use 'keywords' instead. Requires your own Deepgram key.

Example:
keywords
string[]

List of keywords to boost in the transcript. Supported by Nova-2, Nova-1, Enhanced, and Base models. Format: 'keyword:intensifier' (e.g., 'invoice:5'). For Nova-3 or Flux models, use 'keyterm' instead. Requires your own Deepgram key.

Example:
language
string

Language code for transcription (e.g., 'en-US'). Without your own Deepgram key, only 'en' or 'en-US' is supported and 'en' is used when omitted.

Example:

"en-US"

model
string

Deepgram model to use (e.g., 'nova-3', 'general', 'phonecall'). Without your own Deepgram key, only 'nova-3' is supported and is used when omitted.

Example:

"nova-3"

punctuate
boolean

Automatically punctuate transcript.

smart_format
boolean

Apply smart formatting (capitalization/punctuation).

tier
string

Enhanced tier for higher-accuracy recognition. Requires your own Deepgram key.

Allowed value: "enhanced"
version
string

Specific model version to use. Requires your own Deepgram key.

Response

Tool result data

metadata
object
required
results
object
required
warnings
string[]