gratis # gratis Choose `grts/auto` to code with free-tier models without picking a provider yourself. ## Use Install through [Installation](../../README.md#install), rebuild, run `/reload`, then choose `grts/auto` in `/model`. Pi owns provider authentication through its normal provider login and credential flow. Physical provider models remain selectable through their native provider IDs. Gratis routes only to listed coding models whose provider has credentials in Pi. The built-in list holds free-tier models that answered Pi-sized prompts with correct tool calls: | Provider | Models | Credential | | --- | --- | --- | | Kilo | `kilo-auto/free`, `stealth/glyph-cluster`, `recursive/flint-v1.0:free`, `reflection/beam-free` | `KILO_API_KEY` | | OpenRouter | `openrouter/free` | Pi's OpenRouter login or `OPENROUTER_API_KEY` | | Mistral | `ministral-14b-2512`, `ministral-8b-2512` | Pi's Mistral login or `MISTRAL_API_KEY` | | NVIDIA | `nvidia/nemotron-3.5-super-vl-120b-a12b`, `nvidia/nemotron-3-ultra-550b-a55b` | Pi's NVIDIA login or `NVIDIA_API_KEY` | Gratis registers the `kilo` provider for Kilo's OpenAI-compatible gateway. Its model list refreshes from Kilo and keeps only free, text-only models that support tools. Catalog prices are not consulted, because free tiers are account plans rather than zero-priced models. Mistral models are free only while the Mistral organization stays on its free plan. Add models with `gratis.models`, a list of `provider/model` patterns tried before the built-in list; `*` matches any text: ```json { "gratis": { "models": ["kilo/*:free", "hetzner/*"] } } ``` Gratis never checks whether a model you add is free; you pay for paid models you list. A user request selects the first listed model. The candidate list alternates providers before trying more models from one provider. Continuations stay on the previous physical model. Only a Pi-issued retry can advance to another candidate, from a pool of at most eight models. A model that fails with an authorization, not-found, retired, or timeout error is skipped for the rest of the session. Rate-limit and capacity errors keep the model for later turns. No listed model produces a clear error. Exhausted Pi retries produce a clear error. Direct requests select normally without retaining router state. Free-tier availability and limits change without notice; Gratis cannot guarantee provider billing or remaining quota. Free providers may retain prompts or use them for training; Kilo marks its free models as possibly training on prompts. Do not send sensitive content unless that provider's terms are acceptable. ### Setting names | Setting | Environment | | --- | --- | | `gratis.models` | `PI_GRATIS_MODELS` | #### Setting values | Setting | Default | Valid values | Purpose | | --- | --- | --- | --- | | `gratis.models` | `[]` | Parser-validated | Additional models: provider/model patterns tried before the built-in free coding models; * matches any text. |