Skip to content
Dashboard

Grok STT

Grok STT is xAI's speech-to-text model. It transcribes recorded audio into text across 25 languages, available through Vercel AI Gateway with the AI SDK.

index.ts
import { experimental_transcribe as transcribe } from 'ai';
import { gateway } from '@ai-sdk/gateway';
import { readFile } from 'node:fs/promises';
const result = await transcribe({
model: gateway.transcriptionModel('xai/grok-stt'),
audio: await readFile('audio.mp3'),
});

About Grok STT

Grok STT is xAI's speech-to-text model, released March 16, 2026 and available through AI Gateway. Grok STT transcribes audio into text across 25 languages, which covers voice notes, call recordings, podcasts, and other recorded audio. Speech to text through AI Gateway is in beta, so access is rolling out gradually.

Integration uses the AI SDK's experimental_transcribe function, available on the canary releases of the AI SDK. Pass audio as a Buffer, Uint8Array, base64 string, or URL. The result includes the transcript text, the detected language, the audio duration, and timestamped segments when available. A REST endpoint accepts base64-encoded audio directly if you're not using the AI SDK.

Billing is based on audio duration; see the pricing panel on this page for current rates. For live, two-way voice instead of recorded audio, reach for grok-voice-think-fast-1.0, and for the reverse direction, grok-tts turns text into speech.