> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Model Response

Generate a model response.

<Note>
  External Documentation

  To learn more, visit the [Anthropic documentation](https://docs.anthropic.com/en/api/messages).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Disable Parallel Tool Use | When checked - restrict the model to use at most one tool at a time and preventing parallel tool usage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Max Tokens                | The maximum number of tokens to generate before stopping.<br /><br />Different models have different maximum values for this parameter. Visit [Anthropic documentation](https://docs.anthropic.com/en/docs/about-claude/models/all-models) for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Messages                  | The content of the current conversation with the model.<br /><br />For example:<br /><pre><code>\[<br />  \{"role": "user", "content": "Hello there."},<br />  \{"role": "assistant", "content": "Hi, I'm Claude. How can I help you?"},<br />  \{"role": "user", "content": "Can you explain LLMs in plain English?"}<br />]</code></pre>For more information about the `Messages` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/docs/about-claude/models/all-models) for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Model                     | The model that will complete your prompt.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Thinking                  | When set to `enabled`, responses include thinking content blocks showing the model's thinking process before the final answer.<br /><br />**Note**: Requires a minimum budget of `1024` tokens.<br /><br />For more information about the `Thinking` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Thinking Budget Tokens    | The number of tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems which improves response quality.<br /><br />**Note**: Must be higher than `1024` and less than the `Max Tokens` value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Tool Choice               | Define how the model should use the provided tools.<br /><br />The model can:<br />\* `auto` - Decide by itself.<br />\* `any` - Use any available tool.<br />\* `tool` - Use a specific tool.<br />\* `none` - Not use tools at all.<br /><br />**Note**: This parameter may only be specified while providing `Tools`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Tool Choice Name          | The name of the tool to use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Tools                     | Definitions of tools that the model may use.<br /><br />Each tool definition includes:<br />\* `name` - Name of the tool.<br />\* `description` - Optional, but strongly-recommended description of the tool.<br />\* `input_schema` - JSON schema for the tool input shape that the model will produce in `tool_use` output content blocks.<br /><br />For example:<br /><pre><code>\[<br />  \{<br />    "name": "get\_stock\_price",<br />    "description": "Get the current stock price for a given ticker symbol.",<br />    "input\_schema": \{<br />      "type": "object",<br />      "properties": \{<br />        "ticker": \{<br />          "type": "string",<br />          "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."<br />        }<br />      },<br />      "required": \["ticker"]<br />    }<br />  }<br />]</code></pre>For more information about the `Tools` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-tools). |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Stop Sequences      | A comma-separated list of character sequences that will stop output generation. If specified, the response will stop at the first appearance of a `Stop Sequence`. The stop sequence will not be included as part of the response.<br /><br />Example: `STOP,END`                                                                                                                                                                                                             |
  | System Instructions | Context and instructions to provide to the model, such as specifying a particular goal or role.<br /><br />For example:<br /><pre><code>You are a seasoned data scientist at a Fortune 500 company.</code></pre>For more information about the `System` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts).                                                                                   |
  | Temperature         | The randomness of the output.<br /><br />Values can range from `0.0` to `1.0`.                                                                                                                                                                                                                                                                                                                                                                                                |
  | Top K               | Limit the model to only consider the top K most likely options when selecting each word. This reduces random or unusual responses by filtering out less probable choices. For most cases, using `Temperature` is sufficient.<br /><br />Valid values are larger than `0`.<br /><br />For more information about the `Top K` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-top-k).                                                |
  | Top P               | Control text variety by only considering the most likely words whose combined probability reaches the specified `Top P` value. This helps balance creativity and relevance in responses.<br /><br />Values can range from `0.0` to `1.0`.<br /><br />**Note**: Either use this parameter or `Temperature`, but not both.<br /><br />For more information about the `Top P` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-top-p). |
  | User ID             | An external identifier for the user who is associated with the request.<br /><br />For more information about the `User ID` parameter, visit [Anthropic documentation](https://docs.anthropic.com/en/api/messages#body-metadata-user-id).                                                                                                                                                                                                                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"content": [
		{
			"text": "Hi! My name is Claude.",
			"type": "text"
		}
	],
	"id": "msg_013Zva2CMHLNnXjNJJKqJ2EF",
	"model": "claude-3-7-sonnet-20250219",
	"role": "assistant",
	"stop_reason": "end_turn",
	"stop_sequence": null,
	"type": "message",
	"usage": {
		"input_tokens": 2095,
		"output_tokens": 503
	}
}
```

## Workflow Library Example

[Generate Model Response with Anthropic and Send Results Via Email](https://library.blinkops.com/workflows/generate-model-response-with-anthropic-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/generate-model-response-with-anthropic-and-send-results-via-email/canvas" />
</div>
