Create a message using Anthropic-compatible API.
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer authentication header |
| anthropic-version | string | Yes | API version (e.g., 2023-06-01) |
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g., claude-3-5-sonnet-20241022) |
| messages | array | Yes | Array of message objects with role and content |
| max_tokens | integer | Yes | Maximum tokens to generate |
| temperature | float | No | Sampling temperature (0.0 to 1.0). Default: 1.0 |
| top_p | float | No | Nucleus sampling parameter. Default: 1.0 |
| top_k | integer | No | Top-k sampling parameter |
| stop_sequences | array | No | Custom stop sequences |
| stream | boolean | No | Enable streaming response. Default: false |
| system | string | No | System prompt to guide the assistant |
| metadata | object | No | Metadata about the request |