← 返回
开发者工具 Key 中文

LLM Council Router

Route any prompt to the best-performing LLM using peer-reviewed council rankings from LLM Council
利用LLM Council同行评审委员会排名,将任意提示词路由至表现最佳的LLM。
ashtiwariasu ashtiwariasu 来源
开发者工具 clawhub v1.0.0 1 版本 99917.1 Key: 需要
★ 0
Stars
📥 1,205
下载
💾 3
安装
1
版本
#latest

概述

LLM Council Router

Route any prompt to the best-performing LLM. The API finds the top model for a given query based on thousands of peer-reviewed council deliberations — then you call that model directly.

Base URL

https://clawbot.llmcouncil.ai

Authentication

Use the X-API-Key header with your LLM Council API key.

X-API-Key: clwb_YOUR_KEY_HERE

Get a free key at llmcouncil.ai/developers.

Endpoint: POST /v1/route

Find the best-performing model for a query.

Request

{
  "query": "Explain quantum entanglement simply",
  "k": 20
}
FieldTypeRequiredDescription
------------------------------------
querystringYesThe prompt or question to route
kintegerNoNumber of past evaluations to consider (default: 20)

Response

{
  "query": "Explain quantum entanglement simply",
  "nearest_councils": 20,
  "model": "anthropic/claude-sonnet-4",
  "relevance": 0.8234,
  "confidence": 0.65,
  "model_rankings": [
    { "rank": 1, "model": "anthropic/claude-sonnet-4", "nearby_wins": 13, "nearby_appearances": 20 },
    { "rank": 2, "model": "openai/gpt-4.1", "nearby_wins": 5, "nearby_appearances": 18 }
  ]
}
FieldTypeDescription
--------------------------
modelstringTop recommended model ID (matches OpenRouter catalogue)
relevancefloat (0–1)How closely matched evaluations relate to your query. Above 0.75 is strong.
confidencefloat (0–1)How decisively the top model outperforms alternatives. Higher = clearer winner.
nearest_councilsintegerNumber of relevant past evaluations used
model_rankingsarrayAll models ranked by performance across matched evaluations

How to use this skill

When the user asks you to find the best model for a task, or when you need to decide which LLM to use:

  1. Call the routing API with the user's query:
curl -X POST https://clawbot.llmcouncil.ai/v1/route \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $LLMCOUNCIL_API_KEY" \
  -d '{"query": "USER_QUERY_HERE"}'
  1. Read the response — the model field is the best-performing model for that query type.
  1. Chain with OpenRouter — model IDs match the OpenRouter catalogue directly, no mapping needed:
import requests, os

# Step 1: Get the best model from LLM Council
route = requests.post(
    "https://clawbot.llmcouncil.ai/v1/route",
    headers={"X-API-Key": os.environ["LLMCOUNCIL_API_KEY"]},
    json={"query": "Write a Python web scraper"},
).json()

best_model = route["model"]       # e.g. "anthropic/claude-sonnet-4"
confidence = route["confidence"]   # e.g. 0.85

# Step 2: Call that model via OpenRouter
answer = requests.post(
    "https://openrouter.ai/api/v1/chat/completions",
    headers={"Authorization": f"Bearer {os.environ['OPENROUTER_API_KEY']}"},
    json={
        "model": best_model,
        "messages": [{"role": "user", "content": "Write a Python web scraper"}],
    },
).json()

print(answer["choices"][0]["message"]["content"])

Rate Limits

TierDaily LimitAttribution
--------------------------------
Free100 requests/dayRequired
Pro10,000 requests/dayNone

When to use this

  • User asks "which model is best for X?"
  • You need to pick the optimal model for a specific task type
  • You want data-driven model selection instead of guessing
  • You want to chain model routing with OpenRouter for automatic best-model dispatch

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 07:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,386 📥 321,171
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,232 📥 268,483
ai-agent

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。适用于以下场景:创建/查询实体(人物、项目、任务、事件、文档)、关联相关对象、强制执行约束、将多步操作规划为图谱变换,或当技能需要共享状态时。触发关键词包括"记住""我知道关于什么""将X链
★ 723 📥 245,251