GPT 4o 2024‑05‑13 API

Multimodal AI model by OpenAI enhancing human-computer interaction.

Modalities
Image, TextText
In / Out price
$5.29/$15.87per 1M
Context window
125K tokens
Released
May 13, 2024

GPT 4o 2024‑05‑13 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 2024‑05‑13 through AI/ML API

GPT 4o 2024‑05‑13 specs

Model ID
openai/gpt-4o-2024-05-13
Developer
OpenAI
Context window
128,000 tokens
Max output
16,384 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Multimodal AI model by OpenAI enhancing human-computer interaction.

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

  • Real-time voice agents: emotionally responsive audio-chat interfaces
  • Multimodal apps: process images, videos, speech in one session
  • Structured data APIs: generate JSON‑formatted outputs for automation
  • Global & vision understanding: better non-English and visual processing
  • Cost-conscious multimodal workflows: high throughput at lower expense

Capabilities

  • Function calling
  • Streaming
  • Structured outputs

GPT 4o 2024‑05‑13 benchmarks by Artificial Analysis

See how GPT 4o 2024‑05‑13 compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

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 2024‑05‑13 API pricing

GPT 4o 2024‑05‑13 pricing in US dollars
UsagePriceUnit
Input$5.291M tokens
Output$15.871M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GPT 4o 2024‑05‑13 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 2024‑05‑13$5.29$15.87
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 2024‑05‑13 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-2024-05-13",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GPT 4o 2024‑05‑13 FAQ

What is the context window of GPT 4o 2024‑05‑13?

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

What inputs and outputs does GPT 4o 2024‑05‑13 support?

GPT 4o 2024‑05‑13 takes image, text as input and returns text.

What is the model ID for GPT 4o 2024‑05‑13?

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

When was GPT 4o 2024‑05‑13 released?

GPT 4o 2024‑05‑13 became available on August 7, 2025.

How much does GPT 4o 2024‑05‑13 cost?

GPT 4o 2024‑05‑13 costs $5.29 input and $15.87 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GPT 4o 2024‑05‑13 support streaming?

Yes, GPT 4o 2024‑05‑13 can stream responses as they are generated.

Can GPT 4o 2024‑05‑13 read images?

Yes, GPT 4o 2024‑05‑13 accepts image input alongside text.

Who created GPT 4o 2024‑05‑13?

GPT 4o 2024‑05‑13 was built by OpenAI.

Does GPT 4o 2024-05-13 support function or tool calling?

Yes, it supports function calling and parallel tool calls, including structured outputs.

Can GPT 4o 2024-05-13 accept file uploads as input?

Yes, it supports file input in addition to text and image inputs.

Start building with GPT 4o 2024‑05‑13

GPT 4o 2024‑05‑13 API

openai/gpt-4o-2024-05-13

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-2024-05-13",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'