GPT 4o
gpt-4o Omni-era GPT for multimodal chat, practical coding, and general assistants
Quick facts
- Released
- May 2024
- Model type
- Proprietary
- Model family
- GPT
- Input modalities
- Supports: Text, Image, PDF
- Output modalities
- Supports: Text
- Available regions
- USEU
- Zero data retention
- Yes
- Available on nexos.ai
- Yes
Pricing and specifications of GPT 4o
Explore GPT 4o pricing per million input, output, and cached tokens, along with its context window and maximum output limits.
Available providers
Specifications
Context window
128K tokens
Max output
16K tokens
Input
Output
Quickstart
Start using GPT 4o
Model ID
gpt-4o Base URL
https://api.nexos.ai/v1 Code
from openai import OpenAI
# Get your API key from the nexos.ai dashboard
client = OpenAI(
base_url="https://api.nexos.ai/v1",
api_key="YOUR_NEXOS_API_KEY",
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content) import OpenAI from 'openai';
// Get your API key from the nexos.ai dashboard
const client = new OpenAI({
baseURL: 'https://api.nexos.ai/v1',
apiKey: 'YOUR_NEXOS_API_KEY',
});
const response = await client.chat.completions.create({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content); curl https://api.nexos.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_NEXOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}' Other OpenAI models
Models from OpenAI with comparable capabilities and pricing.
Start building with GPT 4o
Access GPT 4o and 200+ other AI models through nexos.ai.
FAQ
Common questions about GPT 4o, its availability and usage.
GPT 4o pricing starts at $2.75 per 1 million input tokens and $11.00 per million output tokens. Prices may vary depending on the provider, region, and caching options. See the pricing table above for a full comparison.
GPT 4o supports a context window of 128,000 tokens, with a maximum output of 16,384 tokens. The context window determines how much information the model can process in a single request.
GPT 4o supports vision, tool calling, prompt caching, web search, and structured JSON output. These features can be used individually or together, depending on the model and your application’s requirements.
GPT 4o is available through Azure, with deployment options in the US and EU regions. Availability may vary by provider. See the provider comparison table above for details.
Zero data retention (ZDR) is available for GPT 4o through Azure. With ZDR, supported providers do not retain request and response content after processing, subject to their applicable policies.
To use GPT 4o through nexos.ai, you’ll need an Enterprise plan. Once your account is set up, create an API key, set your base URL to https://api.nexos.ai/v1, and specify gpt-4o in your API request. nexos.ai is OpenAI-compatible, so you can use your existing SDK integration by updating the API key, base URL, and model ID.