gpt-4o

Common Name: GPT-4 Omni

OpenAI
Released on May 13, 2024 12:00 AMKnowledge Cutoff Sep 1, 2023 12:00 AMTool Invocation

OpenAI's flagship multimodal model combining text and vision capabilities with GPT-4 level intelligence.

Specifications

Context128,000
Maximum Output16,384
Inputtext, image
Outputtext

Performance (7-day Average)

Uptime
TPS
RURT

Pricing

Input$2.75/MTokens
Output$11.00/MTokens
Cached Input$1.38/MTokens
Batch Input$1.38/MTokens
Batch Output$5.50/MTokens

Usage Statistics

No usage data available for this model during the selected period
View your usage statistics for this model

Similar Models

$2.75/$11.00/M
ctx128Kmax16Kavailtps
InOutCap

Preview version of GPT-4o with integrated web search for enhanced real-time knowledge and information access.

$2.75/$11.00/M
ctx128Kmax16Kavailtps
InOutCap

Latest preview of GPT-4o enhanced with web search capabilities for accessing up-to-date information.

$2.20/$8.80/M
ctx200Kmax100Kavailtps
InOutCap

Our smartest reasoning model, trained to think for longer before responding. Excels at programming, business/consulting, and creative ideation with breakthrough performance on complex tasks.

$2.20/$8.80/M
ctx200Kmax100Kavailtps
InOutCap

Snapshot of o3 from April 16, 2025. Our smartest reasoning model with breakthrough performance on complex tasks.

Documentation

GPT-4o

GPT-4o ("o" for "omni") is OpenAI's most advanced model. It accepts text, image, and audio inputs and generates text and audio outputs. It's designed for fast, real-time interactions.

Key Features

  • Multimodal: Process text, images, and audio in a single request
  • Fast Response: Optimized for low-latency applications
  • 128K Context: Large context window for complex conversations
  • Vision: Analyze images, charts, and documents

API Usage

python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.ohmygpt.com/v1",
    api_key="your-api-key",
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Vision Example

GPT-4o can analyze images by including them in your messages:

python
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "What's in this image?"},
                {
                    "type": "image_url",
                    "image_url": {"url": "https://example.com/image.jpg"}
                }
            ]
        }
    ],
)

Best Practices

  1. Be Specific: Provide clear, detailed prompts for better results
  2. Use System Messages: Set context and behavior with system messages
  3. Manage Tokens: Monitor token usage to control costs
  4. Handle Errors: Implement retry logic for rate limits