TheToolRadar

Llama 3.1 8B Instruct API Cost Calculator

Estimate your monthly API costs for Llama 3.1 8B Instruct from Meta Llama.

Pricing per 1M tokens

Input
$0.0200
Output
$0.0500
16.4K context16.4K max outputFunction callingStreaming

Pricing last verified: Mar 21, 2026

30-Day Price History

Solid line: input price  ·  Dashed line: output price

Estimate Your Costs

What are you building?

Cost Breakdown

Input cost/request$0.000010
Output cost/request$0.000015
Cost per request$0.000025
Daily cost (1,000 requests)$0.0250
Monthly estimate$0.7500
Annual estimate$9.00

Compare with Similar Models

ModelInput/1MOutput/1M
Llama 3 8B Instruct
Meta Llama
$0.0300$0.0400
Llama Guard 3 8B
Meta Llama
$0.0200$0.0600
Llama 3.2 11B Vision Instruct
Meta Llama
$0.0490$0.0490
Llama 3.2 3B Instruct (free)
Meta Llama
$0.00$0.00
Llama 3.3 70B Instruct (free)
Meta Llama
$0.00$0.00

Frequently Asked Questions

How much does Llama 3.1 8B Instruct cost per token?

Llama 3.1 8B Instruct is priced at $0.0200 per 1M input tokens and $0.0500 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.

What is the context window for Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct has a context window of 16.4K tokens (16,384 tokens). The maximum output length is 16.4K tokens.

Does Llama 3.1 8B Instruct support function calling (tool use)?

Yes, Llama 3.1 8B Instruct supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.

How does Llama 3.1 8B Instruct compare to similar models?

Llama 3.1 8B Instruct costs $0.0200 input and $0.0500 output per 1M tokens. Llama 3.3 70B Instruct (free) is less expensive at $0.00 input and $0.00 output per 1M tokens. See the "Compare with Similar Models" table above, or visit the Llama 3.3 70B Instruct (free) page at /tools/cost-calculator/meta-llama/llama-3-3-70b-instruct-free.