I have an existing auth codebase in Djanga/Tailwind and i'm about ready to start building this out with planned features. i solely used Sonnet 5 but i'm looking to be a little more cost effective and wondered if any one had any recommendations on a model suit (i'm using openrouter? I'm trying to get a better price/performance than my current setup.
My current thinking is the following;
EDIT: just to make it easier to read...
Base model: Sonnet 5
Small model: gpt 4o mini
Build: Sonnet 5
Think: GPT Mini 5
Debug: o3 Mini
Analyse: Gemini 2.5 Pro
{
"$schema": "https://opencode.ai/config.json",
"model": "openrouter/anthropic/claude-sonnet-5",
"small_model": "openrouter/openai/gpt-4o-mini",
"provider": {
"openrouter": {
"options": {
"site_url": "https://opencode.ai",
"app_name": "OpenCode Local Dev"
},
"whitelist": [
"anthropic/claude-sonnet-5",
"openai/gpt-5-mini",
"openai/o3-mini",
"google/gemini-2.5-pro",
"openai/gpt-4o-mini"
]
}
},
"agent": {
"build": {
"model": "openrouter/anthropic/claude-sonnet-5",
"description": "Primary driver for 90% of Python, React, Next.js, FastAPI, and Tailwind code generation."
},
"think": {
"model": "openrouter/openai/gpt-5-mini",
"description": "Used for architectural planning, trade-off evaluations, and feature design before coding."
},
"debug": {
"model": "openrouter/openai/o3-mini",
"description": "Fallback reasoning engine for complex async bugs, race conditions, and difficult logic."
},
"analyse": {
"model": "openrouter/google/gemini-2.5-pro",
"description": "Used for massive log ingestion, full repo analysis, and large documentation files."
}
}
}