> ## 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.

# Msty.aiでAlter APIを設定する

> エンドポイントとAPIキーの設定でMsty.aiをAlter API Routerに接続する

このガイドでは、Msty.ai を Alter API Router に接続します。

## プロバイダー設定を開く

Msty.ai で、次を設定するプロバイダ/モデルの設定画面を開きます:

* APIエンドポイント（ベースURL）
* APIキー
* モデル選択

## 1) APIキー

APIキーフィールドにAlterキーを貼ります:

`sk-...`

Alter の `Settings` -> `Router` -> `Alter API Keys` でキーを生成します。

## 2) 推論エンドポイント

エンドポイントを次の値に設定します:

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

## 3) モデルを取得して選択

エンドポイント + API キー設定後、Msty.ai で **モデルを取得** をクリックします。

Msty.ai が利用可能 Alter モデルを読み込み、一覧から選択できます。
モデルIDを手動入力する必要はありません。

<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 エンドポイントと API キーの設定" width="3248" height="2112" data-path="images/integrations/msty-endpoint-api-key.jpeg" />

## 接続確認

1.Msty.aiで設定を保存
2.簡単なプロンプトを送信
3\. 失敗した場合はエンドポイントとAPIキーを確認し、**モデルを取得**を再実行

## 関連

* [APIモデル考察](/ja/references/api-model-names)
* [開発向けAPIルーター](/ja/api-router/development)
* [API Router 運用とトラブルシューティング](/ja/api-router/operations)
