Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@
"tutorials/partner-nodes/google/nano-banana-2"
]
},
{
"group": "Anthropic",
"pages": [
"tutorials/partner-nodes/anthropic/claude"
]
},
{
"group": "Stability AI",
"pages": [
Expand Down Expand Up @@ -2432,6 +2438,12 @@
"zh/tutorials/partner-nodes/google/nano-banana-2"
]
},
{
"group": "Anthropic",
"pages": [
"zh/tutorials/partner-nodes/anthropic/claude"
]
},
{
"group": "Stability AI",
"pages": [
Expand Down Expand Up @@ -4548,6 +4560,12 @@
"ja/tutorials/partner-nodes/google/nano-banana-2"
]
},
{
"group": "Anthropic",
"pages": [
"ja/tutorials/partner-nodes/anthropic/claude"
]
},
{
"group": "Stability AI",
"pages": [
Expand Down
58 changes: 58 additions & 0 deletions ja/tutorials/partner-nodes/anthropic/claude.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
title: "Anthropic Claude API ノード ComfyUI 公式サンプル"
description: "本記事では、ComfyUI で Anthropic Claude パートナーノードを用いて対話機能を実現する方法について説明します"
sidebarTitle: "Anthropic Claude"
translationSourceHash: d15a2e8f
translationFrom: tutorials/partner-nodes/anthropic/claude.mdx, zh/tutorials/partner-nodes/anthropic/claude.mdx
translationMismatches:
- "description"
---

import ReqHint from "/snippets/ja/tutorials/partner-nodes/req-hint.mdx";
import UpdateReminder from "/snippets/ja/tutorials/update-reminder.mdx";

Anthropic Claude は、Anthropic が開発した強力な AI モデルファミリーであり、優れた推論能力、安全性、長文コンテキスト処理で知られています。ComfyUI はパートナーノードを通じて Anthropic Claude API を統合しており、ワークフロー内で Claude を直接使用して対話や画像分析を行うことができます。

本ガイドでは、ComfyUI で Anthropic Claude ノードを使用する手順を解説します。

<ReqHint/>
<UpdateReminder/>

## サポートされているモデル

| モデル | 特長 |
|--------|------|
| **Opus 4.7** | Anthropic 最強モデル。エージェンティックコーディングが大幅に向上。複雑な推論や詳細な分析に優れる。100万トークンのコンテキストウィンドウ。知識カットオフ:2026年1月。 |
| **Opus 4.6** | 前世代のフラッグシップ。全般的に高いパフォーマンス。100万トークンのコンテキストウィンドウ。 |
| **Sonnet 4.6** | 速度とインテリジェンスの最適なバランス。ほとんどのワークロードに最適。100万トークンのコンテキストウィンドウ。低レイテンシー。 |
| **Sonnet 4.5** | 高速で実用的、日常的なタスクに最適。20万トークンのコンテキストウィンドウ。 |
| **Haiku 4.5** | 最速かつ最もコスト効率の高い選択肢。シンプルなクエリや高スループットのユースケースに最適。20万トークンのコンテキストウィンドウ。 |

すべてのモデルはテキストのみの入力とマルチモーダル(テキスト + 画像)入力をサポートし、1リクエストあたり最大20枚の画像を処理できます。

## Anthropic Claude チャットワークフロー

<CardGroup cols={2}>
<Card title="Comfy Cloud で実行" icon="cloud" href="https://cloud.comfy.org/?template=api_anthropic_claude&utm_source=docs&utm_medium=referral&utm_campaign=claude">
Comfy Cloud を開く
</Card>
<Card title="ワークフローをダウンロード" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_anthropic_claude.json">
JSON をダウンロードするか、テンプレートライブラリで "Anthropic Claude" を検索
</Card>
</CardGroup>

<Note>
対応するテンプレートでは、画像を解析して描画プロンプトへと変換するためのロールプロンプトを構築しています。
</Note>

ワークフロー内の番号を参考にして、基本的なワークフローを実行してください:
1. `Load Image` ノードで、AI に解析してほしい画像を読み込みます(テキストのみの場合はスキップ可能)
2. `Anthropic Claude` ノードの `prompt` で対話プロンプトを設定するか、`model` で異なる Claude モデルを選択します
3. (任意)`system_prompt` でモデルの基本動作指示を設定できます
4. `Run` ボタンをクリックするか、ショートカットキー `Ctrl(Windows)/Cmd(macOS) + Enter` を押して対話を実行します
5. API からの結果が返ったら、`Preview Any` ノードで AI の応答を確認できます

### 補足情報

- ノードの詳細オプションで `max_tokens`(最大 32000)と `temperature`(0.0~1.0)を調整可能
- `seed` パラメーターはノードの再実行制御のみに使用され、結果自体は非決定的です
54 changes: 54 additions & 0 deletions tutorials/partner-nodes/anthropic/claude.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
title: "Anthropic Claude API Node ComfyUI Official Example"
description: "This article will introduce how to use Anthropic Claude Partner nodes in ComfyUI to complete conversational functions"
sidebarTitle: "Anthropic Claude"
---

import ReqHint from "/snippets/tutorials/partner-nodes/req-hint.mdx";
import UpdateReminder from "/snippets/tutorials/update-reminder.mdx";

Anthropic Claude is a family of powerful AI models known for strong reasoning, safety, and long-context capabilities. ComfyUI has integrated the Anthropic Claude API through Partner Nodes, allowing you to use Claude directly in your workflows for conversational and image analysis tasks.

In this guide, we will walk you through using the Anthropic Claude node in ComfyUI.

<ReqHint/>
<UpdateReminder/>

## Supported Models

| Model | Strengths |
|-------|-----------|
| **Opus 4.7** | Anthropic's most capable model. Step-change improvement in agentic coding, complex reasoning, and nuanced analysis. 1M context window. Knowledge cutoff: Jan 2026. |
| **Opus 4.6** | Previous generation flagship with strong all-around performance. 1M context window. |
| **Sonnet 4.6** | Best balance of speed and intelligence for most workloads. 1M context window. Fast latency. |
| **Sonnet 4.5** | Fast and capable, good for everyday tasks. 200k context window. |
| **Haiku 4.5** | Fastest and most cost-effective option for simple queries and high-throughput use cases. 200k context window. |

All models support both text-only and multimodal (text + image) inputs with up to 20 images per request.

## Anthropic Claude Chat Workflow

<CardGroup cols={2}>
<Card title="Run in Comfy Cloud" icon="cloud" href="https://cloud.comfy.org/?template=api_anthropic_claude&utm_source=docs&utm_medium=referral&utm_campaign=claude">
Open in Comfy Cloud
</Card>
<Card title="Download Workflow" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_anthropic_claude.json">
Download JSON or search "Anthropic Claude" in Template Library
</Card>
</CardGroup>

<Note>
In the corresponding template, we have built a prompt for analyzing and generating role prompts, used to interpret your images into corresponding drawing prompts.
</Note>

Refer to the numbered steps in the workflow image to complete the basic workflow execution:
1. In the `Load Image` node, load the image you need AI to interpret (optional — skip for text-only queries)
2. In the `Anthropic Claude` node, modify `prompt` to set your conversation prompt, or change `model` to select a different Claude model
3. (Optional) Set the `system_prompt` to define the model's behavioral instructions
4. Click `Run` or press `Ctrl(cmd) + Enter` to execute the conversation
5. After the API returns results, view the AI response in the `Preview Any` node

### Additional Notes

- Adjust `max_tokens` (up to 32000) and `temperature` (0.0 to 1.0) in the node's advanced options
- The `seed` parameter controls whether the node re-runs — results are non-deterministic regardless of seed value
54 changes: 54 additions & 0 deletions zh/tutorials/partner-nodes/anthropic/claude.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
title: "Anthropic Claude 合作伙伴节点 ComfyUI 官方示例"
description: "本文将介绍如何在 ComfyUI 中使用 Anthropic Claude 合作伙伴节点来完成对话功能"
sidebarTitle: "Anthropic Claude"
---

import ReqHint from "/snippets/zh/tutorials/partner-nodes/req-hint.mdx";
import UpdateReminder from "/snippets/zh/tutorials/update-reminder.mdx";

Anthropic Claude 是 Anthropic 推出的强大 AI 模型系列,以其出色的推理能力、安全性和长上下文处理能力而闻名。ComfyUI 已通过合作伙伴节点集成了 Anthropic Claude API,让你可以直接在工作流中使用 Claude 进行对话和图像分析。

本篇指南将引导你在 ComfyUI 中使用 Anthropic Claude 节点。

<ReqHint/>
<UpdateReminder/>

## 支持的模型

| 模型 | 特点 |
|------|------|
| **Opus 4.7** | Anthropic 最强大的模型,agentic 编码能力大幅提升,擅长复杂推理和细致分析。100万 Token 上下文窗口。知识截止日期:2026年1月。 |
| **Opus 4.6** | 上一代旗舰模型,全面表现出色。100万 Token 上下文窗口。 |
| **Sonnet 4.6** | 速度与智能的最佳平衡,适合大多数工作负载。100万 Token 上下文窗口,响应速度快。 |
| **Sonnet 4.5** | 快速且实用,适合日常任务。20万 Token 上下文窗口。 |
| **Haiku 4.5** | 最快、最具性价比的选择,适合简单查询和高吞吐量场景。20万 Token 上下文窗口。 |

所有模型均支持纯文本和多模态输入(文本 + 图像),每次请求最多支持 20 张图像。

## Anthropic Claude 对话工作流

<CardGroup cols={2}>
<Card title="在 Comfy Cloud 运行" icon="cloud" href="https://cloud.comfy.org/?template=api_anthropic_claude&utm_source=docs&utm_medium=referral&utm_campaign=claude">
打开 Comfy Cloud
</Card>
<Card title="下载工作流" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_anthropic_claude.json">
下载 JSON 或在模板库中搜索 "Anthropic Claude"
</Card>
</CardGroup>

<Note>
在对应模板中,我们构建了一个用于分析图像并生成绘图提示词的角色设定提示词。
</Note>

参考工作流中的步骤编号完成基本操作:
1. 在 `Load Image` 节点中加载需要 AI 解读的图片(可选,纯文本对话可跳过)
2. 在 `Anthropic Claude` 节点中修改 `prompt` 设置对话内容,或修改 `model` 选择不同的 Claude 模型
3. (可选)在 `system_prompt` 中设置模型的基础行为指令
4. 点击 `Run` 按钮,或使用快捷键 `Ctrl(cmd) + Enter` 执行对话
5. 等待 API 返回结果后,在 `Preview Any` 节点中查看 AI 的回复

### 补充说明

- 可在节点的高级选项中调整 `max_tokens`(最高 32000)和 `temperature`(0.0 至 1.0)
- `seed` 参数仅控制节点是否重新运行,结果本身是非确定性的
Loading