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

# Set Up Msty.ai with Alter API

> Connect Msty.ai to Alter API Router with endpoint and API key configuration

Use this guide to connect Msty.ai to Alter API Router.

## Open Provider Configuration

In Msty.ai, open the provider/model configuration screen where you set:

* API endpoint (base URL)
* API key
* model selection

## 1) API Key

Paste your Alter key in the API key field:

`sk-...`

Generate a key in Alter via `Settings` -> `Router` -> `Alter API Keys`.

## 2) Inference Endpoint

Set the endpoint to:

```text theme={null}
https://alterhq.com/api/v1
```

## 3) Fetch and pick a model

Click **Fetch models** in Msty.ai after setting endpoint + API key.

Msty.ai will load the available Alter models so you can pick one from the list.
You do not need to type model IDs manually.

<img src="https://mintcdn.com/alter-95c0cbf0/kCIiz-VJZWlVWe4I/images/integrations/msty-endpoint-api-key.jpeg?fit=max&auto=format&n=kCIiz-VJZWlVWe4I&q=85&s=d89a5ec018dc52d91fe52db01b41ced3" alt="Msty.ai endpoint and API key setup" width="3248" height="2112" data-path="images/integrations/msty-endpoint-api-key.jpeg" />

## Verify Connection

1. Save settings in Msty.ai
2. Send a simple prompt
3. If it fails, verify endpoint, API key, then click **Fetch models** again

## Related

* [API Model Reference](/references/api-model-names)
* [API Router for Development](/api-router/development)
* [API Router Operations & Troubleshooting](/api-router/operations)
