Anthropic-compatible
POST
/v1/messages/v1/messages
| Field | Type | Description |
|---|---|---|
| model | string · required | A model id from GET /v1/models. |
| max_tokens | integer · required | Max output tokens (Anthropic requires this). With extended thinking, the thinking budget counts against it — too low returns a `200` with empty content (see [Errors](/docs/errors)). |
| messages | array · required | Conversation turns, each { role, content }. |
| system | string | System prompt. Must be a string, not an array. |
| temperature | number | Sampling temperature, 0–1. |
| stream | boolean | Stream as Anthropic SSE events. |