# Meta: llama3-8b

llama3-8b is an 8B-parameter language model from Meta. It reads and writes text.

- **Model id:** `opencheap/llama3-8b`
- **Price per 1M tokens:** $0.032 input / $0.063 output
- **Cached input:** $0.032 per 1M tokens
- **Context:** 8.1K tokens

## Providers

1 provider. Prices are per 1M tokens. As of 2026-12-04 12:18 UTC.

| Provider | Input price | Cache price | Output price | Context |
| --- | --- | --- | --- | --- |
| Unnamed provider · quantization unknown | $0.032 | $0.032 | $0.063 | 8.1K |

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/llama3-8b#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/llama3-8b`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/llama3-8b", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/llama3-8b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/llama3-8b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About llama3-8b

llama3-8b costs from $0.032 per 1M input tokens and $0.063 per 1M output tokens on OpenCheap. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00038, and 1,000 such requests about $0.38. Prices as of 2026-12-04 12:13 UTC.

One provider serves llama3-8b on OpenCheap today. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 8.1K tokens (8,192), room for roughly 6,100 words of English in one request.

llama3-8b is one of [25 Meta models](https://opencheap.si/models/lab/meta) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the llama3-8b API cost per 1M tokens?

llama3-8b costs from $0.032 per 1M input tokens and $0.063 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 12:13 UTC.

### What does one llama3-8b request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.00038, and 1,000 such requests about $0.38. Every answer reports its own cost in usage.cost.

### Which providers serve llama3-8b?

One provider serves llama3-8b on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of llama3-8b?

Its context window is 8.1K tokens (8,192), room for roughly 6,100 words of English in one request.

### How do I call the llama3-8b API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/llama3-8b. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Meta

- [meta-llama/Llama-3.3-70B-Instruct](https://opencheap.si/models/llama-3.3-70b) (`llama-3.3-70b`): $0.015 / $0.047 per 1M · 131K context
- [Llama 4 Maverick](https://opencheap.si/models/llama-4-maverick) (`llama-4-maverick`): $0.20 / $0.20 per 1M · 1M context
- [Llama 4 Scout](https://opencheap.si/models/llama-4-scout) (`llama-4-scout`): $0.10 / $0.32 per 1M · 328K context
- [Llama 3.1 8B (decentralized)](https://opencheap.si/models/3.1-8b-fp8) (`3.1-8b-fp8`): $0.02 / $0.03 per 1M · 128K context
- [meta-llama/Llama-3.1-70B-Instruct](https://opencheap.si/models/llama-3.1-70b) (`llama-3.1-70b`): $0.42 / $0.42 per 1M · 131K context
- [meta-llama/Llama-3.1-8B-Instruct](https://opencheap.si/models/llama-3.1-8b) (`llama-3.1-8b`): $0.02 / $0.04 per 1M · 131K context
- [meta-llama/Llama-3.2-3B-Instruct](https://opencheap.si/models/llama-3.2-3b) (`llama-3.2-3b`): $0.021 / $0.021 per 1M · 131K context
- [Llama 3.3 70B Instruct abliterated](https://opencheap.si/models/llama-3.3-70b-abliterated) (`llama-3.3-70b-abliterated`): $0.70 / $0.70 per 1M · 32K context

[All 25 Meta models](https://opencheap.si/models/lab/meta)

## Similar models

- [DeepSeek V4.1 Flash](https://opencheap.si/models/deepseek-v4.1-flash): DeepSeek · 1M context · $0.018 / $0.07 per 1M · [Compare with llama3-8b](https://opencheap.si/compare/llama3-8b-vs-deepseek-v4.1-flash)
- [Sao10K/L3-8B-Lunaris-v1](https://opencheap.si/models/l3-8b-lunaris-v1): Other labs · 8.1K context · $0.04 / $0.05 per 1M, 14 % cheaper · [Compare with llama3-8b](https://opencheap.si/compare/llama3-8b-vs-l3-8b-lunaris-v1)
- [GLM 5.3 Flash](https://opencheap.si/models/glm-5.3-flash): Zhipu · 1M context · $0.011 / $0.11 per 1M · [Compare with llama3-8b](https://opencheap.si/compare/llama3-8b-vs-glm-5.3-flash)
- [google/gemma-3-27b-it](https://opencheap.si/models/gemma-3-27b): Google · 131K context · $0.02 / $0.05 per 1M, 23 % cheaper · [Compare with llama3-8b](https://opencheap.si/compare/llama3-8b-vs-gemma-3-27b)
- [Ling 3.0 Flash](https://opencheap.si/models/ling-3.0-flash): inclusionAI · 262K context · $0.022 / $0.066 per 1M · [Compare with llama3-8b](https://opencheap.si/compare/llama3-8b-vs-ling-3.0-flash)
- [Gryphe/MythoMax-L2-13b](https://opencheap.si/models/mythomax-l2-13b): Gryphe · 8.1K context · $0.08 / $0.11 per 1M · [Compare with llama3-8b](https://opencheap.si/compare/llama3-8b-vs-mythomax-l2-13b)

[Compare llama3-8b with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/llama3-8b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
