openaiVision

OpenAI: GPT-4o (2024-08-06)

The 2024-08-06 version of GPT-4o offers improved performance in structured outputs, with the ability to supply a JSON schema in the respone_format. Read more [here](https://openai.com/index/introducing-structured-outputs-in-the-api/). GPT-4o ("o" for "omni") is...

Context
128k tokens
Input / 1M tokens
$2.50
Output / 1M tokens
$10
Benchmark

Pricing

Input tokens$2.50 per 1M tokens
Output tokens$10 per 1M tokens
Cache read$1.25 per 1M tokens

Technical details

Model IDopenai/gpt-4o-2024-08-06
Context window128k tokens
Input modalitiestext, image, file, pdf
Output modalitiestext
TokenizerGPT
Max output tokens16,384

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'openai/gpt-4o-2024-08-06',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use OpenAI: GPT-4o (2024-08-06)?

Get an API key and start making requests in minutes.

Get an API key