Find a model

Browse the full catalog →

Meta Llama 3.1 8B Instruct

Open-weights chat model from Meta. Bring your own provider key and route it with every other model in the catalog.

Context128K
Overview

About Meta Llama 3.1 8B Instruct

Meta Llama 3.1 8B Instruct is an open-weights chat model published by Meta, with a 128,000-token context window.

Model ID
meta-llama/Meta-Llama-3.1-8B-Instruct
Publisher
Meta
Modes
chat
Quickstart

Set it up with your agent

Paste this into Claude Code, Cursor or any coding agent.

Use Meta Llama 3.1 8B Instruct through TrustedRouter in this project.

1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
   https://api-aws.trustedrouter.com/v1 and read the key from
   TRUSTEDROUTER_API_KEY.
3. Set the model to meta-llama/Meta-Llama-3.1-8B-Instruct.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api-aws.trustedrouter.com/v1",
    api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
    model="meta-llama/Meta-Llama-3.1-8B-Instruct",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api-aws.trustedrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'
Your agent will need an API key.
0 providers

Providers

No Credits provider route is currently published for this model. You can still see how we check privacy claims and the live speed leaderboard.

FAQ

Questions

What model ID should I use for Meta Llama 3.1 8B Instruct?

Use meta-llama/Meta-Llama-3.1-8B-Instruct as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.

Do you log my prompts or outputs?

No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.

Which providers serve Meta Llama 3.1 8B Instruct?

TrustedRouter currently lists no Credits provider route for Meta Llama 3.1 8B Instruct. Provider availability and routing eligibility can change as catalog and health data update.

How much does Meta Llama 3.1 8B Instruct cost through TrustedRouter?

TrustedRouter currently publishes no Credits provider route for Meta Llama 3.1 8B Instruct, so no public Credits price is available.

How do I require zero data retention for Meta Llama 3.1 8B Instruct?

Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.

Compare

Meta Llama 3.1 8B Instruct vs other models

Start building with Meta Llama 3.1 8B Instruct.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

New to TrustedRouter?

By continuing you agree to the terms of service and privacy policy.