Capabilities
Explore what GPT Realtime 2.1 supports, then use the API section for a request tailored to this model.
Languages
Model Information
- Provider
- OpenAI
- Product
- Conversational
- Release Date
- Jul 6, 2026
- Data Policy
- No training
- Region
- Global
- Input
- Audio
- Output
- Audio
Playground
Try GPT Realtime 2.1 by OpenAI. Requests use the selected workspace’s credits and API pricing.
Providers
Compare available endpoints, pricing, and context limits for GPT Realtime 2.1.
| Provider | Context | Output | Input Price | Output Price | Endpoint |
|---|---|---|---|---|---|
| OpenAI | Not specified | Audio | $27.20 / 1M tokens | $54.40 / 1M tokens | openai/gpt-realtime-2.1:openai |
Prices are catalog rates. Your workspace’s estimate and endpoint pricing determine the final charge.
Input and Output Limits
Formats and limits AudioLab enforces on each request.
| Limit | Value |
|---|---|
| Input formats | pcm16 |
| Input sample rate | 24000 |
| Output formats | pcm16 |
| Output sample rate | 24000 |
| Max input seconds | 60 |
| Max turns | 1 |
| Max output tokens | 1024 |
Provider Notes
Up to 100 separately funded manual turns on one WebSocket connection. Each turn accepts up to 60 seconds of mono PCM16 input. Output streams at 24 kHz.
Status
Current catalog availability. Your workspace’s access is checked separately before a request runs.
A live availability check is not available right now.
Getting Started
Use your workspace API key and the exact model identifier below. Set the API URL to the endpoint shown in your workspace and keep credentials on your server.
import WebSocket from "ws";
import { randomUUID } from "node:crypto";
import { readFile } from "node:fs/promises";
import { createWriteStream } from "node:fs";
// Up to 60 seconds of mono PCM16 at 24000 Hz.
const input = await readFile("recording.pcm");
const output = createWriteStream("response.pcm"); // Mono PCM16, 24 kHz.
const url = new URL("/v1/audio/speech-to-speech/stream", process.env.AUDIOLAB_API_URL);
url.protocol = url.protocol === "https:" ? "wss:" : "ws:";
const socket = new WebSocket(url, {
headers: { Authorization: `Bearer ${process.env.AUDIOLAB_API_KEY}`, "Idempotency-Key": randomUUID() },
});
socket.on("open", () => socket.send(JSON.stringify({
type: "session.start", model: "openai/gpt-realtime-2.1", voice: "marin",
instructions: "Answer briefly.", max_output_tokens: 1024,
input_audio: { "format": "pcm16", "sample_rate": 24000, channels: 1 },
output_audio: { "format": "pcm16", "sample_rate": 24000 },
turn_detection: { type: "none" }, input_transcription: false, output_transcription: true,
})));
socket.on("message", raw => {
const event = JSON.parse(raw.toString());
if (event.type === "session.ready") {
for (let offset = 0; offset < input.length; offset += 48000)
socket.send(input.subarray(offset, offset + 48000));
socket.send(JSON.stringify({ type: "input_audio.commit" }));
socket.send(JSON.stringify({ type: "response.create" }));
} else if (event.type === "output_audio.delta") output.write(Buffer.from(event.delta, "base64"));
else if (event.type === "response.done") socket.close();
else if (event.type === "error") { console.error(event); socket.close(); }
});
socket.on("close", () => output.end());
socket.on("error", error => { console.error(error); output.end(); });Request Parameters
Available parameters depend on the provider and request format. The endpoint reference explains accepted values and required fields.
| Parameter | Details |
|---|---|
model | openai/gpt-realtime-2.1 — Required model identifier. |
voice | View Accepted Values |
instructions | View Accepted Values |
max_output_tokens | View Accepted Values |
input_audio | View Accepted Values |
output_audio | View Accepted Values |
turn_detection | View Accepted Values |
Input and Output Limits
Formats and limits AudioLab enforces on each request.
| Limit | Value |
|---|---|
| Input formats | pcm16 |
| Input sample rate | 24000 |
| Output formats | pcm16 |
| Output sample rate | 24000 |
| Max input seconds | 60 |
| Max turns | 1 |
| Max output tokens | 1024 |
Similar Models
Explore more conversational and compare their capabilities.
| Model | Context | Input Price | Output Price |
|---|---|---|---|
| GPT Realtime 2.1 MiniOpenAI | Not specified | $8.50 / 1M tokens | $17.00 / 1M tokens |
| GPT Realtime 2OpenAI | Not specified | $27.20 / 1M tokens | $54.40 / 1M tokens |
| GPT Audio 1.5OpenAI | Not specified | $27.20 / 1M tokens | $54.40 / 1M tokens |
| GPT Realtime 1.5OpenAI | Not specified | $27.20 / 1M tokens | $54.40 / 1M tokens |
| GPT RealtimeOpenAI | Not specified | $27.20 / 1M tokens | $54.40 / 1M tokens |
| Grok Voice LatestxAI | Not specified | $0.0425 / minute | — |