# Overview (/docs/integrations)

> For AI agents, the [documentation index](https://bitrouter.ai/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

Spare speaks the OpenAI Chat Completions, OpenAI Responses and Anthropic Messages APIs, so most tools
only need a new base URL, your Spare key and a model id. These guides give the exact setup for each one.

## Coding agents \[#coding-agents]

<IntegrationCards kind="agent" />

Each agent guide has a **Copy setup prompt** button: paste the prompt into the agent and it does the
setup itself, following the guide.

## SDKs \[#sdks]

<IntegrationCards kind="sdk" />

## Two ways to connect \[#two-ways-to-connect]

Every guide offers both:

|               | Run on DeepSeek V4.1 Flash                                    | Keep your model, add the Router                                                                     |
| ------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| Model id      | `deepseek-v4.1-flash`                                         | `spare/auto`                                                                                        |
| Talks to      | The Spare API                                                 | The [CLI's Cost routing](https://bitrouter.ai/docs/fleet/cost-routing) on your machine              |
| What you need | A Spare key                                                   | A Spare key, the CLI, and [your provider key](https://bitrouter.ai/docs/fleet/byok) or subscription |
| What changes  | Every request goes to Spare                                   | Only the turns your routing policy sends to the economy model                                       |
| Billed by     | Spare, at the [live price](https://bitrouter.ai/docs/pricing) | Spare for routed turns; your provider for the rest                                                  |
| Best for      | Lowest cost, new projects                                     | Cutting the bill without changing models                                                            |

Provider failures are handled for you either way: a request moves to the next provider serving the model.
To fall back to a different model, see [Model fallbacks](https://bitrouter.ai/docs/fleet/fallbacks).

## Not listed? \[#not-listed]

Anything that lets you set a base URL works:

| Your tool speaks                     | Base URL                           | Key header                             |
| ------------------------------------ | ---------------------------------- | -------------------------------------- |
| OpenAI Chat Completions or Responses | `https://api.spareinference.ai/v1` | `Authorization: Bearer`                |
| Anthropic Messages                   | `https://api.spareinference.ai`    | `x-api-key` or `Authorization: Bearer` |

Use the model id `deepseek-v4.1-flash`. If the tool asks for limits, the context window is 1M tokens
and the maximum output 384K.