Meta's efficient open-weight model with 8 billion parameters from the Llama 3.1 family. Optimized for instruction following with strong performance on general tasks, coding, and multilingual benchmarks. Ideal for cost-effective deployment and edge inference scenarios.
Cheapest
Modal
$0.20 / $0.20
Modal, Scaleway
Sorted by total cost (input + output per 1M tokens). Select a row to view provider details.
| Provider | Pricing (per 1M) | Rate limits | Regions | Health | Latency |
|---|---|---|---|---|---|
In: $0.20Out: $0.20 | 120 RPM / 400K TPM | us-east-1us-west-2 | Healthy | 0ms | |
In: $0.30Out: $0.30 | 60 RPM / 200K TPM | eu-west-1 | Healthy | 0ms |
Use this model via Modal with an OpenAI-compatible SDK.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.modal.com/v1",
apiKey: process.env.MODAL_API_KEY,
});
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);Using Modal API · OpenAI-compatible SDK
Every price recorded for this model, per provider. Prices are per 1M tokens in USD.
No price changes recorded since Jan 10, 2025.
| Date | Provider | Input | Output |
|---|---|---|---|
| Jan 10, 2025Listed · Current | Scaleway | $0.30 | $0.30 |
| Jan 10, 2025Listed · Current | Modal | $0.20 | $0.20 |