Back to all models
Get all the details on GPT-4o mini Realtime, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as audio_input, audio_output, text_generation, available API code samples, and performance strengths.
Key Metrics
Input Limit
128K tokens
Output Limit
4.1K tokens
Input Cost
$0.60/1M
Output Cost
$2.40/1M
Sample API Code
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4o-mini-realtime-preview",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the capital of France?"}
],
stream=True
)
for chunk in response:
print(chunk.choices[0].delta.content or "", end="")
Required Libraries
openai
openai
Notes
Smaller realtime model for text and audio inputs and outputs.
Capabilities
audio input
audio output
text generation
multimodal input
realtime processing
Supported Data Types
Input Types
text
audio
Output Types
text
audio
Strengths & Weaknesses
Exceptional at
realtime processing
audio input
audio output
Good at
text generation
cost efficiency
Additional Information
Latest Update
Dec 17, 2024
Knowledge Cutoff
No data