Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect ChatGPT (OpenAI) to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/chatgpt.md
AI Services

How to connect ChatGPT (OpenAI) to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
Who can use itIndividuals and organizations who can create an OpenAI account and issue an API key. The API is usage-based and billed separately from ChatGPT subscriptions. There is no review process; once you have issued a key and set up billing (such as purchasing prepaid credits), you can start the same day
Method公式API(REST)
PricingThe API is billed per token (separate input/output rates per model), and payment is primarily prepaid credits, which you purchase before use and which expire. It is billed separately from ChatGPT subscriptions, but eligible plans (Pro / Business) include a monthly API credit benefit (Pro: an amount equal to the plan price; Business: pooled per seat, capped at $500/month; manual linking to an API organization is required and unused credits do not roll over; Plus is not eligible). Usage tiers rise with usage history, relaxing rate limits. The asynchronous Batch API is discounted
RiskA leaked API key leads directly to unauthorized use and charges. Prompt injection from web pages or files an agent reads can cause unintended tool execution or data exfiltration. Automating the ChatGPT UI to extract output is prohibited by the terms; automation must go through the API. When using remote MCP tools from the Responses API, specify only trusted servers and add approval controls (such as require_approval) for tools that write or send data externally

There are three distinct directions. (1) The main route for calling the models is the OpenAI API (the Responses API is recommended); anyone can issue a key with no review. (2) The only official MCP server is the Docs MCP, which is for documentation lookup only and cannot call models. (3) ChatGPT can call external MCP servers and apps, but that is the reverse direction. There is no API to operate the ChatGPT UI or account from outside, and chat history and Custom GPTs cannot be accessed through the API

AuthenticationAPI key. Create an organization and project at platform.openai.com and issue a project-scoped API key, sent in the Authorization: Bearer header. The full key is shown only once, at creation time
Checked by the operator2026.12.05
How the operator checkedChecked against official documentation

For AI agents: Markdown ・ JSON

Official MCP and AI guides

Official MCP serverYes

OpenAI 公式の MCP はドキュメント参照専用の Docs MCP(https://developers.openai.com/mcp)のみで、モデルを呼び出すための公式 MCP サーバーはない。Docs MCP は開発者ドキュメントの検索・取得専用で認証不要。逆方向として、Responses API からは任意のリモート MCP サーバーをツールとして呼び出せる

https://developers.openai.com/mcp

Official guide for AI agentsYes

開発者ドキュメント(developers.openai.com)に、Agents SDK、Responses API の MCP ツール、Docs MCP などエージェント構築向けのガイドが体系的に用意されている

https://developers.openai.com/

Tools of the official MCP server

ToolTypeWhat it does
ドキュメントの検索Read
ドキュメント本文の取得Read

Connectors

Official connectors from AI services

Not supported: Claude, ChatGPT, Gemini, Microsoft Copilot

Third-party integration services

  • Zapier

    ChatGPT(OpenAI)アプリがあり、ツールは28件(2026年12月確認)。推奨の Conversation は Responses API ベースで、Web 検索・ファイル検索・MCP ツールも使える。ほかに画像生成・編集、文字起こし、音声合成、埋め込み、モデレーション、動画生成(Sora)など。Zapier MCP 経由でエージェントからも実行できる

  • Make

    OpenAI (ChatGPT, Whisper) アプリがあり、Make がサポート・保守する公式アプリ。Chat Completion の作成、文字起こし、画像生成、埋め込み、ベクターストア検索などが使える。接続には自分の OpenAI API キーが必要。Make の公式 MCP サーバー経由でエージェントからモジュールを実行することもできる

  • n8n

    公式の OpenAI ノードがあり、Responses API でモデルにメッセージを送るほか、ポリシー違反の分類、画像、音声などが使える。AI Agent ノードのモデルとしても利用できる。接続には自分の API キーが必要

  • IFTTT

    ChatGPT サービスがあり、主な機能は「Prompt」クエリ(トリガーの材料を渡して ChatGPT に処理させ、結果をアプレットで使う)。IFTTT 側が用意した組み込みサービスで、ユーザーの OpenAI API キーは不要。IFTTT 側は MCP サーバー(ifttt.com/mcp)も公開しており、ChatGPT のコネクタから IFTTT のサービスを呼ぶ逆方向の連携もできる

  • Pipedream

    OpenAI (ChatGPT) アプリがあり、Chat、Completion の作成、画像、音声などのアクションが使える。コンポーネントはオープンソース。Pipedream のリモート MCP 経由でも実行できる。接続には自分の API キーが必要

  • Composio

    OpenAI ツールキットがあり、Responses、Chat Completions、ファイル、ベクターストア、評価、ファインチューニング、バッチなど API のほぼ全域をツール化している。Composio の MCP としても提供される。利用には自分の OpenAI API キーの設定が必要

  • Yoom

    ChatGPT のマイアプリがあり、自分の OpenAI API キーをアクセストークンとして登録して使う。「テキストを生成」などのアクションが使える(OpenAI の有料 API 契約が前提)

Not supported: Power Automate

Unofficial MCP servers

Published by someone other than the provider. The provider does not guarantee how they work or how safe they are.

  • openai-mcp-server(piorkowskim79)

    個人開発の MCP サーバー(Glama 掲載、2026年12月確認)。tool 9件で、Responses API によるテキスト生成、Chat Completions、モデル一覧、画像生成・編集、文字起こし、音声合成、埋め込み、モデレーションを MCP クライアントから使える。環境変数 OPENAI_API_KEY が必要。Claude Desktop 向けの拡張パッケージ(.mcpb)もある(実機・コードは未確認)

Security assessment

For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.

Official MCPOfficial MCP serverThe service provider
Permissions requiredRead only

認証不要。ドキュメントの読み取り専用

Terms of serviceNo issues

公式ドキュメントの公開範囲内

Source: relevant section of the terms

Data pathOpenAI の公式サーバーに接続し、検索した語句と取得したドキュメントページがやり取りされる。自分の API データやアカウント情報には触れない。ただし検索クエリに機密情報を含めないよう注意する。取得したドキュメントは接続先クライアント/LLM のコンテキストに渡る
Third-party integrationZapierOfficial from the integration service
Permissions requiredRead and write

Zapier に接続した OpenAI の API キーの権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathZapier のサーバーを経由し、入力したプロンプトやファイルは Zapier と OpenAI の両方に渡る。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る。iPaaS 側の実行履歴にも入出力が残りうる
Third-party integrationMakeOfficial from the integration service
Permissions requiredRead and write

Make に登録した自分の API キーの権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathMake のサーバーを経由し、入力データは Make と OpenAI の両方に渡る。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る。iPaaS 側の実行履歴にも入出力が残りうる
Third-party integrationn8nOfficial from the integration service
Permissions requiredRead and write

n8n に登録した自分の API キーの権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathn8n Cloud の場合は n8n のサーバーを経由し、セルフホストの場合は自分の実行環境から OpenAI の API に直接つながる。AI Agent 経由では、入力データがモデルのコンテキストに入る
Third-party integrationIFTTTOfficial from the integration service
Permissions requiredRead only

IFTTT 組み込みの ChatGPT サービスの範囲(ユーザーの OpenAI API キーは不要)。OpenAI 側への書き込みは行わない

Terms of serviceNo issues

IFTTT が用意した公式連携の範囲内

Source: relevant section of the terms

Data pathIFTTT のサーバーを経由し、クエリの内容は IFTTT と OpenAI に渡る。IFTTT の MCP を使う場合は逆方向(ChatGPT 側から IFTTT のサービスを呼ぶ)になる
Third-party integrationPipedreamOfficial from the integration service
Permissions requiredRead and write

Pipedream に登録した自分の API キーの権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathPipedream のサーバーを経由し、入力データは Pipedream と OpenAI の両方に渡る。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る。iPaaS 側の実行履歴にも入出力が残りうる
Third-party integrationComposioOfficial from the integration service
Permissions requiredRead and write

Composio に設定した自分の API キーの権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathComposio のサーバーを経由し、入力データは Composio と OpenAI の両方に渡る。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る。iPaaS 側の実行履歴にも入出力が残りうる
Third-party integrationYoomOfficial from the integration service
Permissions requiredRead and write

Yoom に登録した自分の API キーの権限の範囲

Terms of serviceNo issues

公式 API の利用範囲内

Source: relevant section of the terms

Data pathYoom のサーバーを経由し、入力データは Yoom と OpenAI の両方に渡る。Yoom 側の実行履歴にも入出力が残りうる
Unofficial MCPopenai-mcp-server(piorkowskim79)Third party (unofficial)
Permissions requiredRead and write

自分の OpenAI API キーを渡す。できる操作はキーの権限の範囲

Terms of serviceNo issues

公式 API を自分のキーで使う範囲内。キーを渡す先が第三者コードである点には注意する

Source: relevant section of the terms

Data path公開情報では、手元で動き OpenAI の公式 API に接続する構成とされる。ただしコードは未監査・実機未確認のため、キーや入力が第三者へ送られないか、導入前にソースコードと通信先を確認すること。取得したデータは接続した LLM プロバイダーのクラウドへ送られ、会話履歴等に残りうる

Data you can fetch within the terms of service

OpenAI API(Services Agreement)と ChatGPT(Terms of Use)

ScrapingProhibited

API の利用には OpenAI Services Agreement(2026-01-01 発効、旧 Business Terms)が適用され、許可された方法以外でのデータ抽出、Output を使った競合 AI モデルの開発、API キーの売買・譲渡が禁止されている。顧客コンテンツをサービスの開発・改善に使わないことも明記されている。ChatGPT の消費者向け利用には Terms of Use が適用され、そちらでも自動的・プログラム的なデータや Output の抽出が禁止されている。つまり自動化は API 経由が前提で、ChatGPT の画面の自動操作や非公式経路での取得は利用規約で禁止されている

Source: relevant section of the terms of service

Fetching with the agent's own browser

There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.

Usage

How to connect

  1. Create an account at platform.openai.com and set up an organization and project
  2. Issue a project API key (the full key is shown only at creation time)
  3. Set up billing (purchase prepaid credits and set project usage limits; the API is billed separately from ChatGPT subscriptions)
  4. Call the Responses API from your agent or iPaaS. In most iPaaS tools you register your own key in the service's OpenAI app (some services, like IFTTT, are built in)
  5. Restrict the project key to only the endpoints you need, and monitor usage in the dashboard

Setup examples

Paste these as they are. Replace the API key, domain and similar values with your own.

Responses API でモデルを呼ぶ
curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "MODEL_ID", "input": "次の文を要約して: ..."}'

API_KEY は platform.openai.com で発行したプロジェクトキー、MODEL_ID は利用可能なモデル ID に置き換える。Responses API は現在の推奨エンドポイントで、Web 検索やファイル検索、リモート MCP などの組み込みツールも使える

Official page checked: https://platform.openai.com/docs/api-reference/authentication

Docs MCP を追加する(ドキュメント参照用)
claude mcp add --transport http openai-docs https://developers.openai.com/mcp

OpenAI の公式ドキュメントを MCP クライアントから検索・取得できるようにする設定。モデルを呼び出すためのものではなく、ドキュメント参照用

Official page checked: https://developers.openai.com/mcp

Limiting the features

キーごとに権限と上限を絞る
プロジェクトキーの権限設定:
- Permissions: All / Restricted / Read only
- Restricted ではエンドポイントごとに None / Read / Write を指定
- モデル制限と月次上限はプロジェクト設定(Limits)側で管理

Restricted キーではエンドポイント/スコープ単位で権限を絞る。利用できるモデルの制限やプロジェクトの月次上限はプロジェクト設定側で管理する。エージェント用には専用プロジェクトを作り、キーを使い分ける

Official page checked: https://platform.openai.com/docs/api-reference/authentication

問い合わせ文の要約と分類

Instruction to the agent

次の問い合わせ文を3行で要約して、カテゴリ(請求/障害/その他)を1つ選んで

Responses API にプロンプトと対象テキストを渡すと、要約と分類が返る。Zapier の Conversation アクションや Make の OpenAI モジュールでも同じ処理をノーコードで組める

資料群から根拠付きで答えさせる

Instruction to the agent

登録した社内規程とマニュアルから、解約手続きの条件を根拠付きで教えて

ファイルをアップロードしてベクターストアに登録し、Responses API のファイル検索と組み合わせると、自前で分割や埋め込みの基盤を持たずに、複数資料を横断する RAG 的な使い方ができる。単一のファイルなら、ファイル入力で直接渡す方法もある

Pitfalls and tips

Pitfalls

  • The API runs on prepaid credits. Issuing a key alone is not enough — nothing runs until you purchase credits. Billing is separate from ChatGPT subscriptions, and Plus includes no API benefit (Pro / Business have a conditional monthly API credit benefit)
  • The full API key is shown only when it is created. If you lose it, issue a new one. If it leaks, revoke it immediately
  • Driving the ChatGPT UI with browser automation is a terms violation (automated/programmatic extraction is prohibited). Automate through the API
  • Rate limits are set per model and per account usage tier. Check the limits and how to handle 429 errors before production use. Some models and features also require Organization Verification in addition to a usage tier
  • Input sent via the API is not used for training by default, but data-retention handling varies by use case and contract. Check the API data policy before sending sensitive data
  • The Responses API defaults to store: true (inputs and outputs are stored on OpenAI's side for up to 30 days). Set store: false explicitly to avoid retention. Excluding abuse-monitoring logs as well requires separate Zero Data Retention approval
  • Chat history, Memory, Projects, and Custom GPTs in ChatGPT cannot be referenced or executed from the external API. The API calls the same model family in an independent environment

Tips

  • Use the Responses API for new implementations (Chat Completions is for existing ones). Web search, file search, and remote MCP calls are built-in tools of the Responses API
  • To cut costs, combine the asynchronous Batch API (discounted) with smaller models for first-pass processing
  • Create a dedicated project for agents to separate keys and limits. Usage can be tracked per project
  • Implementation normally uses the official SDKs (Python / TypeScript) or the OpenAI Agents SDK. For stricter corporate requirements, Azure OpenAI Service (a separate Microsoft contract and billing) is another option

Test environment and change history

How it was checkedChecked against official documentation
Clients triedNot yet tried with a real client

OpenAI の公式ドキュメントと利用規約、iPaaS 各社のアプリページで確認。API キーの発行や実機での接続はしていない

Change history

  • 初版

Sources

Official and primary sources

Pages published by the service provider, the integration provider or the MCP author about their own product.

References (third-party write-ups)

Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.

Related articles

How to connect YouTube to AI agents

Official, individuals OK

How to connect Discord to AI agents

Official, individuals OK

How to connect Google カレンダー to AI agents

Official, individuals OK

How to connect Reddit to AI agents

Official, individuals OK