LiteLLMLiteLLM/ MODELS

Llama3 8B Instruct API Pricing

By Meta · 7 providersvertex_ai/meta/llama3-8b-instruct-maas
Price
Free
Context
32K tokens
Max output
32K tokens

As of November 24, 2026, Llama3 8B Instruct is free to use from Google Vertex AI, the lowest of 7 providers. It has a 32,000-token context window and returns up to 32,000 tokens per response.

Prices updated Checked

Llama3 8B Instruct pricing by provider

17 listings across 7 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Llama3 8B Instruct prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
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
Replicatereplicate/meta/meta-llama-3-8b-instruct$0.05$0.25–
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

Input: text, pdf. Output: text.

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 $LITELLM_API_KEY" \
  -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 7 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 7 providers through LiteLLM: Google Vertex AI, Amazon Bedrock, Anyscale, DeepInfra, GradientAI, Novita AI and Replicate. 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. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Google Vertex AI, Amazon Bedrock, Anyscale, DeepInfra, GradientAI, Replicate.

Provider pages: Google Vertex AI, Amazon Bedrock, Anyscale, DeepInfra, GradientAI, Novita AI, Replicate.