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

# Chat Completion

Generate a chat completion response.

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                                                      |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Anthropic Format | Select to use an Anthropic model.<br /><br />**Note:** This parameter is only available for Anthropic models like Claude Sonnet or Claude Opus. It won't work for other models such as GPT-4o or DeepSeek.                                                                                                                                       |
  | Max Tokens       | The maximum number of tokens to generate in the completion.                                                                                                                                                                                                                                                                                      |
  | Messages         | The conversation messages to generate a completion for.<br /><br />**For example:**<br /><pre><code>\[<br />  \{"role": "user", "content": "What is the capital of France?"},<br />  \{"role": "assistant", "content": "The capital of France is Paris."},<br />  \{"role": "user", "content": "What is so great about it?"}<br />]</code></pre> |
  | Model            | The deployment name of the model to use.<br /><br />**Note:** To use an Anthropic model, you must also use the `Anthropic Format` parameter.                                                                                                                                                                                                     |
  | Project Name     | The name of the Azure AI Foundry project.                                                                                                                                                                                                                                                                                                        |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                                                                                                                                                                                                                                                                |
  | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Additional Parameters | A JSON object for additional body parameters. Values specified in this parameter will override equivalent parameters.<br /><br />For example:<br /><pre><code>\{<br />    "first\_key": 12345,<br />    "second\_key": "some\_value"<br />}</code></pre>The object must follow the vendor's structure as defined in the API documentation. |
</div>

## Example Output

```json theme={"dark"}
{
	"choices": [
		{
			"content_filter_results": {
				"hate": {
					"filtered": false,
					"severity": "safe"
				},
				"protected_material_code": {
					"detected": false,
					"filtered": false
				},
				"protected_material_text": {
					"detected": false,
					"filtered": false
				},
				"self_harm": {
					"filtered": false,
					"severity": "safe"
				},
				"sexual": {
					"filtered": false,
					"severity": "safe"
				},
				"violence": {
					"filtered": false,
					"severity": "safe"
				}
			},
			"finish_reason": "stop",
			"index": 0,
			"logprobs": null,
			"message": {
				"annotations": [],
				"content": "The Eiffel Tower is great for a few reasons—beyond just being famous:\n\n- **Views you can't get anywhere else:** From the top (or even the mid-level platforms), you get a sweeping panorama of Paris.\n- **A true \"Paris icon\" moment:** It's one of the most recognizable structures in the world.\n- **Architecture + engineering:** When it was built it was considered a major engineering achievement.\n- **It changes with the light:** The tower looks different at each time of day. At night it's often lit up in a way that makes it feel magical.",
				"refusal": null,
				"role": "assistant"
			}
		}
	],
	"created": 1779624259,
	"id": "chatcmpl-Dj1r1Fbkh12OyeQWi0x6PdRwOCsrM",
	"model": "gpt-5.4-nano-2026-03-17",
	"object": "chat.completion",
	"prompt_filter_results": [
		{
			"prompt_index": 0,
			"content_filter_results": {
				"hate": {
					"filtered": false,
					"severity": "safe"
				},
				"jailbreak": {
					"detected": false,
					"filtered": false
				},
				"self_harm": {
					"filtered": false,
					"severity": "safe"
				},
				"sexual": {
					"filtered": false,
					"severity": "safe"
				},
				"violence": {
					"filtered": false,
					"severity": "safe"
				}
			}
		}
	],
	"service_tier": "default",
	"system_fingerprint": null,
	"usage": {
		"completion_tokens": 260,
		"prompt_tokens": 203,
		"total_tokens": 463
	}
}
```

## Workflow Library Example

[Chat Completion with Azure Foundry and Send Results Via Email](https://library.blinkops.com/workflows/chat-completion-with-azure-foundry-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/chat-completion-with-azure-foundry-and-send-results-via-email/canvas" />
</div>
