Models

Choosing your two models

Two rules, and they hold on pi and DeepSeek Harness alike. For the cheap side, take the best value you have rather than the absolute cheapest — the judge runs on that model too, so its quality is part of what you are buying. For the strong side, stay on a frontier cloud model; running one locally is painful below about 80 GB of memory, and even at 96 GB a flat-fee plan usually wins. We list tier names — Flash, Luna, Haiku, K3 — instead of model IDs: IDs change with every release, tier names do not. After you install, run /model and see which one you have.

01

Coding subscription plans

One subscription already covers several models. Either point a gateway at it (one key that can reach every major provider) or reuse a coding-tool subscription you are already paying for — most of them speak the OpenAI API.

Fast
  • any Flash class (DeepSeek V4 / Qwen Flash / MiMo Flash)
  • Luna (OpenAI · OpenCode Zen / Go)
  • Haiku (Anthropic)
Smart
  • Sol / Terra (OpenAI · OpenCode Zen / Go)
  • Qwen Max
  • Kimi K3

Subscriptions you can reuse: OpenCode Zen (OpenAI-compatible endpoint), GitHub Copilot (BYOK, OpenAI and Anthropic), Cursor (Pro / Pro+ / Ultra pools), OpenAI Codex (comes with ChatGPT Plus, Pro or Business).

Best for

Nothing new to sign up for. One bill.

02

Local models by memory

Fast tier on a quantized model running locally (q4-k-m, NVFP4, MXFP4, AWQ-int4, or 1–2 bit ternary). Past 64 GB of VRAM or unified memory, Smart can run locally too. Roughly, VRAM = parameters × 0.6 at Q4_K_M.

Setup Fast Smart
≤ 32 GB LFM2.5-8B-A1B (8.5B), granite-4.1-8b (8.8B), Qwen3.6-27B (dense, q4 ≈ 14 GB), gemma-4-26b-a4b-it (q4 ≈ 13 GB), Qwen3.6-35B-A3B (MoE 36B/3B, q4 ≈ 18 GB), Laguna-XS-2.1 (MoE 33B/3B, q4 ≈ 17 GB), Ternary-Bonsai-27B (1.58-bit ≈ 7 GB, laptop/phone) Cloud frontier model
32–128 GB Fable-Fusion-711-NEO-MAX-MTP GGUF (27B, 2026-07, best post-trained), gemma-4-31B-it (q4 ≈ 16 GB), Laguna-S-2.1 (117.6B, q4 ≈ 59 GB — needs 64 GB+) Fable-Fusion-711 base weights, or cloud frontier
≥ 128 GB Fable-Fusion-711-NEO-MAX-MTP GGUF (same pick — post-training beats raw size) DeepSeek-V4-Flash (284 B MoE / 13 B active, UD-Q4_K_XL ≈ 155 GB — needs 192 GB+ unified memory; on 128 GB-class use 1–2 bit ternary)

The sizes above are quantized — what you actually run, not fp16. The AxxB suffix on a MoE model is active parameters per token: it changes how fast it computes, not how much disk it takes, because a GGUF or q4 file still stores every expert weight. Qwen3.6-27B hits 77.2% on SWE-bench Verified, the strongest open-weight model that fits a 24 GB card. Under roughly 256 GB of unified memory, local Smart rarely beats a flat-fee token plan on value — run it locally for privacy or air-gapped work, not to save money.

Best for

Privacy, or work that cannot leave your machine. Only the hard turns go to the cloud.

03

Same-provider tier ladder

One vendor, two tiers. Pick this if you already pay someone and would rather not juggle keys. The right column runs cheapest to strongest, so it doubles as your fallback order.

Setup Fast Smart
Anthropic Haiku Sonnet → Opus → Fable
OpenAI Luna Terra → Sol → Astra
Google Flash-Lite Flash → Pro
Alibaba (Qwen) Plus / Flash Max
DeepSeek Flash Pro
Z.AI (GLM) Flash / Highspeed mainline
Moonshot (Kimi) K2.x / K2.7-Code K3
Xiaomi (MiMo) Flash Pro / UltraSpeed
xAI (Grok) Fast mainline
Best for

The shortest path from nothing to routing. One vendor, one bill, one rate-limit pool.

04

Cross-provider pairing

The strongest model in each tier, whoever sells it. This is where routing pays for itself: the price gap does the saving and the vendor split does the resilience, so one provider going down does not take you with it.

Setup Fast Smart
Coding, lowest cost any DeepSeek V4 Flash any Anthropic Opus class
Coding, multi-provider fallback DeepSeek V4 Flash + GLM-5.x-Flash Anthropic Opus + GPT-5.x Sol + Kimi K3
Coding, flat-fee (best $/quality) OpenCode Go Flash class OpenCode Go strongest (Grok / GPT Luna / Kimi K3)
1 M context, long repo or PDF research any Flash class with 1 M ctx Kimi K3 or Gemini Pro
Multimodal (image / video) any Flash class Anthropic Opus (vision) or Gemini Pro
Multilingual, Chinese-first any Flash class Qwen Max
Europe / GDPR preference DeepSeek Flash (via OpenRouter) Mistral medium
Best for

The best model in each tier, whoever makes it.

One more requirement: the judge needs an endpoint that supports JSON mode. Any current Flash-class model does (Qwen 3.5+, Gemma 4, MiMo V2.x). A local judge adds roughly 0.5–2 s per turn. A good starting point is Fast locally, Smart in the cloud, and the judge on whichever Smart model you trust most for your kind of work. Model IDs and prices move every month — the upstream docs track them with `curl -s https://models.dev/api.json | jq`, and the full catalog lives at models.dev.