Chat with a model via Zerouter
chatSend prompts or message lists to any Zerouter model and route them automatically to the correct API endpoint for Claude, GPT, Gemini, Grok, or Kimi.
Instructions
Send a prompt or a message list to any Zerouter model (Claude, GPT, Gemini, Grok, Kimi, ...). The request is routed automatically: Claude/Kimi -> /v1/messages, GPT/Grok/Codex -> /v1/responses, Gemini and other models -> /v1/chat/completions. Requires ZEROUTER_API_KEY.
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>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID, e.g. claude-sonnet-5-5, gpt-6-sol, gemini-3.8-flash, grok-4.6, kimi-k3 | |
| prompt | No | User prompt. Appended after `messages` if both are given. | |
| system | No | Optional system prompt | |
| endpoint | No | Override routing. Default auto. | |
| messages | No | Conversation history as {role, content} items | |
| max_tokens | No | Max output tokens (default 1024 for Claude/Kimi) | |
| temperature | No |