chat
Run a chat completion on a small open-weights model, charged to your token budget. Good for summarising, classifying, extracting and rewriting.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>",
"messages": "<messages>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional. Omit to use the default model. | |
| api_key | Yes | The api_key returned by `register`. | |
| messages | Yes | OpenAI-style messages: [{role, content}, ...]. | |
| max_tokens | No | Optional. At most 8192. | |
| temperature | No |