Meta: Llama 3.1 8B Instruct: AI model
Llama 3.1 8B Instruct is Meta's fast, lightweight 8-billion-parameter model with a 128K-token context window. Reachable from inside Iran through Hormouz.
- Context window:
- 131,072 tokens
- Input:
- $0.05/1M tokens
- Output:
- $0.08/1M tokens
- Type:
- text
- Tools
- Streaming
- Long context
Llama 3.1 8B Instruct is the lightweight member of the Llama 3.1 generation, combining high speed and efficiency with low cost. Unlike the prior generation, this version raises the context window to 128K tokens.
The model suits summarization, classification, chat and high-volume processing where fast responses matter. Llama 3.1 8B is served through Hormouz behind an OpenAI-compatible API. Point your base URL at Hormouz and drop in a Hormouz key.
Pricing is usage-based: $0.22 per million input tokens and $0.287 per million output tokens. Hormouz provides stable access to the model from inside Iran.
Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to...
Quickstart
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meta-llama/llama-3.1-8b-instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | Meta |
|---|---|
| Type | Text |
| Context window | 131,072 tokens |
| Pricing | $0.05/M in · $0.08/M out |
| API | Chat Completions |
| Capabilities | Streaming · Tools |
Sizes in this family
| Size | Context window | Pricing |
|---|---|---|
| 8B | 131,072 | $0.05/M in · $0.08/M out |
| 70B | 131,072 | $0.40/M in · $0.40/M out |
Benchmarks
Reasoning
Coding
Agentic
Source: Artificial Analysis
Code example
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meta-llama/llama-3.1-8b-instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
model="meta-llama/llama-3.1-8b-instruct",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
model: "meta-llama/llama-3.1-8b-instruct",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the Meta: Llama 3.1 8B Instruct API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Meta: Llama 3.1 8B Instruct and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does Llama 3.1 8B cost?
- Billing is usage-based: $0.22 per million input tokens and $0.287 per million output tokens.
- What context window does Llama 3.1 8B have?
- The model supports a 128K-token context window, enough for long documents and extended conversations.
- How do I reach Llama 3.1 8B from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides a stable path to the model from inside Iran, with no foreign credit card or circumvention tooling required.
- Is Llama 3.1 8B compatible with OpenAI-style code?
- Yes. Hormouz exposes an OpenAI-compatible API. Point your base URL at Hormouz and swap in your Hormouz key. Your existing SDKs and code run without a rewrite.
Updated 2026-10-13