Dify はオープンソースの LLM アプリケーション開発プラットフォームです。CometAPI に接続することで、Dify のワークフロー、チャットボット、エージェントビルダー内で現在の CometAPI model ID を使用できます。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
前提条件
方法 1: CometAPI プラグイン(推奨)
最も簡単な接続方法です。Dify Marketplace には、連携を自動的に処理する公式の CometAPI プラグインがあります。Get your CometAPI API key
Install the CometAPI plugin in Dify
Dify で Plugins → Install Plugin → Marketplace に移動します。

cometapi を検索してインストールします。

Add your API key
Settings → Model Provider → CometAPI → Open Settings に移動します。CometAPI API key を貼り付けて Save をクリックします。
Add models
方法 2: OpenAI-compatible provider
Claude、Grok、Gemini など、CometAPI プラグインでカバーされていないモデルを追加する場合や、カスタムモデル名を使用する場合はこの方法を使います。トラブルシューティング
呼び出しが失敗する場合は、次を確認してください。- API キーが正しく、利用可能な残高があること
- model ID が CometAPI が想定するものと完全に一致していること
- API エンドポイント URL に
/v1が含まれていること(OpenAI 互換メソッドでは必須)






