Skip to content
Sign in

Account and features

Smart routing

Call auto or a preset instead of a model id, and each conversation runs on the model your preset picks for its kind of work.

On this page

Pass auto or preset/<slug> as the model field, and Impact automatically picks a model from Models and a reasoning effort for each conversation based on the work your message asks for. Quick edits go to fast, inexpensive models, while hard architecture questions go to frontier models. You configure those mappings on Presets.

The auto model

Requests to auto use your default preset—the one with Use for auto enabled. If you haven't chosen a default preset, Impact uses the built-in preset: Claude models for Anthropic Messages API clients (such as Claude Code) and GPT models for all other clients (such as Codex and Chat Completions), keeping each client's native protocol and features intact.

Requests to preset/<slug> use that preset whether or not it is your default. Every API key can call auto and any of your presets. Unknown preset IDs return 404 model_not_found.

curl https://api.impact-relay.com/v1/chat/completions \
  -H "Authorization: Bearer $IMPACT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "messages": [{ "role": "user", "content": "Rename the variable tmp to total in this function." }]
  }'

Presets

On Presets, click Create preset and start from a template:

TemplateModels
ClaudeClaude models only, keeping every Claude Code feature
OpenAIGPT models only, keeping every Codex feature
EconomySmaller GPT models for everyday tasks, frontier GPT for the hardest
MaximumFrontier Claude models across every kind of work

Give the preset a name and an ID so clients can call it as preset/<id>. Turn on Use for auto to make it your default preset—only one preset can be the default at a time.

Under Models by kind of work, choose a model for each category and set a reasoning effort for models that support reasoning. Under Rules, configure subagent routing, the fallback model, and how models change during a conversation. Use Try a message to preview which category and model a prompt will get before saving.

Kinds of work

Each new user message is classified into one of four categories, ordered from lowest to highest cost:

KindFor example
MechanicalA greeting, a lookup, an edit whose exact change is already stated: rename a variable, fix a typo
RoutineOrdinary engineering with a clear shape: implement a specified function, add tests, fix an off-by-one
ComplexMulti-step work: changes across modules, finding an unknown cause, a non-trivial algorithm
DeepWork that weighs trade-offs: a migration and its rollback, a choice between architectures, a proof

Classification depends on the work requested rather than message length or tone: a short "go ahead" inherits the category of the plan it approves. Any prompt that touches production systems, credentials, or billing is routed to Deep.

Rules

  • Subagents. Follow their session runs subagents on the same model as their parent session. A model of their own runs every subagent on a dedicated model you choose, regardless of the parent session's model.
  • Fallback. Answers a new conversation when its first message cannot be classified in time, so requests never stall waiting on routing.
  • Conversation. Move up lets later messages upgrade the conversation to a stronger model without ever dropping to a weaker one. Fixed locks the entire conversation to the model chosen for its first message.
  • Fresh start. After Idle minutes without activity, the next message is classified from scratch and can step back down to a cheaper model.

How a conversation is routed

When you send a message, Impact classifies the work it asks for and selects the matching model and reasoning effort from your preset. Across multiple turns and tool calls, the session follows your preset's rules so long agent runs stay consistent without dropping to weaker models mid-task.

Tool calls, background tasks, and automatic model swaps
  • Tool steps and continuations. Requests without a new user message—such as tool results, retries, and automatic continuations—stay on the conversation's active model.
  • Background tasks and compaction. Automatic client housekeeping (such as generating a conversation title) uses the Mechanical model. Context compaction summaries run on the conversation's active model.
  • Capability and context swaps. If the chosen model cannot accept a request—because the conversation exceeds its context window, includes images a text-only model cannot read, or uses a client protocol that requires another vendor—Impact automatically substitutes a compatible model from the same preset.

Response and headers

The response body echoes the model name you requested (auto or preset/<slug>), so clients that validate the model field keep working normally. Two response headers report the actual model and routing reason:

x-impact-routed-model: claude-sonnet-5-5
x-impact-routing-reason: upgraded

x-impact-routed-model contains the ID of the model that served the request, and x-impact-routing-reason explains why it was selected (such as upgraded, kept, pinned, subagent, or fallback).

In Logs

In Logs, routed requests are listed under the model that actually served them, with auto or preset/<slug> shown beside it. Opening a log entry displays the preset, classified kind of work, routing reason, and decision latency.

Prices

Routed requests are billed at the prices of the model that served them on Models, following the API key's billing order.

Coding agents

Launch a coding agent through the Impact CLI with auto or a preset using IMPACT_MODEL or the client's --model flag:

IMPACT_MODEL=auto impact claude
impact claude --model preset/my-preset
IMPACT_MODEL=preset/my-preset impact codex
  • Claude Code preserves all native features when paired with Claude models (used by the built-in preset and the Claude template). When started via impact claude, its subagents and background requests are automatically detected and routed according to your preset's rules.
  • Codex preserves all native features when paired with GPT models (used by the built-in preset and the OpenAI template).
  • Cursor reserves auto for its own built-in Auto mode, so select your preset by ID instead: preset/my-preset.
  • In Kilo and OpenCode, prefix the preset ID with impact/: --model impact/preset/my-preset.