Ask a text model
chatSend a prompt to a Kunavo text model and get the complete, non-streamed answer, billed per token against your prepaid balance.
Instructions
Send a prompt to a text model on Kunavo (the models whose endpoint is chat in list_models) and return its answer. Spends the balance: the call is charged per token (the model's listed rates are in list_models). The answer is returned whole, not streamed, so a long one takes a while.
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": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | A model id from list_models with endpoint chat. | |
| prompt | Yes | The user message. | |
| system | No | Optional system prompt. | |
| max_tokens | No | Optional cap on the answer's tokens. On a reasoning model the reasoning counts against it, so a low cap can leave no room for the answer. | |
| timeout_seconds | No | How long to wait for the answer (default 50). The tool call is over at most 5 seconds after that, the reading of the model list included. MCP clients usually end a tool call after 60 seconds; raise this only when yours waits longer. A call cut off here may still be answered, and charged, upstream. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | Yes | ||
| price | Yes | The model's listed rate, from the live catalog. | |
| usage | Yes | ||
| finish_reason | Yes |