> ## Documentation Index
> Fetch the complete documentation index at: https://docs.safeconduct.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Settings you can change

> The settings of an API key (routing policy, providers, limits, daily cap), the options of a single request, and the settings of your account.

Settings live in three places. A key's settings apply to every task sent with that key. A request can override the provider choice for one task. Account settings apply to everything.

## Per API key

Set these in the console under [API keys](https://safeconduct.ai/keys), on the key. A change applies within 30 seconds.

| Setting | Values | Default | What it does |
| - | - | - | - |
| **Routing policy** | `balanced`, `cheapest`, `fastest`, `pinned` | `balanced` | How providers are ranked for this key's tasks. See [How routing works](https://docs.safeconduct.ai/routing.md#3-policies). |
| **Providers** | Tick or untick each provider | All ticked | An unticked provider never gets this key's tasks. With the policy `pinned`, only the ticked ones are used, in the order shown. |
| **Max attempts** | 1 to 10 | 3 | How many attempts one task may take in all, retries included. |
| **Max providers** | 1 to 5 | 2 | How many different providers one task may be sent to. |
| **Timeout** | 10 to 600 seconds | 120 | How long one task may take. No new attempt starts after it, and the task fails with `TIMEOUT`. |
| **Daily cap** | An amount in US dollars, or none | None | What the key may spend per UTC day. |
| **Use only my own provider keys** | On or off | Off | Off: your own provider keys first, then your credit. On: never your credit. |

### Daily cap

Once a key's solved tasks have cost the cap's amount since midnight UTC, new tasks on that key are refused with `402` and the code `SPEND_CAP_REACHED` until the next UTC day. Tasks already running finish. Raise the cap in the console if the spend is expected.

### More attempts, or fewer

The defaults suit most bots. Raise **max providers** when a site is hard and you would rather wait than fail. Lower the **timeout** when a late token is useless to you: a task that fails costs nothing, so a short timeout only costs you the wait.

## Per request

These are fields of the task you send with the native API. The two drop-in formats don't have them; set the key's settings instead.

| Field | What it does |
| - | - |
| `routing.providers` | Provider ids to use for this task, tried in this order. They replace the key's policy and pinned providers for this one task. |
| `routing.fallback` | `false` (default): only the named providers may take the task. `true`: the named ones first, then the router's own choice. |
| `proxy` | Solve through your own proxy: `scheme://user:pass@host:port`, with `http`, `https`, `socks4` or `socks5`. |

A request can't undo an exclusion. Naming a provider that the key or the account excludes is refused, never quietly sent elsewhere.

```json A task for one provider, with the router as backup theme={null}
{
  "type": "recaptcha_v2",
  "websiteURL": "https://www.google.com/recaptcha/api2/demo",
  "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
  "routing": {
    "providers": ["capsolver"],
    "fallback": true
  }
}
```

Provider ids are listed on [Supported providers](https://docs.safeconduct.ai/providers.md).

## Per account

| Setting | Where | What it does |
| - | - | - |
| **Low-balance alert** | [Settings](https://safeconduct.ai/settings) | An amount in US dollars. When your balance falls below it, one email goes to your sign-in address. The alert stays quiet until a top-up brings the balance back above the amount, or you change the amount. |
| **Your own provider keys** | [Provider keys](https://safeconduct.ai/provider-keys) | Add the key of an account you already hold at a provider. Tasks solved with it take \$0 from your SafeConduct credit. The key is checked with the provider when you add it, stored encrypted and never shown again. |

A provider key shows its state in the console: **Active** (used for tasks), **Rejected** (the provider refused it) or **Out of credit** (that provider account is empty). A key that isn't active is skipped, and the task falls back to your credit unless the API key has "use only my own provider keys" on.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.