Chat Completions Live
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model ID to use. |
messages | array | Yes | Conversation messages. |
temperature | float | No | Sampling temperature between 0 and 2. |
top_p | float | No | Nucleus sampling between 0 and 1. |
max_tokens | integer | No | Maximum tokens to generate. |
stream | boolean | No | Whether to stream Server-Sent Events. |
SDK example
See Chat Models for the full list of callable model IDs. Join the Discord for updates.