Skip to content
Dashboard

Grok STT

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

Price
$0.10, Per hour of audio
import { experimental_streamTranscribe as streamTranscribe } from 'ai';
import { createGateway, gateway } from '@ai-sdk/gateway';
import { readFile } from 'node:fs/promises';
const modelId = 'spacexai/grok-stt';
// Mint this on your server, then send only the short-lived token to the client.
const { token } = await gateway.experimental_transcription.getToken({
model: modelId,
});
const clientGateway = createGateway({ apiKey: token });
// Raw 24 kHz, 16-bit signed little-endian mono PCM audio.
const bytes = await readFile('audio.pcm');
const audio = new ReadableStream<Uint8Array>({
start(controller) {
controller.enqueue(new Uint8Array(bytes));
controller.close();
},
});
const result = streamTranscribe({
model: clientGateway.transcription(modelId),
audio,
inputAudioFormat: { type: 'audio/pcm', rate: 24000 },
});
for await (const part of result.fullStream) {
if (part.type === 'transcript-delta') {
process.stdout.write(part.delta);
}
}
console.log('\nFinal:', await result.text);
Read docs

Copy link to headingPlayground

Try out Grok STT by SpaceXAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

spacexai logo

Live transcription

Speak into your microphone and watch the transcript appear in real time.

Idle
spacexai logo

Start the session and begin speaking to see the transcript.

Copy link to headingProviders

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Input
Capabilities
ZDR
No Training
Free Tier
Release Date
$0.10/hr
03/16/2026

Copy link to headingMore models by SpaceXAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free Tier
Release Date
500K
$2/M+1 more
$6/M+1 more
Read$0.50/M
$5/K
+1
xai logo
08/12/2026
500K
$2/M+1 more
$6/M+1 more
Read$0.30/M
$5/K
+3
xai logo
07/08/2026
1M
$1.25/M+1 more
$2.50/M+1 more
Read$0.20/M
$5/K
+3
vertex logo
xai logo
04/30/2026
2M
$1.25/M+1 more
$2.50/M+1 more
Read$0.20/M
$5/K
+2
vertex logo
xai logo
03/10/2026
1M
$0.20/M
$0.50/M
Read$0.05/M
+1
vertex logo
11/19/2025
1M
$0.20/M
$0.50/M
Read$0.05/M
+2
vertex logo
11/19/2025

Copy link to headingAbout Grok STT

Grok STT is SpaceXAI'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.

Copy link to headingWhat To Consider When Choosing a Provider

  • Configuration: Transcription responses through AI Gateway aren't streamed. The full transcript returns in a single response, so plan batch-style processing rather than live captioning. Audio uploads are base64-encoded in a JSON body, and multipart file uploads aren't supported, so large files grow request payloads.
  • Configuration: Speech to text is in beta, and AI SDK support ships on canary releases. Pin your dependency versions and watch for API changes before you rely on Grok STT in production.
  • Zero Data Retention: Zero Data Retention is offered on a per-provider and model basis. See the documentation for details.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

Copy link to headingWhen to Use Grok STT

Best for

  • Voice Notes and Dictation: Turn recorded memos into text with a single transcribe call
  • Call and Meeting Records: Convert recorded conversations into searchable transcripts
  • Multilingual Transcription: Audio in any of 25 languages comes back as text
  • Podcast and Media Pipelines: Produce transcripts for captions, show notes, and search indexing

Consider alternatives when

  • Live Voice Conversation: grok-voice-think-fast-1.0 handles real-time speech-to-speech sessions
  • Speech Generation: grok-tts converts text into spoken audio instead
  • Streamed Partial Transcripts: AI Gateway returns the full transcript in one response, so incremental captioning needs a different design

Grok STT gives you SpaceXAI's transcription stack behind one AI Gateway key. Send recorded audio through the AI SDK's transcribe function and get back text, language, duration, and segments. Billing follows audio duration, with current rates on this page.

Copy link to headingFrequently Asked Questions

  • How many languages does Grok STT support?

    Grok STT transcribes audio in 25 languages, with the detected language returned alongside the transcript.

  • How do I transcribe audio with Grok STT?

    Use the AI SDK's experimental_transcribe function with audio as a Buffer, Uint8Array, base64 string, or URL. A REST endpoint also accepts base64-encoded audio if you're not using the AI SDK.

  • What does the transcription result include?

    The result includes the full transcript text, the detected language, the audio duration in seconds, timestamped segments when available, and any provider warnings.

  • Does Grok STT stream transcription results through AI Gateway?

    No. The full transcript returns in a single response. For live, two-way voice, use grok-voice-think-fast-1.0 instead.

  • What does Grok STT cost?

    Billing is based on audio duration. See the pricing panel on this page for current rates.

  • How do I authenticate with Grok STT through Vercel AI Gateway?

    Use your Vercel AI Gateway API key with spacexai/grok-stt as the model identifier. AI Gateway handles provider routing automatically.

  • Does Vercel AI Gateway support Zero Data Retention for Grok STT?

    Zero Data Retention is not currently available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.

Your use is subject to SpaceXAI's Terms & Privacy Policies.