OpenAI: GPT-4o (2024-05-13)

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

Created May 13, 2024128,000 context
Starting at $5/M input tokensStarting at $15/M output tokens$7.225/K input imgs

GPT-4o ("o" for "omni") is OpenAI's latest AI model, supporting both text and image inputs with text outputs. It maintains the intelligence level of GPT-4 Turbo while being twice as fast and 50% more cost-effective. GPT-4o also offers improved performance in processing non-English languages and enhanced visual capabilities.

For benchmarking against other models, it was briefly called "im-also-a-good-gpt2-chatbot"

#multimodal

Providers for GPT-4o (2024-05-13)

OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

Context
128K
Max Output
4K
Input
$5
Output
$15
Context
128K
Max Output
4K
Input
$5
Output
$15

Apps using GPT-4o (2024-05-13)

Top public apps this week using this model

1.
Favicon for https://novelcrafter.com/
novelcrafter
Your personal novel writing toolbox. Plan, write and tinker with your story.
96.1Mtokens
2.
Favicon for https://sillytavern.app/
SillyTavern
LLM frontend for power users
2.37Mtokens
3.
Favicon for https://elliotxie.github.io/CASSIA
744Ktokens
4.
Favicon for https://cherry-ai.com/
287Ktokens
5.
Favicon for https://art-from-the-machine.github.io/
Mantella
Skyrim & Fallout 4 mod, naturally speak to NPCs
191Ktokens
6.
Favicon for https://cline.bot/
Cline
Autonomous coding agent right in your IDE
149Ktokens
7.
Favicon for https://openwebui.com/
Open WebUI
Extensible, self-hosted AI interface
142Ktokens
8.
Favicon for https://chub.ai/
Chub AI
GenAI for everyone
126Ktokens
9.
Favicon for https://chatwise.app/
ChatWise
Chatbot with artifacts and search
38Ktokens
10.
Favicon for https://apipie.ai/
36Ktokens
11.
Favicon for https://your-app-name.com/
28Ktokens
12.
Favicon for https://litellm.ai/
liteLLM
Open-source library to simplify LLM calls
27Ktokens
13.
Favicon for https://risuai.xyz/
RisuAI
Browse characters, choose models, and chat
27Ktokens
14.
Favicon for https://benchable.ai/
18Ktokens
15.
Favicon for https://big-agi.com/
big-AGI
Precision AI for professionals
11Ktokens
16.
Favicon for https://ai-english-master.vercel.app/
7Ktokens
17.
Favicon for https://openrouter.ai/chat
OpenRouter: Chatroom
Chat with multiple LLMs at once
6Ktokens
18.
Favicon for https://dwemerdynamics.com/
5Ktokens
20.
Favicon for https://af33227689434740ab452dbb5d10595f-a0933eb8b1e448259f5fcbc46.fly.dev/
3Ktokens

Recent activity on GPT-4o (2024-05-13)

Tokens processed per day

Apr 4Apr 10Apr 16Apr 22Apr 28May 4May 10May 16May 22May 28Jun 3Jun 9Jun 15Jun 21Jun 27Jul 3050M100M150M200M

Versions by Token Share

Uptime stats for GPT-4o (2024-05-13)

Uptime stats for GPT-4o (2024-05-13) across all providers

Sample code and API for GPT-4o (2024-05-13)

OpenRouter normalizes requests and responses across providers for you.

OpenRouter provides an OpenAI-compatible completion API to 400+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.

from openai import OpenAI

client = OpenAI(
  base_url="https://openrouter.ai/api/v1",
  api_key="<OPENROUTER_API_KEY>",
)

completion = client.chat.completions.create(
  extra_headers={
    "HTTP-Referer": "<YOUR_SITE_URL>", # Optional. Site URL for rankings on openrouter.ai.
    "X-Title": "<YOUR_SITE_NAME>", # Optional. Site title for rankings on openrouter.ai.
  },
  extra_body={},
  model="openai/gpt-4o-2024-05-13",
  messages=[
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "What is in this image?"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
          }
        }
      ]
    }
  ]
)
print(completion.choices[0].message.content)

Using third-party SDKs

For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.

See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.

More models from OpenAI

    GPT-4o (2024-05-13) - API, Providers, Stats | OpenRouter