> For the complete documentation index, see [llms.txt](https://mitsu-1.gitbook.io/vrc-ai-companion/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mitsu-1.gitbook.io/vrc-ai-companion/aiwosuru/costs-and-keys.md).

# 料金とAPIキーの注意点

APIキーは、外部サービスに「自分のアカウントで利用する」と伝えるための秘密の文字列です。 VACの画面では **「利用キー」** と表示します。パスワードそのものを入力する欄ではありません。

## アプリ代と外部AIの料金は別です

VACの購入代金に、OpenAI・Anthropic・GoogleなどのAPI利用料は含まれません。 サービスのチャット画面を使う契約だけで、VACからのAPI利用も使い放題になるとは考えないでください。 API側の請求画面で、支払い方法・残高・利用量を確認します。

会話の返事だけでなく、「覚えることの抜き出し」「覚えたことの要約」、有効にした場合の反応判断や音声認識文のAI補正も、設定したAIを使います。 **画面に見える返答回数と、APIの利用回数が同じになるとは限りません。**

## 初めは少量で試す

1. 提供元の料金表で、選ぶモデルの入力・出力料金を確認する。
2. 利用量の通知、利用停止を伴う上限、自動チャージの有無を確認する。
3. 周囲の音声入力をオフにして、文字で数回会話する。
4. 提供元の利用状況画面で使用量を確認してから、音声入力を使う。

「予算の通知」と「上限で利用を止める設定」は別のことがあります。通知だけを設定して安心せず、各提供元の説明を確認してください。 残高や利用状況の反映に時間がかかることもあるため、VAC側の表示だけで請求額を判断しないでください。

## キーは自分だけで管理する

* キーは提供元の公式サイトで発行し、VACの「利用キー」欄へ貼り付けます。
* 会話欄、GitHub、SNS、スクリーンショット、問い合わせメールには貼り付けません。
* VAC用と分かる名前を付け、他の用途と分けておくと、後から停止・交換しやすくなります。
* キーの期限を設定した場合は、期限前に新しいキーへ交換してください。
* 漏れた疑いがある場合は、提供元の管理画面で無効化・削除して再発行します。VACから削除しただけでは、提供元側のキーは失効しません。

キーの登録は[こちら](/vrc-ai-companion/aiwosuru/register.md)。保存後に入力欄が空になるのは正常です。

## 保存先と外部送信

APIキーは、**VRC AI Companion.exeと同じフォルダにある .env ファイル**に保存されます。画面ではキーが伏せ字になっていても、保存ファイル自体は暗号化されていません。 利用後のフォルダやバックアップを、そのまま他人に渡さないでください。

音声認識はパソコン内で行いますが、クラウドAIを選ぶと、認識した文章・会話の流れ・参照する記憶などがその提供元へ送られます。 すべてをローカルにしたい場合は、用途別のAI設定とAI補正も確認してください。[データの取り扱い](/vrc-ai-companion/li-yong-tiao-jian/privacy.md)

## 提供元の確認ページ

* OpenAI：[キーと利用管理](https://developers.openai.com/api/docs/guides/production-best-practices)・[利用上限](https://developers.openai.com/api/docs/guides/spend-limits)
* Anthropic：[APIの支払い](https://support.claude.com/en/articles/8977456-how-do-i-pay-for-my-claude-api-usage)
* Google：[Gemini APIの課金](https://ai.google.dev/gemini-api/docs/billing)・[データ利用条件](https://ai.google.dev/gemini-api/terms)

外部サービスの確認日：2026年9月16日。画面や条件が変わった場合は公式説明を優先してください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mitsu-1.gitbook.io/vrc-ai-companion/aiwosuru/costs-and-keys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
