PopNowAPI Docs
Main content

GPT-Realtime-2.1 Mini API reference

GPT-Realtime-2.1 Mini pairs compact reasoning with streaming voice for short, responsive audio interactions.

Call GPT-Realtime-2.1 Mini from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.

At a glance

Made by
OpenAI
Output
Audio
From
$0.00048 USD per_1k_tokens

Prices are in USD, charged to your separate API wallet. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.

Realtime Voice

openai/gpt-realtime-2.1-mini/realtime

Price

OptionUSD
Default$0.00048 per_1k_tokens

Parameters

FieldTypeDefaultAllowedWhat it does
promptOptionalstring—up to 4,096 charactersText 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 to 1.5Speaking-speed multiplier for output audio.
max_tokensOptionalinteger51216 to 32000Per-turn output cap, including reasoning, text and audio tokens.
max_context_tokensOptionalinteger4096512 to 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.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

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"
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

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"

Next steps

On this page