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 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
Context window
This model accepts 128K tokens in one request (~96K words of text).
What fits in one request
- FitsShort documentAbout 1,500 words of text
- FitsLong documentAbout 37K words of text
- Won't fitSmall codebaseAbout 150K words of text
- Won't fitFull novelAbout 375K words of text
Specifications
Context size, pricing, and release info in one place.
- Context window
- 128,000 tokens (128K)
- Max output tokens
- 16,384 tokens (16K)
- Speed tier
- balanced
- Provider
- Openai
- Model family
- GPT-4o
- Release date
- Aug 2024
- Input cost
- $2.75/M / 1M tokens
- Output cost
- $11.00/M / 1M tokens
- Cached input
- $1.38/M / 1M tokens
Capabilities
See which features this model supports, such as vision, tools, and streaming.
- Vision
- Accepts image inputs alongside text
- Supported
- Tool use
- Can call external tools and APIs
- Supported
- Function calling
- Structured function call interface
- Supported
- Web search
- Can browse the web during a request
- Supported
- Streaming
- Returns tokens as they are generated
- Supported
- Batch API
- Process many requests asynchronously
- Supported
- Prompt caching
- Reuse repeated prompt prefixes cheaply
- Supported
- Extended thinking
- Shows its chain-of-thought reasoning
- Not supported
Best for
Jump to a guide or ranking that matches each workload.
Compare GPT-4o (2024-08-06)
Open a side-by-side comparison with one click.
- GPT-4o (2024-08-06) vs Amazon Titan Text Express
GPT-4o (2024-08-06) has 204% larger context window
- GPT-4o (2024-08-06) vs Amazon Titan Text Lite
GPT-4o (2024-08-06) has 204% larger context window
- GPT-4o (2024-08-06) vs Amazon Titan Text Premier
GPT-4o (2024-08-06) has 204% larger context window
- GPT-4o (2024-08-06) vs Claude Instant
GPT-4o (2024-08-06) has 28% larger context window
- GPT-4o (2024-08-06) vs Anthropic Claude
GPT-4o (2024-08-06) has 28% larger context window
- GPT-4o (2024-08-06) vs Codellama 34b Instruct
GPT-4o (2024-08-06) has 3025% larger context window
Frequently asked questions
Short answers about context size and how this model behaves.
More from Openai
Other models by Openai in our catalog.
Powered by Mem0
Use a smaller model.
Get better results.
Mem0 gives your AI long-term memory so you stop re-sending context on every call. That means you can use a smaller, faster, cheaper model — and still get better answers.
Example: a multi-turn chat session
80% less to send — works with any model