Count tokens for a request without sending it to the model.
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model to use for tokenization |
messages | array | Yes | Array of message objects |
| Code | Description |
|---|---|
200 | Success |
400 | Invalid request |
401 | Invalid authentication |
403 | Provider key not found |