uttapen

Nex-N2-Mini vs Gemma 3 4B

Both sit behind the same key and the same code on uttapen — the only thing that changes is the model string, so you can run each of them against your own workload without touching anything else. On cost, Nex-N2-Mini comes out about 1.2× cheaper.

FeatureNex-N2-MiniGemma 3 4B
ProviderNex AGIGoogle
Model idnex-agi/nex-n2-minigoogle/gemma-3-4b-it
Context262,144 tokens131,072 tokens
Max output235,929 tokens16,384 tokens
Input / 1M tokens7,253 toman14,506 toman
Output / 1M tokens29,013 toman29,013 toman
≈ one 1,000-word request47 toman57 toman
Input caching725 toman / 1MNo
Image inputYesYes
File inputNoNo
Tool callingYesNo
JSON outputYesYes
Reasoning modeYesNo

Which one for what?

Nex-N2-Mini

  • Multi-step problems, maths, and tracking down a bug
  • Whole documents or a codebase in a single request
  • Reading screenshots, invoices, and scanned forms
  • Agents that call your own APIs and database
  • High-volume work where cost per call decides
47 toman per 1,000 words · Model page

Gemma 3 4B

  • Reading screenshots, invoices, and scanned forms
  • High-volume work where cost per call decides
57 toman per 1,000 words · Model page

Run both with the same code

Swap the model value between the two ids and send the same request twice; what each answer cost comes back in the X-Uttapen-Cost-Toman header.

curl https://api.uttapen.ir/v1/chat/completions \
  -H "Authorization: Bearer sk-up-…" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nex-agi/nex-n2-mini",
    "messages": [{"role": "user", "content": "Introduce yourself in one sentence."}],
    "stream": true
  }'

model = "google/gemma-3-4b-it"

More comparisons: all pairs · model rankings · full catalogue

base_url = https://api.uttapen.ir/v1