Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Grok Voice

xai/grok-voice

Grok Voice listens to a recording of a user's speech and replies as a Grok voice agent with spoken audio and its transcript. Optional instructions set the agent's persona, and 28 built-in xAI voices are available.

Grundpreis
$0.02USD / Ausführung
Ausführung
async
Modelltyp
audio
Eingabefelder
3
Produktionsroute

Modell testen

Playground

Playground öffnen
Eingabe
Audio file or URL with the user's speech. Most common formats are supported; maximum duration 10 minutes, maximum file size 50 MB.
Optional instructions describing the agent's persona and conversation context (up to 20,000 characters). Uses Grok's default persona when omitted.
Built-in xAI voice for the agent's reply. Uses Grok's default voice when omitted.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

Modellkarte

Spezifikationen

Preisgestaltung

Basispreis
$0.02 / Ausführung

Kontext & Modalitäten

Eingabe
Schema-definiert
Ausgabe
audio

Funktionen

Chat
Nicht unterstützt
Vision
Nicht unterstützt
Reasoning
Nicht unterstützt
Strukturierte Ausgabe
Nicht unterstützt
Function Calling
Nicht unterstützt
Audioeingabe
Nicht unterstützt

Zugriff

Anbieter
xAI
Modell-ID
xai/grok-voice
Ausführung
async
Basis-URL
https://api.sandbase.ai
API
Unified Run API
Endpunkt
/v1/run

API-README

Grok Voice

Grok Voice turns a spoken question (up to 10 minutes) into a spoken Grok reply plus its transcript, with 28 built-in voices.

Fields

FieldTypeDefaultNotes
audioaudio file or URL, required—User speech, up to 10 minutes and 50 MB.
promptstring—Persona and context for the agent; omit for Grok's default.
voicestring—Reply voice; omit for Grok's default. See the schema for supported values.

Output

FieldNotes
urlSpoken reply (WAV, 24 kHz mono).
content_typeMIME type of the reply.
textTranscript of the reply (empty when not provided).
durationReply length in seconds.

Billing

$0.00083 per second of the spoken reply (about $0.05 per minute), using the measured reply length. The quote before submission assumes a 30-second reply.

ReplyPrice
10 s$0.0083
30 s$0.0249
60 s$0.0498

Failed runs are not charged.

Prompting

  • Keep the persona short and say how long answers should be.

Also on SandBase

Related: xai/grok-tts.

Jetzt loslegen

Senden Sie Ihre erste Anfrage

OpenAI-kompatibler Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.

Produktions-API
Unified Run API-Endpunkt
https://api.sandbase.ai/v1/run
Modell-ID
xai/grok-voice
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "xai/grok-voice",
  "audio": "https://v3b.fal.media/files/b/0a8dd5a2/hS140ygvRuxn-eY_qPhlv_assets_test_input_service.wav",
  "prompt": "You are a friendly assistant. Answer briefly and concretely."
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"
01

Eingabeschema

3 Parameter · 1 erforderlich · 2 optional

ParameterTypErforderlichBeschreibung
audiostringErforderlichAudio file or URL with the user's speech. Most common formats are supported; maximum duration 10 minutes, maximum file size 50 MB.
voicestringOptionalBuilt-in xAI voice for the agent's reply. Uses Grok's default voice when omitted. · Optionen: carina, zagan, helix, orion, luna, iris, altair, zenith, perseus, helios, lux, kepler, rigel, cosmo, celeste, ursa, sirius, lumen, castor, naksh, atlas, aurora, liora, ara, eve, leo, rex, sal
carinazaganhelixorionlunairisaltairzenithperseusheliosluxkeplerrigelcosmocelesteursasiriuslumencastornakshatlasauroralioraaraeveleorexsal
promptstringOptionalOptional instructions describing the agent's persona and conversation context (up to 20,000 characters). Uses Grok's default persona when omitted. · Maximale Länge: 20000
02

Ausgabeschema

FeldTypBeschreibung
idstringEindeutige Kennung für den Generierungsauftrag
statusstringStatus des Auftrags: pending, running, completed, failed, timeout
modelstringVerwendetes Modell für die Generierung
outputsarrayArray von Ausgabeelementen
outputs[].urlstringURL des generierten Artefakts
outputs[].content_typestringMIME-Typ (z. B. image/png, video/mp4)
errorobject | nullFehlerdetails bei Fehlschlag, bei Erfolg null
error.typestringMaschinenlesbarer Fehler-Typcode
error.messagestringMenschenlesbare Fehlerbeschreibung

Asynchroner Workflow

Dieses Modell läuft asynchron. Senden Sie eine Anfrage und pollen Sie dann das Ergebnis.

  1. Senden: Per POST an /v1/run senden und das zurückgegebene id lesen.
  2. Pollen: GET /v1/run/{id}, bis der Status completed, failed oder timeout ist.
  3. Abrufen: outputs aus der abgeschlossenen Antwort lesen.

Wählen Sie Ihr Modell

Modelle vergleichen

Alle Bild- und Videomodelle
ModellTypStandardpreisVeröffentlicht
Grok VoiceDieses Modell
xAI
Audio$0.02 / Lauf16. Sept. 2026
xAIAudio$0.01 / Lauf17. März 2026

Fragen

FAQ

Wie rufe ich xAI Grok Voice über SandBase auf?

Erstellen Sie einen SandBase API-Schlüssel und senden Sie dann Anfragen mit der Modell-ID "xai/grok-voice" an Unified Run API (/v1/run) unter https://api.sandbase.ai. Die Anfragebeispiele auf dieser Seite zeigen die exakte Nutzlast.

Benötige ich ein separates xAI-Konto?

Nein. Mit einem SandBase API-Schlüssel und Guthaben erhalten Sie Zugriff auf xAI Grok Voice und die anderen Modelle im Katalog; Sie müssen sich nicht separat bei xAI registrieren.