Meta Llama · LLM API pricing

Llama-3.1-8B-Instruct API pricing: cheapest provider

10 providers sell Llama-3.1-8B-Instruct. Novita AI is cheapest; the most expensive charges 8.0× as much for the same model.

  • Cheapest$0.0275per 1M · Novita AI
  • Input · output$0.02 / $0.05per 1M tokens
  • Price gap8.0×across 10 providers
  • Accuracy27.0%GPQA
  • Context131Kmax tokens
$0.0275 Novita AI8.0× spread$0.22 Amazon Bedrock
Already paying for Llama-3.1-8B-Instruct? Check if you overpay →

Standard list prices in USD from each provider's pricing page · last price change Sep 28, 2026 · How we collect and rank prices

Ranked for your volume

Llama-3.1-8B-Instruct monthly cost by provider

Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.

More requirements: caching, context, features, provider

Share this page URL to keep your scenario. 10 of 10 providers meet these assumptions.

ProviderEstimated / monthInput / 1MOutput / 1MContext
1
Novita AIInference provider - lowest for your volumePricing page
$0.30$0.02$0.0516,384
$0.32$0.02$0.06128,000
3
LambdaInference providerPricing page
$0.33$0.025$0.04131,072
4
NscaleInference providerPricing page
$0.36$0.03$0.03Not listed
5
DeepInfraInference providerPricing page
$0.40$0.03$0.05131,072
6
Fireworks AIInference providerPricing page
$1.20$0.10$0.10131,072
7
OVHcloud AI EndpointsCloud platformBilled in EUR: €0.10 input, €0.10 output per 1M tokens. USD at the ECB rate of Oct 30, 2026 (1.1172).Pricing page
$1.34$0.1117$0.1117131,000
$2.40$0.20$0.20131,072
$2.64$0.22$0.22128,000
$2.64$0.22$0.22131,000

Order depends on listed price for your volume only. No provider pays for its position.

Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.

Accuracy: GPQA Diamond (graduate-level science questions) measured by Epoch AI (CC BY 4.0) on Llama-3.1-8B-Instruct, run Aug 27, 2026. The model is the same at every provider, though quantized deployments can score lower.

Price history

The cheapest price has not changed since tracking started on Sep 28, 2026: $0.0275 per 1M tokens at Novita AI. All price changes

Switch to the cheapest provider

Switch to Novita AI

Already using the OpenAI SDK? Change the base URL, key and model name:

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.novita.ai/openai",
    api_key=os.environ["NOVITA_API_KEY"],
)
response = client.chat.completions.create(
    model="meta-llama/llama-3.1-8b-instruct",
    messages=[{"role": "user", "content": "Hello"}],
)
Base URL from Novita AI's API docs, model name from the open pricing datasets. Check the model page in Novita AI's docs before you switch production traffic.

Compare Llama-3.1-8B-Instruct with another model

Or pick any model

Before you pick a provider

Context windows differ by provider, from 16K to 131K tokens. A cheaper host may not accept your longest prompts.