# Pi · Quanteex

## Pi

Connect Claude with Quanteex default prices, including prompt caching.

### Prepare your API key

Paste your Quanteex project key in place of YOUR_QUANTEEX_KEY. Use the app’s private key field or your personal configuration file. Do not put a real key in a shared project.

### Connection settings

Open this personal config file and merge the settings below with your existing entries. Replace the placeholder, save and restart the client. The default model is only the initial selection.

~/.pi/agent/models.json (Windows: %USERPROFILE%\.pi\agent\models.json)

```
{
  "providers": {
    "quanteex": {
      "name": "Quanteex",
      "baseUrl": "https://api.quanteex.com",
      "api": "anthropic-messages",
      "apiKey": "YOUR_QUANTEEX_KEY",
      "authHeader": true,
      "models": [
        {
          "id": "claude-opus-5-5",
          "name": "Claude Opus 5.5 (Quanteex)",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 1,
            "output": 5,
            "cacheRead": 0.05,
            "cacheWrite": 1.25
          }
        },
        {
          "id": "claude-sonnet-5-5",
          "name": "Claude Sonnet 5.5 (Quanteex)",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 0.5,
            "output": 2.5,
            "cacheRead": 0.025,
            "cacheWrite": 0.625
          }
        },
        {
          "id": "claude-haiku-5-5",
          "name": "Claude Haiku 5.5 (Quanteex)",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 0.025,
            "output": 0.125,
            "cacheRead": 0.0025,
            "cacheWrite": 0.03125,
            "tiers": [
              {
                "inputTokensAbove": 100000,
                "input": 0.125,
                "output": 0.625,
                "cacheRead": 0.0125,
                "cacheWrite": 0.15625
              }
            ]
          }
        },
        {
          "id": "claude-opus-4-6",
          "name": "Claude Opus 4.6 (Quanteex)",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 1.25,
            "output": 6.25,
            "cacheRead": 0.125,
            "cacheWrite": 1.5625
          }
        },
        {
          "id": "claude-fable-5-1",
          "name": "Claude Fable 5.1 (Quanteex)",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 2.5,
            "output": 12.5,
            "cacheRead": 0.0625,
            "cacheWrite": 3.125
          }
        },
        {
          "id": "claude-fable-5",
          "name": "Claude Fable 5 (Quanteex)",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 128000,
          "cost": {
            "input": 2.5,
            "output": 12.5,
            "cacheRead": 0.25,
            "cacheWrite": 3.125
          }
        }
      ]
    }
  }
}
```

### Switch models

Keep the same connection and key. Copy the exact model ID and its limits from the Quanteex dashboard.

```
/model → quanteex → claude-sonnet-5-5 / claude-opus-5-5
```

### Default prices and cache writes

All prices in the configuration are USD per million tokens on the default tariff. cost.cacheWrite is the 5-minute write price. Pi 1.3.0 prices the reported 1-hour subset automatically at 2 × input; do not add a second cache-write charge. For Opus 5.5, that means $1.25 per million 5-minute writes and $2 per million 1-hour writes.

### Haiku context tier

The configuration includes cost.tiers with inputTokensAbove: 100000. The threshold counts ordinary input, cache reads and cache writes. Above it, all Haiku prices are five times the short-context prices.

### Compare the same requests

Pi displays a local cost estimate and stores costs in session history. Updating prices applies to new responses and does not recalculate old session entries. The dashboard rounds each request to six USD decimal places. If a difference remains, compare one request’s token categories and rates; changing prices cannot recover missing streamed usage.

### Check compatibility

Use a model that supports the selected API and the features your client sends. A successful connection setup does not enable unsupported tools, images or reasoning settings.

### Troubleshooting

For 401, check the key. For 402, check the available project balance and budget. For 400, check the model, API format and extra parameters. Start with the Quickstart request to separate an API problem from a client configuration problem.

### Client documentation

The linked client documentation covers installation and version-specific settings.

Make your first request with Quanteex.

Retry only when the outcome is safe to repeat.

