GPT 4o overview
GPT 4o by OpenAI
OpenAI's GPT-4o API offers advanced text, vision, and audio integration, enhancing real-time applications for developers and enterprises.
GPT 4o specs
- Model ID
openai/gpt-4o- Developer
- OpenAI
- Context window
- 128,000 tokens
- Max output
- 16,384 tokens
- Input
- Text, Image, Video
- Output
- Text, Image
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
Basic Information
Release Date: Released in stages starting in May 2024
Version: Latest iteration of the GPT-4 series
Model Type: Multimodal AI (Text, Vision, and upcoming Audio support)
Overview:
GPT-4o is OpenAI's flagship model designed to integrate enhanced capabilities across text, vision, and soon, audio, providing real-time reasoning.
Key Features:
Multimodal capabilities: text, vision, and upcoming audio
Improved function calling and JSON mode
Advanced vision capabilities for better image understanding
Enhanced support for non-English languages
Intended Use:
Ideal for developers and enterprises looking to leverage cutting-edge AI across various applications including chatbots, content generation, and complex data interpretation.
GPT-4o can also be used for Medical Imaging because achieves approximately 90% accuracy in interpreting radiology images like X-rays and MRIs. Learn more about this and other models and their applications in Healthcare.
Language Support:
Improved tokenization and support for multiple languages, enhancing its utility in global applications.
Architecture:
Based on the Transformer architecture, optimized for speed and multimodal integration.
Use cases
Real‑time multimodal assistants
Voice-enabled chatbots with instantaneous audio and image understanding, ideal for live support, tutoring, or interactive kiosks.
Long‑form document comprehension
Analyze and summarize large documents (books, reports, chat logs) up to 128K tokens in a single session.
Capabilities
- Function calling
- Streaming
- Structured outputs
GPT 4o benchmarks by
Artificial Analysis
See how GPT 4o scores on independent evaluations. Data retrieved Nov 3, 2026.
Benchmark results
Compare 17 models available on AI/ML API across 5 independent benchmarks.
Humanity's Last Exam
Expert-written questions across academic subjects.
GPQA Diamond
Graduate-level science questions written to resist web search.
LiveCodeBench
Competitive programming problems published after training cutoffs.
MMLU-Pro
Multiple-choice knowledge and reasoning across 14 subjects.
AIME 2025
Problems from the 2025 American Invitational Mathematics Examination.
GPT 4o API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $2.5 | 1M tokens |
| Output | $10 | 1M tokens |
| Cached input | $1.25 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
GPT 4o vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $2.5 | $10 | |
| $0.1 | $0.5 | |
| $1 | $5 | |
| $2 | $10 | |
| $2.12 | $10.58 |
How to use the GPT 4o API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
GPT 4o FAQ
What is the context window of GPT 4o?
GPT 4o has a 128,000 tokens context window and can return up to 16,384 tokens.
What inputs and outputs does GPT 4o support?
GPT 4o takes image, text as input and returns text.
What is the model ID for GPT 4o?
Use openai/gpt-4o as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
When was GPT 4o released?
GPT 4o became available on May 13, 2024.
How much does GPT 4o cost?
See the GPT 4o pricing table for current input, output and cached-input rates. Prices are quoted per 1 million tokens.
Does GPT 4o support streaming?
Yes, GPT 4o can stream responses as they are generated.
Can GPT 4o read images?
Yes, GPT 4o accepts image input alongside text.
Who created GPT 4o?
GPT 4o was built by OpenAI.

