uttapen

Llama 3.2 1B Instruct vs Llama Guard 4 12B

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, Llama 3.2 1B Instruct comes out about 1.6× cheaper.

FeatureLlama 3.2 1B InstructLlama Guard 4 12B
ProviderMetaMeta
Model idmeta-llama/llama-3.2-1b-instructmeta-llama/llama-guard-4-12b
Context60,000 tokens163,840 tokens
Max output54,000 tokens16,384 tokens
Input / 1M tokens7,833 toman52,223 toman
Output / 1M tokens58,315 toman52,223 toman
≈ one 1,000-word request86 toman136 toman
Input cachingNoNo
Image inputNoYes
File inputNoNo
Tool callingNoNo
JSON outputNoYes
Reasoning modeNoNo

Which one for what?

Llama 3.2 1B Instruct

  • High-volume work where cost per call decides
86 toman per 1,000 words · Model page

Llama Guard 4 12B

  • Reading screenshots, invoices, and scanned forms
  • High-volume work where cost per call decides
136 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": "meta-llama/llama-3.2-1b-instruct",
    "messages": [{"role": "user", "content": "Introduce yourself in one sentence."}],
    "stream": true
  }'

model = "meta-llama/llama-guard-4-12b"

More comparisons: all pairs · model rankings · full catalogue

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