Skip to main content
POST
v1/audio/transcriptions (STT)

Overview

NanoGPT provides an OpenAI-compatible endpoint for synchronous speech-to-text (STT) models. Elevenlabs-STT uses the asynchronous workflow below and is not a drop-in SDK transcription response.

Endpoint

Authentication

Use either header:
  • Authorization: Bearer YOUR_API_KEY
  • x-api-key: YOUR_API_KEY

Request Formats

1) Multipart upload (OpenAI-compatible)

Send multipart/form-data with:
  • file (required): audio (or video for supported models)
  • model (required): STT model ID
  • language (optional): language code (default: auto-detect)

2) JSON with URL

NanoGPT accepts file_url or audio_url for URL-based transcription.

Supported Models (Examples)

Model availability changes; use GET /api/v1/models?output_modalities=transcription&detailed=true to discover synchronous transcription models. This catalog excludes voice-cloning workflows and asynchronous Elevenlabs-STT; see the async workflow and model list for those models.

Voice Cloning (via the same endpoint)

Some special model IDs run voice-cloning workflows instead of returning plain transcription text:
  • qwen-voice-clone — returns a reusable speaker embedding URL
  • minimax-voice-clone — returns a reusable custom voice ID (and/or preview output)

Synchronous response (HTTP 200)

Asynchronous ElevenLabs transcription (HTTP 202)

Submitting Elevenlabs-STT returns a job, not text:
Poll POST /api/transcribe/status using the same API key. Translate the v1 response’s run_id into the polling request’s runId. Do not resubmit the audio: resubmitting creates another job and can create another charge. Pending polls return data.status (for example IN_PROGRESS); failures return data.status: "FAILED" with data.error. Completion returns top-level status: "completed". Respect X-Poll-After on pending polls and Retry-After on retryable HTTP 503 responses; otherwise wait at least three seconds.
A completed poll returns a string in transcription, with metadata:
Voice-cloning models have separate result shapes; see their workflow guide.

Supported Formats

  • Audio: MP3, OGG, WAV, M4A, AAC
  • Video (model-dependent): MP4, MOV, AVI, MKV, WEBM

Example (Python, OpenAI SDK)

See Also

  • NanoGPT transcription workflows: api-reference/endpoint/transcribe.mdx
  • Full STT guide and model list: api-reference/speech-to-text.mdx