openaiVision

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

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...

Context
128k tokens
Input / 1M tokens
$5
Output / 1M tokens
$15
Benchmark

Pricing

Input tokens$5 per 1M tokens
Output tokens$15 per 1M tokens

Technical details

Model IDopenai/gpt-4o-2024-05-13
Context window128k tokens
Input modalitiestext, image, file, pdf
Output modalitiestext
TokenizerGPT
Max output tokens4,096

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-05-13',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use OpenAI: GPT-4o (2024-05-13)?

Get an API key and start making requests in minutes.

Get an API key