PopNowAPI-Doku
Hauptinhalt

GPT-Realtime-2.1 Mini API-Referenz

GPT-Realtime-2.1 Mini ist ein kompaktes Sprachmodell für kurze Dialoge mit Verlauf.

Mit einem einzigen PopNow-API-Schlüssel rufst du GPT-Realtime-2.1 Mini aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in USD und eine Anfrage, die du direkt ins Terminal kopieren kannst.

Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.

Auf einen Blick

Hersteller
OpenAI
Ergebnis
Audio
Ab
$0.00048 USD per_1k_tokens

Die Preise werden in USD angezeigt und von deinem PopNow-Guthaben abgebucht. Bei Annahme wird der Höchstbetrag reserviert, nach Abschluss der tatsächliche Verbrauch abgerechnet und der Rest freigegeben. Fehlgeschlagene Tasks kosten nichts. Ein genaues Angebot erhältst du vorab über POST /api/v1/jobs/quote.

Echtzeitstimme

openai/gpt-realtime-2.1-mini/realtime

Preis

OptionUSD
Standard$0.00048 per_1k_tokens

Parameter

FeldTypStandardwertErlaubtBedeutung
promptOptionalstring—bis zu 4.096 ZeichenText that starts a single spoken response; live audio uses the Realtime WebSocket.
voice_idOptionalstring—alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedarPreset speaking voice; select before the first audio response.
reasoning_effortOptionalstring—minimal, low, medium, high, xhighReasoning effort for the spoken response; reasoning consumes output tokens.
output_formatOptionalstring—pcm, g711_ulaw, g711_alawLive playback encoding; single-response tasks return a matching WAV container.
speedOptionalnumber10.25 bis 1.5Speaking-speed multiplier for output audio.
max_tokensOptionalinteger51216 bis 32000Per-turn output cap, including reasoning, text and audio tokens.
max_context_tokensOptionalinteger4096512 bis 123888Retained-history cap; this, the 4096-token instruction allowance and output must fit 128000.
audio_input_formatOptionalstringpcmpcm, g711_ulaw, g711_alawEncoding of live microphone samples; PCM is 24 kHz mono 16-bit, G.711 is 8 kHz.
audio_noise_reductionOptionalstringnear_fieldnear_field, far_field, noneInput denoising profile for a close microphone, room microphone, or preprocessed audio.
realtime_sessionOptionalobject——Advanced native session configuration; overlapping regular controls must agree. Function tools are executed by your application.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "openai/gpt-realtime-2.1-mini/realtime",
  "input": {
    "prompt": "A bright, cheerful scene with soft natural light"
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Weiter geht’s

Auf dieser Seite