Llama 3.1 70B Instruct

Metameta-llama/llama-3.1-70b-instructProviders: 2
Inputi$0.40per 1M tokens
Outputi$0.40per 1M tokens
Contexti128K131,072 tokens
ReleasedJul 23, 2024Max output: 16K

Where it stands

Quality in independent tests against price, next to 135 other models. Up means more capable, left means cheaper.

100110120130140150160170$0.01$0.03$0.1$0.3$1$3$10$30$100Overall indexPrice per million tokens, log scale (3 parts input to 1 part output)↖ Cheaper and smarterLlama 3.1 70B Instruct
Scores: Epoch AI (CC BY 4.0). Prices: OpenRouter. View as a table

About this model

Llama 3.1 70B Instruct is an AI model from Meta, made available through the API on July 23, 2024. It can read up to 131,072 tokens in one request, roughly 246 pages of text, and write up to 16,384 tokens in a single answer.

Through the API it costs $0.40 per million input tokens and $0.40 per million output tokens. Its pricing puts it among the more affordable models we track, which makes it a good fit for high-volume tasks.

It can call tools and functions, so developers can connect it to search, databases or other software. Its weights are openly published (meta-llama/Meta-Llama-3.1-70B-Instruct), so it can also be downloaded and run on your own hardware.

Quality scores

Rankings →
125.9Overall index · #122 of 136
  • GPQA DiamondVery hard multiple-choice questions in biology, physics and chemistry, written by PhD experts. Random guessing scores 25%.44.2%#103 of 116
  • AIME mathCompetition-level math problems in the style of the American Invitational Mathematics Examination. Share solved.3.6%#105 of 112

Benchmark data: Epoch AI, licensed CC BY 4.0

Where to use it

Companies that serve this model through an API: 2. Prices per million tokens, cheapest first.

ProviderInputiOutputiContextiUptime (24 h)i
DeepInfraCheapestfp8
$0.40$0.40128K99.6%
Amazon Bedrock
$0.72$0.72128K100.0%

Availability and prices come from OpenRouter’s public API and are refreshed daily. Uptime is the share of successful requests over the last 24 hours. Some providers run a compressed version of open models (fp8, int4), which is cheaper but can be slightly less accurate.

Use it in your code

Call Llama 3.1 70B Instruct through OpenRouter’s OpenAI-compatible API: create a key on openrouter.ai, then run one of these examples.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "meta-llama/llama-3.1-70b-instruct", "messages": [{"role": "user", "content": "Hello! What can you do?"}]}'

The same code works with every model on this site: only the model ID changes. Many labs also offer their own API and SDK.

What it costs in practice

  • 1,000 chat replies
    ≈ 500 tokens in, 300 out each
    $0.32
  • Summarise a 100-page document
    ≈ 50,000 tokens in, 1,000 out
    $0.02
  • An app with 10,000 requests a day for a month
    ≈ 1,000 tokens in, 400 out each
    $168

Cost calculator →

Similar-priced alternatives

ModelInputiOutputiContexti
Devstral 2 2512Mistral AI
$0.40$2256KCompare with ⇄
$0.40$4128KCompare with ⇄
MiniMax M1MiniMax
$0.40$2.201MCompare with ⇄
$0.40$1.601MCompare with ⇄
$0.42$1.25123KCompare with ⇄
GLM 4.6Z.ai (Zhipu)
$0.43$1.75200KCompare with ⇄

News about Meta

See all →

Frequently asked questions

How much does Llama 3.1 70B Instruct cost?
Llama 3.1 70B Instruct costs $0.40 per million input tokens and $0.40 per million output tokens through the API. For example, 1,000 chat replies of about 500 tokens in and 300 out cost around $0.32.
What is the context window of Llama 3.1 70B Instruct?
Llama 3.1 70B Instruct can read up to 131,072 tokens in one request, about 246 pages of text. It can write up to 16,384 tokens in a single answer.
Is Llama 3.1 70B Instruct open source?
Yes. Its weights are published (meta-llama/Meta-Llama-3.1-70B-Instruct), so you can download it and run it on your own hardware, or use it through one of 2 API providers.
Who makes Llama 3.1 70B Instruct?
Llama 3.1 70B Instruct is made by Meta. It became available through the API on July 23, 2024.
How good is Llama 3.1 70B Instruct?
Llama 3.1 70B Instruct has an overall index of 125.9 in Epoch AI’s independent tests, ranking #122 of 136 models we track.
Can Llama 3.1 70B Instruct read images?
No. Llama 3.1 70B Instruct only accepts text as input.
What are the alternatives to Llama 3.1 70B Instruct?
Models with a similar price from other companies include Devstral 2 2512, Qwen3 VL 235B A22B Thinking and MiniMax M1. You can compare them side by side on this page.