Audio

Perceptron provides an OpenAI-compatible speech-to-text API. Audio models accept audio input and return transcribed text. You pay using credits purchased with USDT.

The API is OpenAI-compatible. You can use the OpenAI SDK pointed at Perceptron as a drop-in replacement for the OpenAI audio transcription API.

Base URL

https://perceptron.cloud/api/v1

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Generate an API key from the Keys page in the Perceptron app.

Available Models

curl https://perceptron.cloud/api/stt/models

Audio (speech-to-text) models (the audio input modality) are listed separately from chat models. Query GET /api/stt/models for the current list and pricing.

Transcriptions

POST /api/v1/audio/transcriptions  ·  /api/stt/transcriptions

Transcribe an audio file to text. OpenAI-compatible multipart/form-data upload. Maximum 50 MB per file.

Request

curl https://perceptron.cloud/api/v1/audio/transcriptions \
  -H "Authorization: Bearer $PERCEPTRON_API_KEY" \
  -F "model=openai/whisper-large-v3" \
  -F "file=@speech.ogg"
Part Type Required Description
file file yes The audio file (mp3, wav, ogg, m4a, flac, webm, etc.)
model string no STT model ID from GET /api/stt/models
language string no ISO-639-1 language hint (e.g. en)
response_format string no Response format (default verbose_json)

Response

{
  "text": "Hello, this is the transcription.",
  "duration": 3.2
}

See the full reference at API Reference.

Pricing

Audio transcription is billed from your credits balance. See Billing for more details.