We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

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

openai/gpt-4o-2024-05-13
TextInput: text · image · fileTools128KAdded May 13, 2024

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

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

OpenAI: GPT-4o (2024-05-13) at a glance

  • Input price is 1011% higher than the median of 434 Text models.
  • Context window of 128,000 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.04.

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

GPT-4o (2024-05-13) is a text model from OpenAI. The "o" stands for "omni", and this release is dated 13 May 2024. It is built to accept both text and image inputs while returning text outputs, and OpenAI describes it as maintaining the intelligence level of GPT-4 Turbo while being faster. If you are choosing a general purpose OpenAI model for a new integration, this is the version identified by the model id openai/gpt-4o-2024-05-13.

On inputs, the model accepts text, images and files, and it produces text only. The context window is 128,000 tokens, so long documents, large code files or extended conversations can be supplied in a single request. The maximum output is 4,096 tokens, which matters when you plan long generations, since the reply will be truncated at that point regardless of how much room remains in the context. Its knowledge cutoff is 31 October 2023, so anything after that date has to come from the prompt, from tools or from a web search rather than from the model's own training.

Those capabilities point to a few practical uses. Because it reads images as well as text, it suits tasks such as extracting structured data from screenshots, scanned pages or diagrams, describing visual content, or answering questions about a chart alongside a written brief. The large context window makes it workable for document question answering, summarising long reports, and reviewing sizable codebases in one pass. Support for tools and structured outputs makes it a reasonable choice for agent style workflows and for pipelines where the model must return JSON that another service parses.

Through api14 you call it with the model id openai/gpt-4o-2024-05-13 using the OpenAI-compatible API, so existing OpenAI SDKs and clients work with a change of base URL and key. The supported request parameters are frequency_penalty, logit_bias, logprobs, max_completion_tokens, max_tokens, prediction, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_logprobs, top_p and web_search_options. Tools and tool_choice cover function calling, response_format and structured_outputs cover constrained output shapes, and seed supports more reproducible sampling.

Two limits are worth planning around. The 4,096 token output ceiling is modest for long form writing, so tasks that need very lengthy single responses may suit another model better, and the October 2023 knowledge cutoff means time sensitive questions should be handled with tools or web search rather than relying on the model's memory.

How to call the OpenAI: GPT-4o (2024-05-13) API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-4o-2024-05-13".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "openai/gpt-4o-2024-05-13",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltylogit_biaslogprobsmax_completion_tokensmax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_pweb_search_options

Specifications

Context length
128,000
Max output
4,096
Input
text, image, file
Output
text
Knowledge cutoff
2023-10-31

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

OpenAI: GPT-4o (2024-05-13): frequently asked questions

How much does the OpenAI: GPT-4o (2024-05-13) API cost?
OpenAI: GPT-4o (2024-05-13) costs Input $17.50 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of OpenAI: GPT-4o (2024-05-13)?
OpenAI: GPT-4o (2024-05-13) reads up to 128,000 tokens per request: prompt, history and documents together. It writes up to 4,096 output tokens per response.
What can OpenAI: GPT-4o (2024-05-13) do?
OpenAI: GPT-4o (2024-05-13) accepts text, image, file and returns text. It supports tool calling, structured JSON output.
How do I call OpenAI: GPT-4o (2024-05-13) from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-4o-2024-05-13". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: GPT-4o (2024-05-13)?
Comparable Text models at a similar price: OpenAI: GPT-4 Turbo (batch), Fireworks: Ember-1, Anthropic: Claude Sonnet 4.6. Each runs through the same API key, so switching is one string.

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

New topic

This community has no topics yet. Open the first one about OpenAI: GPT-4o (2024-05-13).