uttapen

Ministral 3 3B 2512 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, Gemma 3 4B comes out about 1.3× cheaper.

FeatureMinistral 3 3B 2512Gemma 3 4B
ProviderMistralGoogle
Model idmistralai/ministral-3b-2512google/gemma-3-4b-it
Context131,072 tokens131,072 tokens
Max output104,857 tokens16,384 tokens
Input / 1M tokens29,013 toman14,506 toman
Output / 1M tokens29,013 toman29,013 toman
≈ one 1,000-word request75 toman57 toman
Input caching2,901 toman / 1MNo
Image inputYesYes
File inputNoNo
Tool callingYesNo
JSON outputYesYes
Reasoning modeNoNo

Which one for what?

Ministral 3 3B 2512

  • Reading screenshots, invoices, and scanned forms
  • Agents that call your own APIs and database
  • High-volume work where cost per call decides
75 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": "mistralai/ministral-3b-2512",
    "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