Llama3 8B Instruct API Pricing
As of October 10, 2026, Llama3 8B Instruct is free to use from Google Vertex AI, the lowest of 8 providers. It has a 32,000-token context window and returns up to 32,000 tokens per response.
- Price
- Free
- Context window
- 32,000 tokens
- Max output
- 32,000 tokens
- Providers
- 8
- Added to LiteLLM
- May 2024
Llama3 8B Instruct pricing by provider
17 listings across 8 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Google Vertex AI | vertex_ai/meta/llama3-8b-instruct-maas | $0 | $0 | 32K |
| Amazon Bedrock | meta.llama3-8b-instruct-v1:0 | $0.30 | $0.60 | 8K |
| Anyscale | anyscale/meta-llama/Meta-Llama-3-8B-Instruct | $0.15 | $0.15 | 8K |
| DeepInfra † | deepinfra/meta-llama/Meta-Llama-3-8B-Instruct | $0.03 | $0.06 | 8K |
| GradientAI | gradient_ai/llama3-8b-instruct | $0.20 | $0.20 | 8K |
| Novita AI | novita/meta-llama/llama-3-8b-instruct | $0.04 | $0.04 | 8K |
| Replicate | replicate/meta/llama-3-8b-instruct | $0.05 | $0.25 | 8K |
| Together AI | together_ai/meta-llama/Meta-Llama-3-8B-Instruct | $0.20 | $0.20 | 8K |
| Amazon Bedrockap-south-1 | bedrock/ap-south-1/meta.llama3-8b-instruct-v1:0 | $0.36 | $0.72 | 8K |
| Amazon Bedrockca-central-1 | bedrock/ca-central-1/meta.llama3-8b-instruct-v1:0 | $0.35 | $0.69 | 8K |
| Amazon Bedrockeu-west-1 | bedrock/eu-west-1/meta.llama3-8b-instruct-v1:0 | $0.32 | $0.65 | 8K |
| Amazon Bedrockeu-west-2 | bedrock/eu-west-2/meta.llama3-8b-instruct-v1:0 | $0.39 | $0.78 | 8K |
| Amazon Bedrocksa-east-1 | bedrock/sa-east-1/meta.llama3-8b-instruct-v1:0 | $0.50 | $1.01 | 8K |
| Amazon Bedrockus-east-1 | bedrock/us-east-1/meta.llama3-8b-instruct-v1:0 | $0.30 | $0.60 | 8K |
| Amazon Bedrockus-gov-east-1 | bedrock/us-gov-east-1/meta.llama3-8b-instruct-v1:0 | $0.30 | $2.65 | 8K |
| Amazon Bedrockus-gov-west-1 | bedrock/us-gov-west-1/meta.llama3-8b-instruct-v1:0 | $0.30 | $0.60 | 8K |
| Amazon Bedrockus-west-1 | bedrock/us-west-1/meta.llama3-8b-instruct-v1:0 | $0.30 | $0.60 | 8K |
† This price differs from the other providers by more than 8x and is left out of the headline price. Check the provider's pricing page.
What Llama3 8B Instruct costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Google Vertex AI | $0 |
| Novita AI | $0.10 |
| Replicate | $0.225 |
| Anyscale | $0.375 |
Llama3 8B Instruct features
- Function calling
- Structured output
- PDF input
Use Llama3 8B Instruct with LiteLLM
Call Llama3 8B Instruct through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="vertex_ai/meta/llama3-8b-instruct-maas",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: llama3-8b-instruct
litellm_params:
model: vertex_ai/meta/llama3-8b-instruct-maas
vertex_project: os.environ/VERTEX_PROJECT
vertex_location: os.environ/VERTEX_LOCATIONcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "llama3-8b-instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}'Llama3 8B Instruct FAQ
How much does Llama3 8B Instruct cost?
Llama3 8B Instruct is free to use from Google Vertex AI, the lowest of 8 providers.
What is the context window of Llama3 8B Instruct?
Llama3 8B Instruct has a 32,000-token context window and returns up to 32,000 tokens per response.
Which providers offer Llama3 8B Instruct?
Llama3 8B Instruct is available from 8 providers through LiteLLM: Google Vertex AI, Amazon Bedrock, Anyscale, DeepInfra, GradientAI, Novita AI, Replicate and Together AI. The lowest price is on Google Vertex AI.
How do I call Llama3 8B Instruct with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="vertex_ai/meta/llama3-8b-instruct-maas", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does Llama3 8B Instruct support?
Llama3 8B Instruct supports function calling, structured output and PDF input.
When did LiteLLM add Llama3 8B Instruct?
Llama3 8B Instruct was added to LiteLLM's model price file in May 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:
- cloud.google.com/vertex-ai/generative-ai/pricing#partner-models
- docs.anyscale.com/preview/endpoints/text-generation/supported-models/meta-llama-Meta-Llama-3-8B-Instruct
- api.together.ai/v1/models
LiteLLM docs: Google Vertex AI, Amazon Bedrock, DeepInfra, GradientAI, Replicate, Together AI.
Provider pages: Google Vertex AI, Amazon Bedrock, Anyscale, DeepInfra, GradientAI, Novita AI, Replicate, Together AI.
