MorseSign inOpen Morse

Llama 3.1 8B: the small Llama for fast, cheap labeling on a private API

The Morse teamPublished Facts checked 3 min read

Llama 3.1 8B is Meta's small open-weight text model: 8 billion parameters, a 128K-token context, released July 23, 2024. It's the lowest-priced Llama on Morse and suits high-volume labeling and extraction. Morse serves it on a private, OpenAI-compatible API as meta-llama/llama-3.1-8b-instruct, at $0.025 per million input tokens and $0.05 per million output tokens.

We read Meta's Llama 3.1 8B model card and Morse's model page on December 3, 2026. Scores are Meta's own.

The short version

Llama 3.1 8B on Morse
Model idmeta-llama/llama-3.1-8b-instruct
FromMeta
On the Morse API sinceNovember 11, 2026
Price per 1M tokens$0.025 in, $0.05 out, $0.025 cached
Context131,072 tokens
Longest reply16,384 tokens
Readstext
Privacy tiersPrivate

What is Llama 3.1 8B?

The smallest of the Llama 3.1 models, instruction-tuned for text in and text and code out, in several languages. Meta's card shows how much it improved on Llama 3 8B:

BenchmarkLlama 3 8BLlama 3.1 8BLlama 3.1 70B
MMLU68.569.483.6
MMLU (CoT)65.373.086.0
IFEval76.880.487.5
ARC-C82.483.494.8
MATH (CoT)29.151.968.0

Source: Llama 3.1 8B model card, read December 3, 2026.

The biggest gain is math with chain of thought, from 29.1 to 51.9. The 70B is well ahead on every row, which is the trade: 8B is for volume, not depth.

How do you call Llama 3.1 8B?

Point any OpenAI client at https://inference.trymorse.ai/v1, pass your Morse key, and name meta-llama/llama-3.1-8b-instruct. On Morse it takes response_format with json_object. The Python below labels three web server log lines:

import json
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://inference.trymorse.ai/v1",
    api_key=os.environ["MORSE_API_KEY"],
)

lines = [
    "GET /wp-login.php 404 from 203.0.113.9",
    "GET /static/app.css 200 from 192.0.2.44",
    "GET /index.php?id=1%27%20OR%201=1-- 500 from 203.0.113.9",
]

reply = client.chat.completions.create(
    model="meta-llama/llama-3.1-8b-instruct",
    response_format={"type": "json_object"},
    messages=[
        {"role": "system", "content": 'Label each log line. Reply in JSON: {"labels": ["benign" or "probe" or "attack", ...]}'},
        {"role": "user", "content": "\n".join(lines)},
    ],
)

print(json.loads(reply.choices[0].message.content))

When we ran it on December 3, 2026, it answered in about a second with valid JSON. It labeled the SQL injection an attack and the stylesheet benign, but also called the /wp-login.php probe benign. That's the trade with a small model: right on the obvious cases, less reliable on the subtle ones. Run it first and send what it flags, or what it's unsure of, to a larger model such as Llama 3.3 70B.

A two-stage pattern

Because both models share one key and one base URL, a common setup is a cheap first pass and a careful second one:

  1. Send every line to Llama 3.1 8B with a JSON label.
  2. Keep the lines it marks attack or probe, plus a random sample of the benign ones.
  3. Send those to Llama 3.3 70B, or another larger model, for a second opinion.

The first pass handles the bulk at the 8B price, and the second catches what the small model misses, like the probe in our test.

Morse's model page measured it on December 1, 2026 at 0.55 s to the first token and 83 tokens per second, the median of 5 streamed replies.

What else is a small model good for?

Beyond log labeling, an 8B model fits jobs where volume matters and each answer is short: tagging support tickets by topic, pulling names and dates out of documents into JSON, detecting the language of a message, or deciding which of several larger models should handle a request. Each of these is a narrow choice that a small model makes reliably when the instructions are clear. Keep the prompt short and the output format strict, and check a sample of its answers against a larger model before trusting it on a new kind of input.

What does the license allow?

The Llama 3.1 Community License allows commercial use with conditions: show "Built with Llama," include Meta's attribution notice, and follow Meta's acceptable use policy. Companies with more than 700 million monthly active users need a separate license from Meta. This isn't legal advice.

Which Llama should you call on Morse?

Stay on 8B for labeling, routing, and extraction at volume. Move to Llama 3.3 70B for judgment calls and tool use, or Llama 4 Scout when the input includes images. The 70B guide sets all three side by side with their limits and prices.

Is there an uncensored small model?

Not from Meta. Morse's uncensored models are abliterated builds of other labs' models, for cybersecurity, agent security, research, and training data; the DeepSeek V4.1 Flash Uncensored guide is a good start, and this explainer covers the method.

Where does the data go?

It runs under zero-data-retention terms, and the provider sees Morse as the customer, not you. With open weights, Morse runs the 8B on its own providers; see the privacy page for each tier.

Cost

At $0.025 per million input tokens and $0.05 per million output tokens, a million short log lines cost little to label. Credits are prepaid, with no plan to buy. Make a key and run the labeler above on your own logs.

Common questions

When was Llama 3.1 8B released?

July 23, 2024, by Meta's model card, alongside the 70B and 405B models.

What is Llama 3.1 8B's context length?

128K tokens by its card. On Morse it's 128K tokens, with up to 16,384 tokens in one reply.

What is Llama 3.1 8B good for?

Short, high-volume jobs: labeling, routing, extraction, and summaries, where a small model's speed and price matter more than depth. For harder judgment calls, use a larger model.

Does Llama 3.1 8B support JSON output?

On Morse it takes response_format with type json_object, so it replies in valid JSON. It doesn't take tool calls there; for those, use Llama 3.3 70B or Llama 4 Scout.

Ask what you actually want to ask.

80+ models, characters, and images, with every chat encrypted and kept on your device. Free to start.

Start a private chat

Read next