ComfyUI Extension: Universal LLM Node for ComfyUI
UniversalLLMNode is a custom node for ComfyUI that provides a unified interface to use multiple major LLM APIs, including OpenAI, Anthropic (Claude), Google Gemini, Groq, and Mistral. It is ideal for tasks such as automatically generating high-quality SDXL prompts for image generation.
Custom Nodes (0)
README
Universal LLM Node for ComfyUI
これはなに?
UniversalLLMNodeは、OpenAI・Anthropic(Claude)・Google Gemini・Groq・Mistralなど複数の大手LLM APIを共通インターフェースで利用できるComfyUI用カスタムノードです。
画像生成向けの高品質なSDXLプロンプトを自動生成する用途などに最適です。
使い方(日本語)
- provider で利用したいLLMサービス(openai, anthropic, google, groq, mistral)を選択します。
- model で利用したいモデル名を選択します(リストから選択)。
- api_key に各サービスのAPIキーを直接入力します(.envファイルは不要です)。
※ ComfyUI標準UIではAPIキーは非表示になりませんのでご注意ください。 - prompt にシーンやタグなど、画像生成に使いたい内容を入力します。
- max_tokens で返答の最大トークン数を指定します(通常は300程度で十分です)。
- ノードを実行すると、各社LLM APIを使ってSDXL用の高品質なプロンプトが自動生成されます。
※ providerごとに利用できるモデル名は異なります。APIキーはUI上で直接入力してください。
What is this?
UniversalLLMNode is a custom node for ComfyUI that lets you use multiple major LLM APIs (OpenAI, Anthropic/Claude, Google Gemini, Groq, Mistral) with a unified interface.
It is ideal for automatically generating high-quality SDXL prompts for image generation and similar tasks.
Usage (English)
- Select the provider (openai, anthropic, google, groq, mistral) you want to use.
- Choose the model from the list of available models for the selected provider.
- Enter your api_key for the selected service directly in the UI (no .env file needed).
Note: The API key will be visible in the UI due to ComfyUI limitations. - Enter your scene description or tags in the prompt field.
- Set max_tokens to limit the maximum number of tokens in the response (300 is usually enough).
- Run the node. It will use the selected LLM API to automatically generate a high-quality SDXL prompt.
Note: Available models depend on the provider. Enter your API key directly in the UI. The key will not be hidden in the standard ComfyUI interface.