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-08-06)
openai/gpt-4o-2024-08-06Try OpenAI: GPT-4o (2024-08-06) now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
OpenAI: GPT-4o (2024-08-06) at a glance
- Input price is 456% 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.03.
About OpenAI: GPT-4o (2024-08-06)
GPT-4o (2024-08-06) is a text generation model from OpenAI, identified on api14 as openai/gpt-4o-2024-08-06. It is the version of GPT-4o released on 2024-08-06, and OpenAI positions it as an update that improves structured outputs, including the ability to supply a JSON schema in the response_format field. The "o" in the name stands for "omni", reflecting a model designed to handle more than plain text.
The model accepts text, images and files as input, and produces text as output. It has a context window of 128,000 tokens and can generate up to 16,384 output tokens per request. Its knowledge cutoff is 2023-10-31, so anything after that date is outside what it learned during training. Because input can include images and files alongside text, it can work with mixed prompts rather than text alone.
Those capabilities point to a few practical uses. Structured outputs with a supplied JSON schema suit extraction and data shaping tasks, where you want the model to return fields you can parse directly. Tool calling fits agent style workflows that need to invoke functions or external services. Image and file input supports tasks such as reading a screenshot, a diagram or a document and answering questions about it. The 128,000 token context window allows long inputs, such as lengthy documents or extended conversations, to be handled in a single request.
You call the model through api14's OpenAI-compatible API using the model id openai/gpt-4o-2024-08-06. 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. Because the interface is OpenAI-compatible, existing OpenAI SDK code generally works with a change of base URL and model id.
A few limits are worth noting when choosing. Output is text only, so if you need generated images or audio, this model is not the fit. The knowledge cutoff of 2023-10-31 means recent events are not covered unless you supply the information in the prompt or use web_search_options. If your workload is small and simple, a lighter model may be sufficient, while this one is aimed at tasks that benefit from its context window, multimodal input and structured output support.
How to call the OpenAI: GPT-4o (2024-08-06) API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-4o-2024-08-06".
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-08-06",
"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_optionsSpecifications
- Context length
- 128,000
- Max output
- 16,384
- Input
- text, image, file
- Output
- text
- Knowledge cutoff
- 2023-10-31
Requests on api14 · last 7 days
OpenAI: GPT-4o (2024-08-06): frequently asked questions
- How much does the OpenAI: GPT-4o (2024-08-06) API cost?
- OpenAI: GPT-4o (2024-08-06) costs Input $8.75 / 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-08-06)?
- OpenAI: GPT-4o (2024-08-06) reads up to 128,000 tokens per request: prompt, history and documents together. It writes up to 16,384 output tokens per response.
- What can OpenAI: GPT-4o (2024-08-06) do?
- OpenAI: GPT-4o (2024-08-06) accepts text, image, file and returns text. It supports tool calling, structured JSON output.
- How do I call OpenAI: GPT-4o (2024-08-06) from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-4o-2024-08-06". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to OpenAI: GPT-4o (2024-08-06)?
- Comparable Text models at a similar price: Cohere: Command A, OpenAI: GPT-4o (2024-11-20), Cohere: Command R+ (08-2024). Each runs through the same API key, so switching is one string.
OpenAI: GPT-4o (2024-08-06) community
New topicThis community has no topics yet. Open the first one about OpenAI: GPT-4o (2024-08-06).