# Meta: Llama 3.1 8B (decentralized)

Llama 3.1 8B (decentralized) is an 8B-parameter language model.

- **Model id:** `opencheap/3.1-8b-fp8`
- **Price per 1M tokens:** $0.02 input / $0.03 output
- **Cached input:** $0.01 per 1M tokens
- **Context:** 128K tokens, 16K max output

## Providers

2 providers. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| NanoGPT · quantization unknown | $0.02 | $0.01 | $0.03 | 128K | 16K |

1 more provider through partner hosts · from $0.021 in · $0.042 out

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)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **NanoGPT:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `tools`, `tool_choice`

## 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/3.1-8b-fp8#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/3.1-8b-fp8`; 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/3.1-8b-fp8", "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/3.1-8b-fp8",
    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/3.1-8b-fp8",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Llama 3.1 8B (decentralized)

Llama 3.1 8B (decentralized) costs from $0.02 per 1M input tokens and $0.03 per 1M output tokens on OpenCheap, with cached input at $0.01 per 1M tokens. 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.00023, and 1,000 such requests about $0.23. Prices as of 2026-12-04 12:01 UTC.

2 providers serve Llama 3.1 8B (decentralized) on OpenCheap. 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 128K tokens (128,000), room for roughly 96,000 words of English in one request.

Llama 3.1 8B (decentralized) 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 Llama 3.1 8B (decentralized) API cost per 1M tokens?

Llama 3.1 8B (decentralized) costs from $0.02 per 1M input tokens and $0.03 per 1M output tokens on OpenCheap, with cached input at $0.01 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one Llama 3.1 8B (decentralized) request cost?

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

### Which providers serve Llama 3.1 8B (decentralized)?

2 providers serve Llama 3.1 8B (decentralized) on OpenCheap. 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 Llama 3.1 8B (decentralized)?

Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.

### How do I call the Llama 3.1 8B (decentralized) API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/3.1-8b-fp8. 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
- [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.047 / $0.31 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
- [meta-llama/Llama-4-Maverick-17B-128E-Instruct](https://opencheap.si/models/llama-4-maverick-17b-128e) (`llama-4-maverick-17b-128e`): $0.35 / $1.00 per 1M · 524K context

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

## Similar models

- [Qwen/Qwen3-32B](https://opencheap.si/models/qwen3-32b): Qwen · 131K context · $0.0096 / $0.032 per 1M · [Compare with Llama 3.1 8B (decentralized)](https://opencheap.si/compare/3.1-8b-fp8-vs-qwen3-32b)
- [Gemma 4 26B A4B It](https://opencheap.si/models/gemma-4-26b-a4b): Google · 262K context · $0.01 / $0.03 per 1M, 9 % cheaper · [Compare with Llama 3.1 8B (decentralized)](https://opencheap.si/compare/3.1-8b-fp8-vs-gemma-4-26b-a4b)
- [google/gemma-3-27b-it](https://opencheap.si/models/gemma-3-27b): Google · 131K context · $0.02 / $0.05 per 1M · [Compare with Llama 3.1 8B (decentralized)](https://opencheap.si/compare/3.1-8b-fp8-vs-gemma-3-27b)
- [Ministral 14B 3.0](https://opencheap.si/models/ministral-3-14b): Mistral · 128K context · $0.024 / $0.024 per 1M, 13 % cheaper · [Compare with Llama 3.1 8B (decentralized)](https://opencheap.si/compare/3.1-8b-fp8-vs-ministral-3-14b)
- [zai-org/GLM-4.7-Flash](https://opencheap.si/models/glm-4.7-flash): Zhipu · 202K context · $0.0048 / $0.032 per 1M, 8 % cheaper · [Compare with Llama 3.1 8B (decentralized)](https://opencheap.si/compare/3.1-8b-fp8-vs-glm-4.7-flash)
- [NVIDIA Nemotron Nano 9B v2](https://opencheap.si/models/nemotron-nano-9b-v2): NVIDIA · 131K context · $0.0072 / $0.027 per 1M, 19 % cheaper · [Compare with Llama 3.1 8B (decentralized)](https://opencheap.si/compare/3.1-8b-fp8-vs-nemotron-nano-9b-v2)

[Compare Llama 3.1 8B (decentralized) with any model](https://opencheap.si/compare)

---

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