Skip to content

Model detail

GPT-4o 20240513

Provided by OpenAI
Pay-as-you-go

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](/models/openai/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"](https://twitter.com/LiamFedus/status/1790064963966370209) #multimodal

Model specs

Model ID
gpt-4o-2024-05-13
Context length
128K
Max output
4.096K
I/O modalities
Released
2024-05

02

API endpoints

One MixRoute gateway, OpenAI-compatible

  • OpenAI-compatible /v1/chat/completions POST

03

Pricing

Flat rate, unit: /1M Tokens

Input

$5.0000 /1M Tokens

Completion

$15.0000 /1M Tokens

05

Selection summary

Quickly judge whether it fits your workload

What is this model good for?

Fast multimodal text and image processing

Use GPT-4o for tasks requiring both text and image inputs. It is twice as fast and 50% more cost-effective than GPT-4 Turbo, with improved non-English language processing and visual capabilities.

What should you check before using it?

Test multimodal inputs and non-English performance

If your workload includes image inputs or non-English content, test these capabilities specifically. GPT-4o offers significant improvements in these areas compared to previous models. Knowledge cutoff: 2023-10-01.

Why use it through MixRoute?

Swap the base URL, keep the GPT-4o client

MixRoute serves GPT-4o on the OpenAI-compatible endpoint /v1/chat/completions; point your existing client at https://api.mixroute.ai/v1 with the model ID gpt-4o-2024-05-13 and re-run your integration tests.

07

Capabilities & compatibility

Unconfirmed capabilities stay "Unknown," no guesses

Available:

Tool calling

GPT-4o supports function and tool calls.

EX Send a tools definition; the response returns tool_calls to execute and feed results back.
Available:

Structured output

GPT-4o can produce JSON-formatted output on demand.

EX response_format: { type: "json_schema" } forces valid JSON output.
Available:

Streaming

GPT-4o supports streamed responses.

EX stream: true streams tokens incrementally, so chat UIs render as they arrive.
Available:

Prompt caching

GPT-4o supports prompt caching under supported routing conditions.

EX Keep the system prompt and tool definitions at the start of the request; repeated prefixes are automatically billed at the cache-read rate.
Available:

Vision input

GPT-4o can process image inputs alongside text.

EX Pass a base64-encoded image in a image_url content part alongside text messages.
Available:

OpenAI SDK

Call GPT-4o through MixRoute's OpenAI-compatible endpoint.

EX Change base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.

08

Token cost estimator

Live estimate from this page's pricing, not an actual bill

This model has no cache-read price; caching is not counted

09

FAQ

gpt-4o-2024-05-13 (“omni”) is OpenAI’s multimodal model supporting both text and image inputs with text outputs. It is twice as fast and 50% more cost-effective than GPT-4 Turbo, with improved non-English language processing and enhanced visual capabilities.

One endpoint, a testable decision

Test this model and alternate routes with the same request format

Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.