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

# OpenAI Platform

> OpenAI Platformとの連携の手順です。

## 事前準備

### OpenAI へのログイン

[OpenAIにログイン](https://platform.openai.com/settings/organization/admin-keys)し、**メールアドレス・パスワード**を入力し、**API**にログインします。

<Info>
  連携はOpenAI Platformとの連携手順で、ChatGPT（チームプラン）とは別になります。
  ChatGPTにログインするとAPIが表示されないのでご注意ください。
</Info>

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/lxp6out516/1712886373916-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=d2296ef42452a7b984040910cdaf28dc" alt="OpenAI ログイン画面" width="748" height="525" data-path="images/integrations/lxp6out516/1712886373916-image.png" />

### API キーの取得方法

1. OpenAIのAPIにログイン後 `Default project` を選択します。右上の⚙️ (**Settings**) > **Admin** **API keys**に移動し、**＋Create new admin key** をクリックします。直接アクセスする場合のURL：[https://platform.openai.com/settings/organization/admin-keys](https://platform.openai.com/settings/organization/admin-keys)

   <img src="https://mintcdn.com/moneyforwardi/tafzl_sQ3HYSeWQI/images/integrations/lxp6out516/1737456473499-cs-20250121-001820.png?fit=max&auto=format&n=tafzl_sQ3HYSeWQI&q=85&s=5384837e7c6629722cafb626693b19d0" alt="Admin API keys 画面" width="3600" height="1486" data-path="images/integrations/lxp6out516/1737456473499-cs-20250121-001820.png" />

2. Nameには任意の名称「当サービス」等を入力して作成してください。

   <img src="https://mintcdn.com/moneyforwardi/tafzl_sQ3HYSeWQI/images/integrations/lxp6out516/1737456525554-admin-key.png?fit=max&auto=format&n=tafzl_sQ3HYSeWQI&q=85&s=a5240d41cbc655acaf3c8308c069feaa" alt="Admin key 作成画面" width="1128" height="544" data-path="images/integrations/lxp6out516/1737456525554-admin-key.png" />

3. **Secret keyが生成され、これがAPIキー**となるのでコピー・保存します。**Secret keyは再表示されません**ので、ご注意ください。APIキーは`sk-admin-`から始まります。

   <img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/lxp6out516/1737456547904-sk-admi.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=6b9ad1ad475a59e4fc8869c3b265a461" alt="Secret key 画面" width="1142" height="708" data-path="images/integrations/lxp6out516/1737456547904-sk-admi.png" />

### ワークスペースキーの取得方法

サイドメニューの**SettingsからOrganization**へ移動すると、**Organization ID** が表示されています。

**Organization ID がワークスペースキー**となるので、コピー・保存します。

<img src="https://mintcdn.com/moneyforwardi/cYHdVshJUSVuJ5aA/images/integrations/lxp6out516/1712887256988-image.png?fit=max&auto=format&n=cYHdVshJUSVuJ5aA&q=85&s=5019b48c6389db45d20a810634da97fa" alt="Organization ID 画面" width="1382" height="707" data-path="images/integrations/lxp6out516/1712887256988-image.png" />

## インテグレーションのセットアップ

1. インテグレーション画面にて、**OpenAI Platform**で検索します。

2. 前の手順で取得した**ワークスペースキーとAPIキー**を入力し、**連携する**をクリックします。ワークスペース名は任意入力となります。

   <img src="https://mintcdn.com/moneyforwardi/tafzl_sQ3HYSeWQI/images/integrations/lxp6out516/1715906735403-image.png?fit=max&auto=format&n=tafzl_sQ3HYSeWQI&q=85&s=98dde5dfc38f06e20bd4972058228373" alt="連携画面" width="483" height="617" data-path="images/integrations/lxp6out516/1715906735403-image.png" />

3. **OpenAI Platform**との連携が成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。正常に完了しない場合は、まず [SaaSとの連携に失敗する場合の対処法](/it-management/saas-management/93nahw45is-trouble) に記載のステップをお試しください。それでも解決しない場合は、[ご提供いただきたい情報](/it-management/saas-management/93nahw45is-trouble#info-to-provide) をご確認のうえ、[サポート窓口](/contact-support)までお問い合わせください。
