← Back to Blog

Model selection —

📅 🏷

Model selection determines everything: cost, performance, privacy, and capabilities. With 50+ providers and 500+ models, choosing the right one feels overwhelming. This guide cuts through the noise.

50+
Providers
500+
Models
3
Key Criteria
✓
Cost-Optimized

Selection Framework

Choose models based on three criteria:

  1. Task — What are you actually doing? (coding, writing, analysis, reasoning)
  2. Context — How much text do you need to process? (10K vs 200K vs 1M tokens)
  3. Privacy — Is data sensitive? (local vs cloud)

Model Categories

CategoryBest ForExamples
CodingCode generation, debugging, refactoringClaude Sonnet 4, GPT-5.4, CodeLlama
ReasoningMath, logic, planningGemini 3.1 Pro, GPT-5.4, o1
VisionImage understanding, OCRGemini 3.1 Pro Vision, Claude 3.5 Sonnet
WritingContent, copy, editingGPT-5.3, Claude Opus 4.7 4, Claude Sonnet 4
ChineseChinese language tasksGLM 5, Kimi 2.5, DeepSeek
LocalPrivacy, offline, zero costOllama (LLaMA 3.2), LM Studio

Context Window Guide

Cost Comparison

ProviderModelCost/1M tokens
AnthropicClaude Sonnet 4$3-5
OpenAIGPT-5.4$5-8
GoogleGemini 3.1 Pro$2-4
OpenRouterFree tier$0
OllamaLLaMA 3.2$0 (local)
💡 Free tier — OpenRouter offers Grok 4.20:free, Gemini 3.1 Pro Preview:free, DeepSeek R1:free. Real models, not trials.

Selection Examples

# Coding task
Claude Sonnet 4 — Best for full IDE integration
GPT-5.4 — Good for general coding
CodeLlama — Local, free

# Reasoning task
Gemini 3.1 Pro — 1M context, strong reasoning
GPT-5.4 — General reasoning
o1 — Specialized reasoning

# Vision task
Gemini 3.1 Pro Vision — 1M context, vision
Claude 3.5 Sonnet — Vision + coding

# Privacy-sensitive
Ollama LLaMA 3.2 — 100% local
LM Studio — Local GUI

Testing Strategy

Before committing to a paid model, test with free tiers:

  1. Start with OpenRouter free tier
  2. Test on your actual use case
  3. Compare quality vs cost
  4. Switch to paid if it saves time

The Bottom Line

Start with the free tier of OpenRouter or local models. Only pay when you hit limits. Match the model to the task — don't use a sledgehammer for a screw.

Z
Z.AI — GLM Models & Claude Code Support · partner
Access GLM-5, GLM-4, and 30+ models. Free tier available.
10% off →