Skip to content
Rapid Router
Compare any models
Model comparison

Gemma 3 4B IT vs Meta Llama 3.1 8B Instruct Turbo

Price in rupees, context and benchmarks side by side; same key, a one-string switch.

Input price per 1M
₹4.91 ($0.050)
₹1.97 ($0.020)
Output price per 1M
₹9.83 ($0.100)
₹3.93 ($0.040)
Context window
131K tokens
128K tokens
Max output
118K tokens
128K tokens
Input types
text, image
text
Capabilities
JSON, vision
tools
Author
Google
Meta
LMArena Overall
1291
—
LMArena Coding
1230
—
LMArena Math
1239
—
LMArena Creative writing
1270
—
LMArena Instruction following
1239
—
LMArena Hard prompts
1253
—
GPQA Diamond
23.2%
—
OTIS Mock AIME
7.5%
—

Scores from LMArena and Epoch AI, as published; a blank cell means not measured there.

What a month costs on each

Chatbot month (15M in, 4M out)
₹113
₹45.19
RAG month (40M in, 3M out)
₹226
₹90.39
Coding month (60M in, 10M out)
₹393
₹157

On a typical 75/25 input-output mix, Meta Llama 3.1 8B Instruct Turbo costs less (about 60% less than Gemma 3 4B IT). Gemma 3 4B IT takes the longer prompt at 131K tokens. Try your own numbers in the cost calculator.

Call either one

curl
curl https://rapidrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $RAPIDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google/gemma-3-4b-it", "messages": [{"role": "user", "content": "Hello"}]}'

# the other one: change the model string
  -d '{"model": "meta-llama/meta-llama-3.1-8b-instruct-turbo", ...}'

Common questions

Which is cheaper, Gemma 3 4B IT or Meta Llama 3.1 8B Instruct Turbo?

Meta Llama 3.1 8B Instruct Turbo is cheaper on a typical mix of 75% input and 25% output tokens, by about 60%. Through Rapid Router both are billed at the provider list price per million tokens, in rupees.

Which has the larger context window?

Gemma 3 4B IT, at 131K tokens. Meta Llama 3.1 8B Instruct Turbo offers 128K tokens.

Can I switch between Gemma 3 4B IT and Meta Llama 3.1 8B Instruct Turbo without changing code?

Yes. Both are callable at https://rapidrouter.ai/api/v1 with the same OpenAI-compatible request; only the model string changes (google/gemma-3-4b-it or meta-llama/meta-llama-3.1-8b-instruct-turbo).

How do I pay for Gemma 3 4B IT or Meta Llama 3.1 8B Instruct Turbo in India?

Top up a Rapid Router balance with UPI or a card in rupees, get a GST invoice on every recharge, and both models debit that balance per request.