GPT 4o API

openai/gpt-4o
GPT-4o integrates text, vision, and audio for multimodal AI applications.
Context
128K tokens
Input
$3.25 / 1M tokens
Output
$13 / 1M tokens
Released
May 13, 2024

Overview

GPT-4o Description

Basic Information

Model Name: GPT-4o

Developer/Creator: OpenAI

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

Increased rate limits and reduced cost

Find more details in our latest blog post ChatGPT-4o. 7 features you might've missed.

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.

Technical Details

Architecture:

Based on the Transformer architecture, optimized for speed and multimodal integration.

Training Data:

Trained on a diverse range of internet text and structured data up to October 2023.

Data Source and Size:

Extensive internet-based dataset, size undisclosed.

Knowledge Cutoff:

Knowledge up to October 2023.

Diversity and Bias:

Trained on a diverse dataset to minimize bias and enhance robustness across various demographics.

Performance Metrics

Comparison to Other Models:

According to self-released test results by OpenAI, GPT-4o exhibits significantly better or similar scores compared to other LMMs including prior GPT-4 versions, Anthropic's Claude 3 Opus, Google's Gemini, and Meta's Llama3. 

__wf_reserved_inherit
Accuracy:

Self-released results show that GPT-4o surpasses audio translation by rival models from Meta and Google, as well as OpenAI's own Whisper-v3, the previous state-of-the-art in automated speech recognition (ASR).

Speed:

Its reaction time to audio inputs is 232 milliseconds on average, with a maximum of 320 milliseconds; this is comparable to the typical human response time during a conversation. In addition to being much quicker and 50% less expensive in the API, it matches GPT-4 Turbo performance on text in English and code and significantly improves on text in non-English languages. 

Robustness:

Enhanced ability to handle diverse inputs and maintain performance across different languages and modalities.

Usage

Code Samples/SDK:

Chat

GPT-4o Use Cases

OCR with GPT-4o

OCR is a popular computer vision task that converts images to text. GPT-4o accurately answers “Read the serial number.” and “Read the text from the picture”.

Using GPT4-o for Document Understanding

Our next step is to test GPT-4o's performance in extracting important details from images that contain a lot of text. When asked, "How much fee did I pay?" in regard to a receipt and "What is the price of Ham Restaurant?" in reference to a food menu, GPT-4o reliably provides accurate answers for both inquiries. 

Real-time Computer Vision Applications

The latest enhancements in speed, along with visual and audio capabilities, have finally unlocked real-time applications for GPT-4, particularly in the realm of computer vision. Being able to interact with a GPT-4o model in real-time, using live visual data, enables rapid intelligence gathering and decision-making. This capability is invaluable for a variety of tasks, including navigation, translation, guided assistance, and the analysis of complex visual information.

Client Support

GPT-4 has transformed customer service, fundamentally changing how businesses communicate with their customers. One of the standout applications of GPT-4 in customer support is through chatbots. These AI-driven virtual assistants understand and respond to customer queries more accurately and empathetically, providing round-the-clock personalized support.

‍

Licensing

  • Commercial licensing, specifics available through OpenAI.

‍

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 100%
  • Availability (24h): 100%
  • Error rate (24h): 0%
  • End-to-end latency (24h median): 2.6s
  • Time to first token (24h median): 1.0s
  • Throughput (24h median): 90.5 tok/s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

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.

Vision‑and‑code workflows

Extract insights from code screenshots, diagrams, or charts and assist with analysis, debugging, or explanation.

Multilingual, multimodal Q&A

Answer questions across languages and modalities—text, images, or spoken language—e.g., translating foreign documents and images in concert.

Interactive media analysis

Understand video frames, describe scenes, detect emotion in speech, and support real-time decision-making in dynamic environments.

‍

How to use GPT 4o API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to openai/gpt-4o.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "openai/gpt-4o",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = 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": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST 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":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

GPT 4o API Pricing

TypePrice
Input
$3.25 / 1M tokens
Output
$13 / 1M tokens
Cached input
$1.625 / 1M tokens

GPT 4o Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
9
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Math
25.7
Composite score across standardised mathematics evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026

GPT 4o vs other models

ModelInputOutputContextBest for
GPT 4o
This page
$3.25 / 1M tokens
$13 / 1M tokens
128K tokens
Coding + agents
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

GPT 4o has a 128,000 tokens context window and can return up to 16,384 tokens.

GPT 4o takes image, text as input and returns text.

Use openai/gpt-4o as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

GPT 4o became available on May 13, 2024.

GPT 4o is priced at input $3.25 / 1M tokens, output $13 / 1M tokens, cached input $1.625 / 1M tokens.

Yes, GPT 4o can stream responses as they are generated.

Yes, GPT 4o accepts image input alongside text.

GPT 4o was built by OpenAI.

Start building with GPT 4o

Get API Key
1000+ models, one API.