Compare to
Overview
Claude 3.5 Sonnet was released over 1 year after GPT-4.
Claude 3.5 Sonnet
GPT-4
Provider
The entity that provides this model.
Anthropic
OpenAI
Input Context Window
The number of tokens supported by the input context window.
200K
tokens
8,192
tokens
Maximum Output Tokens
The number of tokens that can be generated by the model in a single request.
4,096
tokens
8,192
tokens
Release Date
When the model was first released.
2024-06-20
2023-03-14
Knowledge Cutoff
Limit on the knowledge base used by the model.
April 2024
September 2021
Open Source
API Providers
The providers that offer this model. (This is not an exhaustive list.)
Pricing
Claude 3.5 Sonnet is roughly 10.0x cheaper compared to GPT-4 for input tokens and roughly 4.0x cheaper for output tokens.
Claude 3.5 Sonnet
GPT-4
Input
Cost of input data provided to the model.
$3.00
per million tokens
$30.00
per million tokens
Output
Cost of output tokens generated by the model.
$15.00
per million tokens
$60.00
per million tokens
Benchmarks
Compare relevant benchmarks between Claude 3.5 Sonnet and GPT-4.
Claude 3.5 Sonnet
GPT-4
MMLU
Evaluating LLM knowledge acquisition in zero-shot and few-shot settings.
90.4
(5-shot CoT)
86.4
(5-shot)
MMMU
A wide ranging multi-discipline and multimodal benchmark.
68.3
(0-shot CoT)
34.9
HellaSwag
A challenging sentence completion benchmark.
Benchmark not available.
95.3
(10-shot)
GSM8K
Grade-school math problems benchmark.
Benchmark not available.
92.0
(5-shot)
HumanEval
A benchmark to measure functional correctness for synthesizing programs from docstrings.
Benchmark not available.
67.0
(0-shot)
MATH
Benchmark performance on Math problems ranging across 5 levels of difficulty and 7 sub-disciplines.
71.1
(0-shot)
Benchmark not available.
Measure & Improve LLM Product Performance.
Get Started