Skip to main content
POST
/
api
/
v1
/
ai
/
stt
Transcribe audio to text
curl --request POST \
  --url https://api.oryntai.xyz/api/v1/ai/stt \
  --header 'Content-Type: application/json' \
  --header 'X-Network: <x-network>' \
  --data '
{
  "model": "whisper-1",
  "audioUrl": "https://example.com/audio.mp3",
  "options": {}
}
'
{
  "model": "whisper-1",
  "transcription": "Hello world, this is a test audio."
}

Headers

X-Network
string
required

Blockchain network to use (e.g., solana, solana-devnet, base, polygon)

X-PAYMENT
string

On-chain payment proof for HTTP 402 requests

Body

application/json
model
string
required

STT model to use

Example:

"whisper-1"

audioUrl
string
required

URL of the audio file

Example:

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

options
object

Provider-specific options

Response

Transcribed text