GPT-4o Realtime Preview API Pricing
azure/gpt-4o-realtime-preview-2024-12-17- Input / output
- $5.00 / $20.00 per 1M tokens
- Cache read
- $2.50 / 1M
- Context
- 16K tokens
- Max output
- 4K tokens
As of November 24, 2026, GPT-4o Realtime Preview costs $5.00 per 1M input tokens and $20.00 per 1M output tokens on Azure OpenAI, with cache reads at $2.50 per 1M tokens. It has a 16,000-token context window and returns up to 4,096 tokens per response.
GPT-4o Realtime Preview pricing by provider
3 listings across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| Azure OpenAIsnapshot 2024-12-17 | azure/gpt-4o-realtime-preview-2024-12-17 | $5.00 | $20.00 | $2.50 | 16K |
| Azure OpenAIeu, snapshot 2024-12-17 | azure/eu/gpt-4o-realtime-preview-2024-12-17 | $5.50 | $22.00 | $2.75 | 16K |
| Azure OpenAIus, snapshot 2024-12-17 | azure/us/gpt-4o-realtime-preview-2024-12-17 | $5.50 | $22.00 | $2.75 | 16K |
Other GPT-4o Realtime Preview prices on Azure OpenAI
| Audio input | $40.00 per 1M tokens |
| Audio output | $80.00 per 1M tokens |
What GPT-4o Realtime Preview costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Azure OpenAI | $20.00 |
GPT-4o Realtime Preview cost calculator
At Azure OpenAI's price ($5.00 input, $20.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $150 a day, about $4,500 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.015
- Per day
- $150
- Per month (30 days)
- $4,500
GPT-4o Realtime Preview features
Input: text, audio. Output: text, audio.
- Function calling
- Parallel tool calls
- Audio input
- Audio output
Use GPT-4o Realtime Preview with LiteLLM
Connect to /v1/realtime over WebSocket from your server. Voice setup guide
Set the provider variables in the config below and choose a LITELLM_MASTER_KEY that starts with sk-. Start the proxy with litellm --config config.yaml. For the example, set LITELLM_API_KEY to that key or to a virtual key with access to this model.
model_list:
- model_name: gpt-4o-realtime-preview
litellm_params:
model: azure/gpt-4o-realtime-preview-2024-12-17
api_base: os.environ/AZURE_API_BASE
api_key: os.environ/AZURE_API_KEY
general_settings:
master_key: os.environ/LITELLM_MASTER_KEY# pip install "websockets>=14"
import asyncio
import json
import os
import websockets
async def main():
headers = {"Authorization": f"Bearer {os.environ['LITELLM_API_KEY']}"}
async with websockets.connect("ws://localhost:4000/v1/realtime?model=gpt-4o-realtime-preview", additional_headers=headers) as ws:
await ws.send(json.dumps({
"type": "response.create",
"response": {
"output_modalities": ["text"],
"instructions": "Say hello in one sentence.",
},
}))
async for message in ws:
event = json.loads(message)
if event["type"] == "response.output_text.delta":
print(event["delta"], end="", flush=True)
if event["type"] == "error":
raise RuntimeError(event)
if event["type"] == "response.done":
print()
break
asyncio.run(main())GPT-4o Realtime Preview FAQ
How much does GPT-4o Realtime Preview cost?
GPT-4o Realtime Preview costs $5.00 per 1M input tokens and $20.00 per 1M output tokens on Azure OpenAI, with cache reads at $2.50 per 1M tokens.
What is the context window of GPT-4o Realtime Preview?
GPT-4o Realtime Preview has a 16,000-token context window and returns up to 4,096 tokens per response.
Which providers offer GPT-4o Realtime Preview?
GPT-4o Realtime Preview is available from Azure OpenAI through LiteLLM, using the model name azure/gpt-4o-realtime-preview-2024-12-17.
How do I use GPT-4o Realtime Preview with LiteLLM?
Add the model to your LiteLLM proxy, then connect over WebSocket to /v1/realtime. See the setup guide at https://docs.litellm.ai/docs/realtime.
What features does GPT-4o Realtime Preview support?
GPT-4o Realtime Preview supports function calling, parallel tool calls, audio input and audio output.
When did LiteLLM add GPT-4o Realtime Preview?
GPT-4o Realtime Preview was added to LiteLLM's model price file in December 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
LiteLLM docs: Azure OpenAI.
Provider pages: Azure OpenAI.