Comprehensive side-by-side LLM comparison
GPT-4 leads with 9.5% higher average benchmark score. Llama 3.1 8B Instruct offers 196.6K more tokens in context window than GPT-4. Llama 3.1 8B Instruct is $89.94 cheaper per million tokens. GPT-4 supports multimodal inputs. Llama 3.1 8B Instruct is available on 9 providers. Overall, GPT-4 is the stronger choice for coding tasks.
OpenAI
GPT-4 was created as a large multimodal model capable of accepting image and text inputs while producing text outputs. Developed to exhibit human-level performance on various professional and academic benchmarks, it marked a significant advancement in reliability, creativity, and handling of nuanced instructions compared to its predecessors.
Meta
Llama 3.1 8B was developed as an efficient open-source model, designed to bring capable instruction-following to applications with limited computational resources. Built with 8 billion parameters, it provides a lightweight option for developers seeking reliable performance without the overhead of larger models.
1 year newer

GPT-4
OpenAI
2023-06-13

Llama 3.1 8B Instruct
Meta
2024-07-23
Cost per million tokens (USD)

GPT-4

Llama 3.1 8B Instruct
Context window and performance specifications
Average performance across 4 common benchmarks

GPT-4

Llama 3.1 8B Instruct
GPT-4
2022-12-31
Llama 3.1 8B Instruct
2023-12-31
Available providers and their performance metrics

GPT-4
Azure
OpenAI


GPT-4

Llama 3.1 8B Instruct

GPT-4

Llama 3.1 8B Instruct
Llama 3.1 8B Instruct
Bedrock
Cerebras
DeepInfra
Fireworks
Groq
Hyperbolic
Lambda
Sambanova
Together