AIOrouter Chat
aiorouter_chatSend chat completion requests to AIOrouter models and get the full response. Choose from Qwen, DeepSeek, GLM, Kimi, Grok and more, with adjustable max tokens and temperature.
Instructions
Send a chat completion to any AIOrouter model (Qwen, DeepSeek, GLM, Kimi, Grok, etc). Returns the model's full response. Non-streaming only (MCP limitation). Increase max_tokens (up to 8192) for long responses.
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>",
"messages": "<messages>"
},
"name": "aiorouter_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID from aiorouter_list_models | |
| messages | Yes | Conversation messages | |
| max_tokens | No | Max response tokens (1-8192) | |
| temperature | No | Sampling temperature (0-2) |