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

One OpenAI-compatible API. Swap the model id and you're done.

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,
)

Start building

Grab an API key and call this model in minutes.