uttapen

Gemini 3.1 Flash Lite (batch) vs Gemma 2 27B

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, Gemini 3.1 Flash Lite (batch) comes out about 1.5× cheaper.

FeatureGemini 3.1 Flash Lite (batch)Gemma 2 27B
ProviderGoogleGoogle
Model idgoogle/gemini-3.1-flash-lite:batchgoogle/gemma-2-27b-it
Context1,048,576 tokens8,192 tokens
Max output65,536 tokens2,048 tokens
Input / 1M tokens36,266 toman188,581 toman
Output / 1M tokens217,594 toman188,581 toman
≈ one 1,000-word request330 toman490 toman
Input caching3,627 toman / 1MNo
Image inputYesNo
File inputYesNo
Tool callingYesNo
JSON outputYesYes
Reasoning modeYesNo

Which one for what?

Gemini 3.1 Flash Lite (batch)

  • 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
330 toman per 1,000 words · Model page

Gemma 2 27B

  • High-volume work where cost per call decides
490 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": "google/gemini-3.1-flash-lite:batch",
    "messages": [{"role": "user", "content": "Introduce yourself in one sentence."}],
    "stream": true
  }'

model = "google/gemma-2-27b-it"

More comparisons: all pairs · model rankings · full catalogue

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