LiteLLMModels

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.

By MetaModel ID vertex_ai/meta/llama3-8b-instruct-maasPrices updated Checked
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.

ProviderModel name in LiteLLMInputOutputContext
Google Vertex AIvertex_ai/meta/llama3-8b-instruct-maas$0$032K
Amazon Bedrockmeta.llama3-8b-instruct-v1:0$0.30$0.608K
Anyscaleanyscale/meta-llama/Meta-Llama-3-8B-Instruct$0.15$0.158K
DeepInfra †deepinfra/meta-llama/Meta-Llama-3-8B-Instruct$0.03$0.068K
GradientAIgradient_ai/llama3-8b-instruct$0.20$0.208K
Novita AInovita/meta-llama/llama-3-8b-instruct$0.04$0.048K
Replicatereplicate/meta/llama-3-8b-instruct$0.05$0.258K
Together AItogether_ai/meta-llama/Meta-Llama-3-8B-Instruct$0.20$0.208K
Amazon Bedrockap-south-1bedrock/ap-south-1/meta.llama3-8b-instruct-v1:0$0.36$0.728K
Amazon Bedrockca-central-1bedrock/ca-central-1/meta.llama3-8b-instruct-v1:0$0.35$0.698K
Amazon Bedrockeu-west-1bedrock/eu-west-1/meta.llama3-8b-instruct-v1:0$0.32$0.658K
Amazon Bedrockeu-west-2bedrock/eu-west-2/meta.llama3-8b-instruct-v1:0$0.39$0.788K
Amazon Bedrocksa-east-1bedrock/sa-east-1/meta.llama3-8b-instruct-v1:0$0.50$1.018K
Amazon Bedrockus-east-1bedrock/us-east-1/meta.llama3-8b-instruct-v1:0$0.30$0.608K
Amazon Bedrockus-gov-east-1bedrock/us-gov-east-1/meta.llama3-8b-instruct-v1:0$0.30$2.658K
Amazon Bedrockus-gov-west-1bedrock/us-gov-west-1/meta.llama3-8b-instruct-v1:0$0.30$0.608K
Amazon Bedrockus-west-1bedrock/us-west-1/meta.llama3-8b-instruct-v1:0$0.30$0.608K

† 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

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.

Python SDK
from litellm import completion

response = completion(
    model="vertex_ai/meta/llama3-8b-instruct-maas",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
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_LOCATION
Call the proxy
curl 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:

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.