> 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-hi/workflows/workflow-blocks/run-a-model/anthropic-claude.md).

# Anthropic Claude

### इस block के बारे में

Anthropic Claude ब्लॉक आपको Workflow से Anthropic Claude API कॉल करने देता है.

आप इस ब्लॉक का उपयोग Workflows द्वारा समर्थित किसी भी multimodal task के लिए कर सकते हैं.

फिर आप API से प्राप्त परिणाम को सीधे अपने Workflow output में वापस लौटा सकते हैं.

आप परिणाम को अन्य blocks के input के रूप में भी उपयोग कर सकते हैं. उदाहरण के लिए, आप Claude से yes/no question पूछ सकते हैं, परिणाम को VLM as Classifier block के साथ process कर सकते हैं, फिर Continue-If block के साथ अपने Workflow के flow को नियंत्रित करने के लिए जानकारी का उपयोग कर सकते हैं.

इस ब्लॉक का उपयोग करने के लिए, आपको Anthropic API key की आवश्यकता होगी. [Anthropic API key बनाना सीखें.](https://docs.anthropic.com/en/api/admin-api/apikeys/get-api-key)

<figure><img src="/files/6243d1cd2d15514cdacdd75da7f4989b828f582b" alt=""><figcaption><p>Single-Label Classification Model block।</p></figcaption></figure>

### आप इस block में क्या भेज सकते हैं

आप Object Detection Model block को निम्न पर चला सकते हैं:

1. एक image जिसे आप अपने Workflow को भेजते हैं
2. एक video frame जिसे आप अपने Workflow को भेजते हैं
3. image का एक cropped region जो आपके Workflow में calculate किया जाता है (यानी Crop block के साथ)

### block को configure करने का तरीका

जब आप इस ब्लॉक को सेट अप करते हैं, तो आपको यह प्रदान करना होगा:

* एक task type.
* Claude को भेजने के लिए एक prompt.
* आपकी Anthropic API key

Open Prompt डिफ़ॉल्ट task type है. इससे आप अपना खुद का prompt Claude को भेज सकते हैं.

आप single-label या multi-label classification जैसे अन्य task types में से भी चुन सकते हैं. ये tasks इस तरह configure किए गए हैं कि वे data को ऐसे format में वापस लौटाएं जिसे अन्य Workflow blocks समझ सकें. यदि आप Claude को अपने Workflow में अन्य blocks के साथ उपयोग करने की योजना बना रहे हैं, तो यह आदर्श है.

<figure><img src="/files/130193d2e7e1e0a36e96e97c551edd4068c2c8a1" alt=""><figcaption></figcaption></figure>

आप Additional Properties section से यह भी चुन सकते हैं कि कौन-सा model version उपयोग करना है:

<figure><img src="/files/ca8554dbd4fac3dc3e46c3236e0c3243dd11269a" alt=""><figcaption><p>एक model version चुनें.</p></figcaption></figure>

### यह block क्या लौटाता है

### Use cases

यह ब्लॉक किसी भी Workflow के लिए उपयोगी है, जिससे आप cloud vision language model (VLM) को कॉल करना चाहते हैं.

यदि आपको ऐसा VLM चाहिए जो आपके अपने hardware पर चलता हो, तो हम Qwen-VL 2.5 block आज़माने की सलाह देते हैं.

### Predictions format

इस block द्वारा लौटाया गया JSON data देखने के लिए नीचे दिए गए card को expand करें।

<details>

<summary>Predictions format</summary>

Open Prompt request के लिए, यह ब्लॉक निम्नलिखित format में data लौटाता है:

```json
[
  {
    "output":  , 
    "anthropic_claude": {
      "output": "छवि में AI model task setup के लिए एक user interface दिख रहा है. interface में, एक \"Task Type\" section है जहाँ \"Open Prompt\" चयनित है. उसके नीचे एक \"Prompt\" field है जिसमें यह text है: \"डॉक नंबर क्या है? A1 की तरह लौटाएँ.\"

एक \"API Key\" field भी है, जिसमें एक masked value भरी हुई लगती है (सुरक्षा के लिए dots के रूप में दिखाई गई).

मुझे image में कोई dock number दिखाई नहीं दे रहा है. prompt field का text AI model को dock number पहचानने और response को एक खास format में देने के निर्देश जैसा लग रहा है (जैसे \"A1\"), लेकिन आपने जो image साझा की है उसमें actual dock number मौजूद नहीं है.",
      "classes": null
    }
  }
]
```

</details>

### परिनियोजन संबंधी विचार

इस ब्लॉक का उपयोग करने के लिए, आपको internet connection की आवश्यकता होगी. इसका मतलब है कि आप इस block को edge पर deploy नहीं कर सकते, जब तक आपके पास internet connection न हो.


---

# 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-hi/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.
