---
title: "Auto Code"
description: "A model with dependable tool calling and long context for coding agents."
canonical_url: "https://minirouter.sh/docs/routers/auto-code"
markdown_url: "https://minirouter.sh/docs/routers/auto-code.md"
last_updated: "2026-09-26"
---

# Auto Code

A model with dependable tool calling and long context for coding agents.

## Call it

```sh
curl https://api.minirouter.sh/v1/chat/completions \
  -H "Authorization: Bearer $MINIROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minirouter/auto:code",
  "messages": [
    {
      "role": "user",
      "content": "Explain an API gateway in one sentence."
    }
  ],
  "max_tokens": 256
}'
```

Examples read your key from `MINIROUTER_KEY`.

## How it picks

Best first. The first model that passes answers.

1. [zai/glm-5.3-flash](https://minirouter.sh/models/zai/glm-5.3-flash) · first available
2. [openai/gpt-6-sol](https://minirouter.sh/models/openai/gpt-6-sol) · available
3. [spacexai/grok-4.6](https://minirouter.sh/models/spacexai/grok-4.6) · available
4. [google/gemini-3.8-flash](https://minirouter.sh/models/google/gemini-3.8-flash) · available
5. [openai/gpt-6-luna](https://minirouter.sh/models/openai/gpt-6-luna) · available

Live availability: [Auto models](https://minirouter.sh/models/auto).

Allowed on your key, within your cost tier, healthy, and able to take the request.

## Pricing

- **Price**: Provider cost plus 8%. Named in `x-minirouter-model`. You pay for the model that answered.
- **Bound**: At most $2.16 in and $10.80 out per million tokens. The dearest model in the list, at this router's rate.
