L LLM Cloud Hub
Side-by-side comparison

Granite 4.0 Micro vs Llama 3.1 8B Instruct

IBM

Granite 4.0 Micro

{} JSON
Input / 1M
$0.0170
Output / 1M
$0.1120
View Granite 4.0 Micro →
Meta

Llama 3.1 8B Instruct

🔧 Tools {} JSON
Input / 1M
$0.0500
Output / 1M
$0.0800
View Llama 3.1 8B Instruct →
Granite 4.0 MicroLlama 3.1 8B Instruct
Provider IBM Meta
Context window Maximum tokens (input + output) the model can process in a single request. Glossary → 131,000 131,072
Capabilities Optional capabilities the model advertises: vision (images), tools (function calling), json_mode (structured output). json_mode tools, json_mode
Input $ / 1M tokens Cost for tokens you send (prompt + context). Cheaper side highlighted. Glossary → 0.0170 0.0500
Output $ / 1M tokens Cost for tokens the model generates. Output is normally 3–5× pricier than input. Glossary → 0.1120 0.0800

Frequently asked questions

Which is cheaper, Granite 4.0 Micro or Llama 3.1 8B Instruct?

Granite 4.0 Micro is cheaper than Llama 3.1 8B Instruct on a 50/50 input/output blend by about $0.0005 per 1M tokens. Exact savings depend on your input-vs-output ratio — use the cost calculator on this page for a workload-specific estimate.

Which has a larger context window, Granite 4.0 Micro or Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct has the larger context window at 131k tokens versus 131k tokens for Granite 4.0 Micro. That means Llama 3.1 8B Instruct can ingest about 1.0x as much text per request.

What is the difference between Granite 4.0 Micro and Llama 3.1 8B Instruct?

Granite 4.0 Micro comes from IBM; Llama 3.1 8B Instruct comes from Meta. They differ in pricing, context window, and supported capabilities — see the side-by-side table on this page for the exact figures, refreshed nightly.

Keyboard shortcuts

?
Show this overlay
/
Focus the first form field
g h
Go to / (home)
g b
Go to /best-llm-for
g c
Go to /cost
g s
Go to /self-hosted
g x
Go to /compliance
Esc
Close any overlay

Inspired by Linear and GitHub conventions. The two-key sequences (g then h) work within ~1 second.