openrouter_chat
Query 100+ AI models including Claude, GPT, and Llama through a single API to access diverse AI capabilities for various tasks.
Instructions
Query ANY AI model via OpenRouter. Access Claude, GPT, Llama, Mistral, and 100+ models through single API.
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": {
"content": "<content>"
},
"name": "openrouter_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The prompt/message | |
| model | No | Model ID (e.g., "meta-llama/llama-3.1-70b-instruct", "anthropic/claude-3.5-sonnet", "openai/gpt-4o"). Default: claude-3.5-sonnet |