Llama Guard 3 8B
meta-llama/llama-guard-3-8b
Created Feb 12, 2025131,072 context
$0.02/M input tokens$0.06/M output tokens
Providers for Llama Guard 3 8B
OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
Context 131K Max Output 131K Input $0.02 Output $0.06 | |
US bf16 | Context 131K Max Output 131K Input $0.055 Output $0.055 |
US | Context 8K Max Output 8K Input $0.20 Output $0.20 |
US | Context 8K Max Output 8K Input $0.20 Output $0.20 |
Context 16K Max Output 4K Input $0.30 Output $0.30 | |
Context 0 Max Output 0 Input $0.48 Output $0.03 |
1.
CompliantAI
new
1.47Mtokens
2.
SillyTavern
LLM frontend for power users
514Ktokens
3.
Cline
Autonomous coding agent right in your IDE
351Ktokens
4.
Mantella
Skyrim & Fallout 4 mod, naturally speak to NPCs
104Ktokens
5.
OpenRouter: Chatroom
Chat with multiple LLMs at once
97Ktokens
6.
big-AGI
Precision AI for professionals
45Ktokens
7.
MUME AI
new
36Ktokens
8.
APIpie.ai
new
33Ktokens
9.
Open WebUI
Extensible, self-hosted AI interface
27Ktokens
10.
liteLLM
Open-source library to simplify LLM calls
11Ktokens
11.
snapback-luo
new
11Ktokens
12.
Sage Cooking (production)
new
6Ktokens
13.
Agnaistic
A "bring your own AI" chat service
3Ktokens
14.
Voices of the Court
new
2Ktokens
15.
JobPartiel AI Generation Assistant
new
953tokens
16.
Cherry Studio
new
416tokens
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it.
Learn more about our load balancing and customization options.
Sample code and API for Llama Guard 3 8B
OpenRouter normalizes requests and responses across providers for you.
OpenRouter provides an OpenAI-compatible completion API to 300+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.
In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="<OPENROUTER_API_KEY>",
)
completion = client.chat.completions.create(
extra_headers={
"HTTP-Referer": "<YOUR_SITE_URL>", # Optional. Site URL for rankings on openrouter.ai.
"X-Title": "<YOUR_SITE_NAME>", # Optional. Site title for rankings on openrouter.ai.
},
extra_body={},
model="meta-llama/llama-guard-3-8b",
messages=[
{
"role": "user",
"content": "What is the meaning of life?"
}
]
)
print(completion.choices[0].message.content)
Using third-party SDKs
For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.
See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.