impulse

Llama 3.1 8B Instruct

Open weights

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.

API id llama-3.1-8b-instructReleased 23 Jul 2024 (Jul 2024)
Input / 1M
$0.02
at Novita AI
Output / 1M
$0.05
at Novita AI
Context window
16K
tokens
Max output
16K
tokens per reply
Hosts
9
9 listings
Released
Jul 2024
23 Jul 2024

Pricing

List prices at Novita AI, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.02$0.05

What it costs a month

At Novita AI list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$9.75
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$11.40
  • Coding agent1,000 requests a day, 40K in / 2K out$27.00
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$60.00
Use your own numbers

Where to run it

9 hosts serve Llama 3.1 8B Instruct. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
Novita AIInference
llama-3.1-8b-instruct
$0.02 / $0.05
NscaleInference
Llama-3.1-8B-Instruct
$0.03 / $0.03
+9% vs headline
Llama-3.1-8B-Instruct
$0.10 / $0.10
+264% vs headline
Fireworks AIInference
llama-v3p1-8b-instruct
$0.10 / $0.10
+264% vs headline
llama-3.1-8b-instruct-fp8
$0.152 / $0.287
+575% vs headline
PerplexityGateway
llama-3.1-8b-instruct
$0.20 / $0.20
+627% vs headline
W&B InferenceInference
Llama-3.1-8B-Instruct
$0.22 / $0.22
+700% vs headline
meta.llama-3.1-8b-instruct
$0.72 / $0.72
+2518% vs headline
llama-3.1-8b-instruct-maas
-

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
Text
Produces
Text
Open weights
License: Llama Community License
Runs in about 19.3 GB of GPU memory
Runtimes: Ollama, TGI, llama.cpp, vLLM

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than Novita AI.

Smaller Meta models

No cheaper Meta model keeps its key capabilities.

Other frontier labs

No cheaper match from another frontier lab.

Open-weight picks

Model line

Newer and older versions, at each lab's own price.

  1. UndatedLlama 3.3 8B InstructLatestNot listed
  2. Jul 2024Llama 3.1 8B InstructThis page$0.02 / $0.05
  3. Jul 2024Llama3.1 8B Instruct$0.025 / $0.04
  4. UndatedLlama 3 8B Instruct$0.04 / $0.04
  5. UndatedLlama3 8B Instruct$0.30 / $0.60

Call it

Using Novita AI's API.

Python
from litellm import completion

response = completion(
    model="novita/llama-3.1-8b-instruct",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Llama 3.1 8B Instruct cost?

On Novita AI, Llama 3.1 8B Instruct costs $0.02 per million input tokens and $0.05 per million output tokens.

Which APIs offer Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct runs on 9 APIs: Novita AI, Nscale, OVHcloud AI Endpoints, Fireworks AI, Cloudflare Workers AI, Perplexity, W&B Inference, Oracle OCI and Vertex AI.

What is Llama 3.1 8B Instruct's context window?

16K tokens, with up to 16K tokens in one reply.

Is Llama 3.1 8B Instruct being retired?

No retirement date is scheduled for it on any API we track.

Is there a newer version of Llama 3.1 8B Instruct?

Yes. Llama 3.3 8B Instruct is the newest model in this line.

What are cheaper alternatives to Llama 3.1 8B Instruct?

Models that cost less and keep most of what it can do: Llama 3.2 1B Instruct on Novita AI (27% less). Savings are on a mix of 3 input tokens to 1 output token.

When was Llama 3.1 8B Instruct released?

Meta released it on 23 Jul 2024.

What is Llama 3.1 8B Instruct's API model id?

Use llama-3.1-8b-instruct with Novita AI. Other hosts use their own ids: Llama-3.1-8B-Instruct on Nscale, Llama-3.1-8B-Instruct on OVHcloud AI Endpoints, llama-v3p1-8b-instruct on Fireworks AI, llama-3.1-8b-instruct-fp8 on Cloudflare Workers AI.

Sources

Raw catalog entry for llama-3.1-8b-instruct on Novita AI
{
  "litellm_provider": "novita",
  "mode": "chat",
  "input_cost_per_token": 2e-8,
  "output_cost_per_token": 5e-8,
  "max_input_tokens": 16384,
  "max_output_tokens": 16384,
  "supports_system_messages": true,
  "supports_response_schema": true
}