chat_completion
Send a billable, non-streaming text chat request via QuickRouter with a configured API key to query supported or custom model IDs and get a text response.
Instructions
Send one billable, non-streaming text chat request using the configured QuickRouter key. Model examples: gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-terra, claude-opus-5-5, claude-fable-5-2, claude-sonnet-5-5, claude-haiku-5-5, gemini-4-carbon, gemini-4-hydrogen, gemini-4-neon, deepseek-v4.1-flash, deepseek-v4-pro, grok-4.7. Custom IDs are accepted. Messages are sent to api.quickrouter.ai.
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": {
"messages": "<messages>"
},
"name": "chat_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | QuickRouter model ID passed as supplied. | claude-sonnet-5-5 |
| messages | Yes | Text messages in conversation order. | |
| max_tokens | No | Optional output token cap if supported by the selected model. |