Hecho para agentes de voz que no pueden esperar 600ms

xAI: Grok Voice 3.0

xai/grok-voice-3-0
activo speech-to-speech 1 proveedor
Playground

xAI's flagship realtime speech-to-speech voice agent over WebSockets, with reasoning on by default, low-latency turn-taking, interruptions and tool use such as web search.

AutorxAI
Idiomas20 idiomas
Formatos de respuestaStreaming: PCM · µ-law · A-law · Opus
Modelos variantes2 IDs
Estadoactivo

Modelos variantes

Son IDs de modelo nativos que el autor o proveedor acepta para la misma familia de modelos canónica.

Grok Voice 3.0 Default

Pinned Grok Voice 3.0 release, selected via the model query param on /v1/realtime.

grok-voice-3.0
Grok Voice (latest) Alias

Alias that xAI points at its current flagship voice model, grok-voice-3.0 since 2026-10-14.

grok-voice-latest

Proveedores

Distintos proveedores pueden alojar el mismo modelo. Elige un proveedor cuando necesites un backend fijo, o deja que el enrutamiento elija entre ellos.

ProveedorSlugPor horaLatenciaiEn TTS, la latencia se mide como el tiempo hasta el primer byte de audio. En STT, se mide como el tiempo hasta el primer token.ModosDisponibilidad
xAI 5 parámetros
grok
$4,8
—
Streaming

Idiomas admitidos

20 idiomas
English en
Arabic (Egypt) ar-EG
Arabic (Saudi Arabia) ar-SA
Arabic (United Arab Emirates) ar-AE
Bengali bn
Chinese (Simplified) zh
French fr
German de
Hindi hi
Indonesian id
Italian it
Japanese ja
Korean ko
Portuguese (Brazil) pt-BR
Portuguese (Portugal) pt-PT
Russian ru
Spanish (Mexico) es-MX
Spanish (Spain) es-ES
Turkish tr
Vietnamese vi

Funciones

Speech to speech

Bidirectional realtime speech-to-speech over WebSocket.

speech_to_speech
Low-latency turn-taking

Natural conversational turn-taking.

turn_taking
Tool use

Integrated tool calling (e.g. web search) during conversation.

tool_use
Input transcription

Optional transcription of input audio, biased by a language hint and key terms.

input_transcription
Configurable reasoning effort

Reasoning is on by default and can be turned off per session with reasoning.effort none.

reasoning_effort

Código

Lenguaje

Voz a voz en tiempo real con el OpenAI SDK

Envía question.pcm (PCM mono de 16 bits a 24 kHz) como un turno mediante el protocolo OpenAI Realtime y guarda la respuesta hablada en reply.pcm.

import { once } from "node:events";
import { readFile, writeFile } from "node:fs/promises";
import OpenAI from "openai";
import { OpenAIRealtimeWS } from "openai/realtime/ws";

const client = new OpenAI({
  apiKey: process.env.ALLMODELS_API_KEY,
  baseURL: "https://api.allmodels.io/oai"
});
const realtime = new OpenAIRealtimeWS({ model: "grok-voice-3.0" }, client);
const reply = [];

realtime.on("response.output_audio.delta", ({ delta }) => reply.push(Buffer.from(delta, "base64")));
realtime.on("response.done", async () => {
  await writeFile("reply.pcm", Buffer.concat(reply));
  realtime.close();
});
realtime.on("error", console.error);

if (realtime.socket.readyState !== 1) await once(realtime.socket, "open");
const format = { type: "audio/pcm", rate: 24000 };
realtime.send({
  type: "session.update",
  session: {
    voice: "eve",
    output_modalities: ["audio"],
    turn_detection: { type: null },
    audio: { input: { format }, output: { format } }
  }
});
realtime.send({ type: "input_audio_buffer.append", audio: (await readFile("question.pcm")).toString("base64") });
realtime.send({ type: "input_audio_buffer.commit" });
realtime.send({ type: "response.create" });