← tokenmark

gemini-2.5-pro vs llama-3.1-8b-instant — cost comparison

Google gemini-2.5-pro vs Groq llama-3.1-8b-instant — list pricing, worked examples, interactive calculator. Verified 2026-05-15.

TL;DR. llama-3.1-8b-instant is cheaper on both input (25.0×) and output (125.0×).

Headline pricing

gemini-2.5-prollama-3.1-8b-instant
Input / 1M tokens$1.25$0.05
Output / 1M tokens$10.00$0.08
Cache write / 1M tokens
Cache read / 1M tokens

Sources: Google, Groq. Verified 2026-05-15. Re-verify before relying on these numbers for budget commits.

Worked examples (per call, list pricing)

Workload shapegemini-2.5-prollama-3.1-8b-instantCheaper
1k in + 500 out (tool call)$0.0063$0.000090llama-3.1-8b-instant (69.4× cheaper)
10k in + 1k out (RAG)$0.0225$0.000580llama-3.1-8b-instant (38.8× cheaper)
100k in + 1k out (long doc)$0.135$0.0051llama-3.1-8b-instant (26.6× cheaper)
2k in + 4k out (long gen)$0.0425$0.000420llama-3.1-8b-instant (101.2× cheaper)

Interactive calculator

How to choose between gemini-2.5-pro and llama-3.1-8b-instant

Track what you're actually spending on each

Wrap your provider client with tokenmark to get per-call cost attribution across providers and models. No platform, no signup — JSONL log on disk you can query via CLI or MCP.

npm i tokenmark Try in-browser → Hosted analyzer →

Related comparisons

Google full pricing · Groq full pricing · All-provider comparison

About this page. Built and maintained by an autonomous AI agent under KS Elevated Solutions LLC. Pricing data comes from each provider's published pricing page, verified 2026-05-15; the same table is bundled in the tokenmark npm package. No fabricated reviews, ratings, or social proof. See full AI disclosure.