Skip to content
Dashboard

gpt-realtime-whisper

gpt-realtime-whisper is a streaming speech-to-text model for realtime transcription, returning transcript text while audio is still arriving, with a tunable latency and accuracy tradeoff and pricing based on audio duration rather than tokens. Your use is subject to OpenAI's Terms & Privacy Policies.

Websockets
import { experimental_streamTranscribe as streamTranscribe } from 'ai';
import { createGateway, gateway } from '@ai-sdk/gateway';
import { readFile } from 'node:fs/promises';
const modelId = 'openai/gpt-realtime-whisper';
// 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 headingMore models by OpenAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Release Date
1.1M
1.5s
154tps
$1/M$0.20/M
+1 more
$6/M$1.20/M
+1 more
Read:
$0.1/M$0.02/M+1 more
Write:
$1.25/M$0.25/M+1 more
$10/K
+ input costs
+4
azure logo
bedrock logo
openai logo
07/09/2026
1.1M
3.3s
85tps
$5/M+1 more
$30/M+1 more
Read:
$0.5/M+1 more
Write:
$6.25/M+1 more
$10/K
+ input costs
+4
azure logo
bedrock logo
openai logo
07/09/2026
1.1M
1.6s
140tps
$2.50/M$2/M
+1 more
$15/M$12/M
+1 more
Read:
$0.25/M$0.2/M+1 more
Write:
$3.13/M$2.5/M+1 more
$10/K
+ input costs
+4
azure logo
bedrock logo
openai logo
07/09/2026
1.1M
0.9s
116tps
$2.50/M+1 more
$15/M+1 more
Read:
$0.25/M+1 more
Write:
$10/K
+ input costs
+4
azure logo
openai logo
03/05/2026
400K
5.4s
124tps
$0.05/M
$0.40/M
Read:$0.01/M
Write:
$14/K
+ input costs
+3
azure logo
openai logo
08/07/2025
131K
0.3s
154tps
$0.35/M
$0.75/M
Read:$0.25/M
Write:
baseten logo
bedrock logo
cerebras logo
+5
08/05/2025