Skip to main content
Meta logo

Llama-3.1-8B-Instruct

ReadyLanguageby Meta

Overview

About this model

The Meta Llama 3.1 collection of multilingual large language models (LLMs) is a collection of pretrained and instruction tuned generative models in 8B, 70B and 405B sizes (text in/text out). The Llama 3.1 instruction tuned text only models (8B, 70B, 405B) are optimized for multilingual dialogue use cases and outperform many of the available open source and closed chat models on common industry benchmarks.

View model card on HuggingFace

Specifications

Model details

Provider
Meta
Modality
Language
Context length
128K tokens
Max output
8.2K tokens
Pricing
$0.10 in · $0.10 out / 1M

Modalities: text → text

API

Call it in code

Use the OpenAI-compatible endpoint below with your EcoHash API key and this model ID.

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.ecohash.com/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="llama-3.1-8b-instruct",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True,
)
curl
curl https://api.ecohash.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d {
    "model": "llama-3.1-8b-instruct",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }

Compare

Llama-3.1-8B-Instruct vs other language models

Same API, same billing. Rates come live from the EcoHash billing system.

Llama-3.1-8B-Instruct compared with other EcoHash language models
ModelContextPriceModalities
Llama-3.1-8B-Instruct (this page)128K tokens$0.10 per 1M input tokens and $0.10 per 1M output tokenstext → text
gpt-oss-20b128K tokens$0.05 per 1M input tokens and $0.20 per 1M output tokenstext → text
DeepSeek-V4-Flash—$0.49 per 1M input tokens and $1.42 per 1M output tokenstext → text
DeepSeek-V4-Pro—$0.91 per 1M input tokens and $2.72 per 1M output tokenstext → text

FAQ

Common questions

How much does the Llama-3.1-8B-Instruct API cost?
Llama-3.1-8B-Instruct is $0.10 per 1M input tokens and $0.10 per 1M output tokens on EcoHash. That figure comes live from the EcoHash billing system, so the price shown on this page is the price you are billed — there is no separate list price to reconcile.
Llama-3.1-8B-Instruct vs gpt-oss-20b: which should I use?
Both are language models on the same OpenAI-compatible EcoHash API, so moving between them is a change of model id and nothing else. Llama-3.1-8B-Instruct has a 128K-token context window at $0.10 per 1M input tokens and $0.10 per 1M output tokens. gpt-oss-20b has a 128K-token context window at $0.05 per 1M input tokens and $0.20 per 1M output tokens. Both prices come live from the EcoHash billing system; the comparison table on this page carries the current figures.
Can I use Llama-3.1-8B-Instruct commercially through EcoHash?
EcoHash hosts Llama-3.1-8B-Instruct under the model publisher's own licence and does not change its terms, so whether your use is permitted is decided by that licence — read it on the model card at https://huggingface.co/nreHieW/Llama-3.1-8B-Instruct. The EcoHash Terms of Service additionally require you to comply with each model's licence and acceptable-use policy. Your EcoHash bill for API usage is separate from, and does not grant, any right under the model's licence.

Start building

Grab an API key and call this model in minutes.