> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-jp/workflows/workflow-blocks/run-a-model/anthropic-claude.md).

# Anthropic Claude

### この block について

Anthropic Claude ブロックを使うと、Workflow から Anthropic Claude API を呼び出せます。

このブロックは、Workflows でサポートされているあらゆるマルチモーダルタスクに使用できます。

その結果は、API から Workflow の出力に直接返すことができます。

結果を他のブロックへの入力として使うこともできます。たとえば、Claude に yes/no の質問をして、その結果を VLM as Classifier ブロックで処理し、Continue-If ブロックを使って Workflow のフローを制御できます。

このブロックを使うには、Anthropic API key が必要です。 [Anthropic API key の作成方法はこちら。](https://docs.anthropic.com/en/api/admin-api/apikeys/get-api-key)

<figure><img src="/files/8d7d2a9820f6b093c425c13152f87ee3c5f3533c" alt=""><figcaption><p>Single-Label Classification Model block。</p></figcaption></figure>

### この block に送信できるもの

Object Detection Model block は次の入力で実行できます：

1. Workflow に送信した画像
2. Workflow に送信した動画フレーム
3. Workflow 内で計算された画像の切り抜き領域（つまり Crop block を使用したもの）

### block の設定方法

このブロックを設定するには、次の項目を指定する必要があります:

* タスクタイプ。
* Claude に送信するプロンプト。
* Anthropic API key

Open Prompt はデフォルトのタスクタイプです。これにより、自分のプロンプトを Claude に送信できます。

単一ラベル分類やマルチラベル分類など、ほかのタスクタイプも選択できます。これらのタスクは、他の Workflow ブロックが理解できる形式でデータを返すように設定されています。Claude を Workflow 内の他のブロックと一緒に使う予定がある場合に最適です。

<figure><img src="/files/40ada68c24a59116b89624819186c3f08d9f0167" alt=""><figcaption></figcaption></figure>

追加プロパティセクションから、使用するモデルバージョンも選択できます:

<figure><img src="/files/ad9f1beeb042fda4965a9dda6339f93f12846e72" alt=""><figcaption><p>モデルバージョンを選択してください。</p></figcaption></figure>

### この block が返すもの

### ユースケース

このブロックは、クラウド上の視覚言語モデル（VLM）を呼び出したいあらゆる Workflow に便利です。

自分のハードウェア上で動作する VLM が必要な場合は、Qwen-VL 2.5 ブロックを試すことをおすすめします。

### Predictions の形式

この下の card を展開すると、この block が返す JSON データを確認できます。

<details>

<summary>Predictions の形式</summary>

Open Prompt リクエストでは、このブロックは次の形式でデータを返します:

```json
[
  {
    "output":  , 
    "anthropic_claude": {
      "output": "画像には、AI モデルのタスク設定用ユーザーインターフェースが表示されています。インターフェース内には \"Task Type\" セクションがあり、そこで \"Open Prompt\" が選択されています。その下に \"Prompt\" フィールドがあり、そこには次のテキストが含まれています: \"ドック番号は何ですか？ A1 のように返してください。\"

また、\"API Key\" フィールドもあり、マスクされた値（セキュリティのためにドットで表示）で入力されているようです。

画像そのものにはドック番号は見当たりません。Prompt フィールドのテキストは、AI モデルにドック番号を特定し、\"A1\" のような特定の形式で応答するよう指示しているようですが、共有された画像には実際のドック番号は表示されていません。",
      "classes": null
    }
  }
]
```

</details>

### デプロイ時の考慮事項

このブロックを使うにはインターネット接続が必要です。つまり、インターネット接続がない限り、このブロックをエッジ上にデプロイすることはできません。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/workflows/workflow-blocks/run-a-model/anthropic-claude.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
