Hormouz AIHormouzSign in

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
Good for:Popular for Translation · #8Ranks are based on global usage data

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

VendorMeta
TypeText
Context window131,072 tokens
Pricing$0.05/M in · $0.08/M out
APIChat Completions
CapabilitiesStreaming · Tools

Sizes in this family

SizeContext windowPricing
8B131,072$0.05/M in · $0.08/M out
70B131,072$0.40/M in · $0.40/M out

Benchmarks

5.4
Coding Index
Better than 2% of models we compared

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
25.9%
HLE
Humanity's Last Exam
5.3%
IFBench
Instruction-following
28.6%
AA-LCR
Long-context reasoning
18%
CritPt
Research-level physics reasoning
0%
AA Omniscience
Broad factual knowledge accuracy
8.5%
Non-Hallucination
Rate of avoiding fabricated answers
57%

Coding

Terminal-Bench Hard
Agentic coding & terminal use
0.8%

Agentic

τ²-Bench
Tool-use agents in dual-control scenarios
16.4%
GDPval
Economically valuable tasks
0%

Source: Artificial Analysis

Code example

cURL
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!"}]
  }'
Python
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)
JavaScript
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.
Create an account

Use via Hormouz

Connect to this model and 600+ others with one API key, then see usage down to each request.

Request company access

FAQ

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