> The index of all pages is at https://docs.afffast.com/llms.txt.

# livemode_required

This network connects only in live mode. Switch to live mode to connect a real network.

HTTP status: **400**. Error type: `invalid_request_error`.

This network connects only in live mode. Switch to live mode to connect a real network.

## Example

```json
{
  "error": {
    "type": "invalid_request_error",
    "code": "livemode_required",
    "message": "The network awin connects only in live mode. Switch to live mode to connect a real network.",
    "param": "network",
    "doc_url": "https://docs.afffast.com/errors/livemode-required",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}
```

## Causes

- `POST /v1/connections` uses a test key, and `network` is a real network. Test mode has only the Sandbox Network.

## How to fix

- Use a live key (`sk_live_...`) to connect a real network. The plans and their limits apply in live mode. A new workspace has a 14 day trial with no card.
- Use the Sandbox Network (`sandbox`) to try the API with a test key. See [Test mode](https://docs.afffast.com/docs/test-mode.md).
