Text model
Llama Guard 4 12B
meta-llama/llama-guard-4-12b
meta-llama/llama-guard-4-12b is a language model from Meta you can call on the OceanToken API at $0.18 per 1M input tokens and $0.18 per 1M output tokens, with a 164K-token context window and up to 16K output tokens; it supports image input.
At a glance
| Model ID | meta-llama/llama-guard-4-12b |
|---|---|
| Type | Text |
| Publisher | Meta |
| Context window | 163,840 tokens |
| Max output | 16,384 tokens |
| Input price | $0.18 per 1M tokens |
| Output price | $0.18 per 1M tokens |
| Capabilities | image input |
| Endpoint | /v1/chat/completions, /v1/responses |
| API shape | OpenAI-compatible |
| In the catalog since | 2025-04-30 |
Call it
Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.
curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "meta-llama/llama-guard-4-12b", "messages": [{"role": "user", "content": "Hello"}]}'
Compared with similar models
Text models on OceanToken closest to meta-llama/llama-guard-4-12b in price. Every price is what you pay, in US dollars, with no platform fee on top.
| Model | Publisher | Context | Price (per 1M tokens) |
|---|---|---|---|
| Llama Guard 4 12B | Meta | 163,840 | $0.18 / $0.18 |
Ling-3.0 Flash VLinclusionai/ling-3.0-flash-vl | inclusionAI | 131K | $0.06 / $0.18 |
GPT Oss 20Bopenai/gpt-oss-20b | OpenAI | 131K | $0.04 / $0.18 |
Laguna S 2.1poolside/laguna-s-2.1 | Poolside | 1.05M | $0.09 / $0.18 |
More from Meta
- Llama 3.1 70B Instruct
meta-llama/llama-3.1-70b-instruct - Llama 3.1 8B Instruct
meta-llama/llama-3.1-8b-instruct - Llama 3.2 1B Instruct
meta-llama/llama-3.2-1b-instruct - Llama 3.2 3B Instruct
meta-llama/llama-3.2-3b-instruct - Llama 3.3 70B Instruct
meta-llama/llama-3.3-70b-instruct - Llama 4 Maverick
meta-llama/llama-4-maverick - Llama 4 Scout
meta-llama/llama-4-scout
Use it
Create an account All models and prices
Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.