Claude Sonnet 5.5 is the best default model for Pi: it scores 61.8% on Terminal-Bench 4.0 at $2/$10 per million tokens, about $5.33 per 100 coding-agent requests on our measured traffic. Pi skips subagents and plan mode and keeps its system prompt short, so one model does all the work; switch to Claude Opus 5.5 (64.9%) mid-session with /model when a task gets hard. DeepSeek V4.1 Flash is the cheapest capable option at about $0.67 per 100 requests at peak rates.
Sources: Pi · Terminal-Bench 4.0 leaderboard · Anthropic on Haiku 5.5 · DeepSeek V4.1 Flash release · Cost per request methodology
Run any of these models in your agent
Or let the router send each step to the cheapest model that can do it, on providers we vet for price, uptime and speed. Plans from $19 a month.
Best overall. 61.8% on Terminal-Bench 4.0 with a 1M-token context, so long Pi sessions run a while before compaction.
Best for long agent runs. #1 on Terminal-Bench 4.0 at 64.9%. Pi lets you switch to it mid-session for the hard part of a task and back again.
OpenAI pick. 58.2% on Terminal-Bench 4.0 and 96.1 on Scale's SWE-Bench Pro V2, at the same $2/$10 list price as Sonnet 5.5.
Best value. Anthropic reports 39.2% on Terminal-Bench 4.0 at $0.10/$0.50 per million tokens, for quick tasks that stay under 100K tokens.
Budget pick. Open weights at $0.30/$1.20 per million tokens at peak hours and half off-peak; DeepSeek reports 42.3% on Terminal-Bench 4.0 for its October 17 update, up from 31.2%.
Open-weight pick. The top open-weight model on Terminal-Bench 4.0 (41.8%), with a 1M-token context.
The agent matters as much as the model. Compare AI agents →
Every model on this page runs on Standard Compute