GPT 4o API

Multimodal AI model by OpenAI enhancing human-computer interaction.

Modalities
Text, Image, VideoText, Image
In / Out price
$2.5/$10per 1M
Context window
125K tokens
Released
May 13, 2024

GPT 4o overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by GPT 4o through AI/ML API

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.

GPT 4o API pricing

GPT 4o pricing in US dollars
UsagePriceUnit
Input$2.51M tokens
Output$101M tokens
Cached input$1.251M 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.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GPT 4o$2.5$10
GPT-6 Luna$0.1$0.5
GPT-6.1 Terra$1$5
GPT-6.1 Sol$2$10
GPT-6.1 Terra Pro$2.12$10.58

How to use the GPT 4o API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'

Related articles

All posts

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.

Start building with GPT 4o

GPT 4o API

openai/gpt-4o

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'