Loading...
Loading...
Compare original and translation side by side
OPENROUTER_API_KEYget-endpoints.tsOPENROUTER_API_KEYget-endpoints.tscd <skill-path>/scripts && npm installcd <skill-path>/scripts && npm install| User wants to... | Script | Example |
|---|---|---|
| See all available models | | "What models does OpenRouter have?" |
| Find recently added models | | "What are the newest models?" |
| Find cheapest models | | "What's the cheapest model?" |
| Find highest throughput models | | "Which models have the most output capacity?" |
| Find models in a category | | "Best programming models?" |
| Search by name | | "Do they have Claude?" |
| Resolve an informal model name | | "Use the nano banana 2.0 model" |
| Find image-capable models | | "Which models accept images?" |
| Compare specific models | | "Compare Claude vs GPT-4o" |
| Compare by throughput | | "Which has higher throughput, Claude or GPT-4o?" |
| Check provider performance | | "Which provider is fastest for Claude?" |
| Find fastest provider | | "Fastest provider for Claude Sonnet?" |
| Find lowest-latency provider | | "Lowest latency provider for GPT-4o?" |
| Check model availability | | "Is Claude Sonnet 4 up right now?" |
| 用户需求 | 脚本 | 示例 |
|---|---|---|
| 查看所有可用模型 | | "OpenRouter有哪些模型?" |
| 查找最近新增的模型 | | "最新的模型有哪些?" |
| 查找最便宜的模型 | | "最便宜的模型是什么?" |
| 查找吞吐量最高的模型 | | "哪些模型的输出能力最强?" |
| 查找特定类别的模型 | | "最佳编程模型有哪些?" |
| 按名称搜索模型 | | "他们有Claude吗?" |
| 解析非正式的模型名称 | | "使用nano banana 2.0模型" |
| 查找支持图像的模型 | | "哪些模型支持输入图像?" |
| 对比特定模型 | | "对比Claude和GPT-4o" |
| 按吞吐量对比模型 | | "Claude和GPT-4o哪个吞吐量更高?" |
| 查看服务商性能 | | "哪个服务商提供的Claude速度最快?" |
| 查找最快的服务商 | | "Claude Sonnet的最快服务商是哪个?" |
| 查找延迟最低的服务商 | | "GPT-4o的最低延迟服务商是哪个?" |
| 检查模型可用性 | | "Claude Sonnet 4现在可用吗?" |
cd <skill-path>/scripts && npx tsx resolve-model.ts "claude sonnet"
cd <skill-path>/scripts && npx tsx resolve-model.ts "gpt 4o mini"
cd <skill-path>/scripts && npx tsx resolve-model.ts "llama 3.1"confidencescore| Confidence | Score | Action |
|---|---|---|
| Use the model directly — the match is unambiguous | |
| Confirm with the user before proceeding | |
| Suggest the matches and ask the user to clarify |
resolve-model.tsidcompare-models.tsget-endpoints.tscd <skill-path>/scripts && npx tsx resolve-model.ts "claude sonnet"
cd <skill-path>/scripts && npx tsx resolve-model.ts "gpt 4o mini"
cd <skill-path>/scripts && npx tsx resolve-model.ts "llama 3.1"confidencescore| 置信度 | 分数 | 操作 |
|---|---|---|
| 直接使用该模型——匹配结果明确 | |
| 先与用户确认后再继续 | |
| 给出匹配建议并请用户澄清 |
resolve-model.tsidcompare-models.tsget-endpoints.tscd <skill-path>/scripts && npx tsx list-models.tscd <skill-path>/scripts && npx tsx list-models.tscd <skill-path>/scripts && npx tsx list-models.ts --category programmingprogrammingroleplaymarketingmarketing/seotechnologysciencetranslationlegalfinancehealthtriviaacademiacd <skill-path>/scripts && npx tsx list-models.ts --category programmingprogrammingroleplaymarketingmarketing/seotechnologysciencetranslationlegalfinancehealthtriviaacademiacd <skill-path>/scripts && npx tsx list-models.ts --sort newest # Recently added first
cd <skill-path>/scripts && npx tsx list-models.ts --sort price # Cheapest first
cd <skill-path>/scripts && npx tsx list-models.ts --sort context # Largest context first
cd <skill-path>/scripts && npx tsx list-models.ts --sort throughput # Most output tokens firstexpiration_datecd <skill-path>/scripts && npx tsx list-models.ts --sort newest # 按新增时间排序(最新优先)
cd <skill-path>/scripts && npx tsx list-models.ts --sort price # 按价格排序(最便宜优先)
cd <skill-path>/scripts && npx tsx list-models.ts --sort context # 按上下文长度排序(最长优先)
cd <skill-path>/scripts && npx tsx list-models.ts --sort throughput # 按吞吐量排序(输出令牌数最多优先)expiration_datecd <skill-path>/scripts && npx tsx search-models.ts "claude"
cd <skill-path>/scripts && npx tsx search-models.ts --modality image
cd <skill-path>/scripts && npx tsx search-models.ts "gpt" --modality texttextimageaudiofilecd <skill-path>/scripts && npx tsx search-models.ts "claude"
cd <skill-path>/scripts && npx tsx search-models.ts --modality image
cd <skill-path>/scripts && npx tsx search-models.ts "gpt" --modality texttextimageaudiofileopenai/gpt-4ogpt-4o-minicd <skill-path>/scripts && npx tsx compare-models.ts "anthropic/claude-sonnet-4" "openai/gpt-4o"
cd <skill-path>/scripts && npx tsx compare-models.ts "anthropic/claude-sonnet-4" "openai/gpt-4o" "google/gemini-2.5-pro" --sort pricepricecontextspeedthroughputopenai/gpt-4ogpt-4o-minicd <skill-path>/scripts && npx tsx compare-models.ts "anthropic/claude-sonnet-4" "openai/gpt-4o"
cd <skill-path>/scripts && npx tsx compare-models.ts "anthropic/claude-sonnet-4" "openai/gpt-4o" "google/gemini-2.5-pro" --sort pricepricecontextspeedthroughputcd <skill-path>/scripts && npx tsx get-endpoints.ts "anthropic/claude-sonnet-4"
cd <skill-path>/scripts && npx tsx get-endpoints.ts "anthropic/claude-sonnet-4" --sort throughput
cd <skill-path>/scripts && npx tsx get-endpoints.ts "openai/gpt-4o" --sort latencythroughputlatencyuptimepriceoperationaldegradedcd <skill-path>/scripts && npx tsx get-endpoints.ts "anthropic/claude-sonnet-4"
cd <skill-path>/scripts && npx tsx get-endpoints.ts "anthropic/claude-sonnet-4" --sort throughput
cd <skill-path>/scripts && npx tsx get-endpoints.ts "openai/gpt-4o" --sort latencythroughputlatencyuptimepriceoperationaldegraded| Parameter | Example | Effect |
|---|---|---|
| | Server-side category filter |
| | Only models supporting this parameter |
model.supported_parameters.includes("tools")?supported_parameters=toolsmodel.architecture.input_modalitiesmodel.architecture.output_modalitiesknowledge_cutoffexpiration_datelinks.detailsGET /api/v1/models/{author}/{slug}/endpoints{ data: { id, name, endpoints: Endpoint[] } }status0latency_last_30mthroughput_last_30mp50p75p90p99| 参数 | 示例 | 作用 |
|---|---|---|
| | 服务端类别筛选 |
| | 仅返回支持该参数的模型 |
model.supported_parameters.includes("tools")?supported_parameters=toolsmodel.architecture.input_modalitiesmodel.architecture.output_modalitiesknowledge_cutoffexpiration_datelinks.detailsGET /api/v1/models/{author}/{slug}/endpoints{ data: { id, name, endpoints: Endpoint[] } }status0latency_last_30mthroughput_last_30mp50p75p90p99fetchfetchformatModel()canonical_slughugging_face_iddefault_parametersknowledge_cutofflinksformatModel()canonical_slughugging_face_iddefault_parametersknowledge_cutofflinks{
"id": "anthropic/claude-sonnet-4",
"name": "Anthropic: Claude Sonnet 4",
"context_length": 1000000,
"max_completion_tokens": 64000,
"per_request_limits": null,
"pricing_per_million_tokens": {
"prompt": "$3.00",
"completion": "$15.00",
"cached_input": "$0.30"
},
"modalities": { "input": ["text", "image"], "output": ["text"] },
"supported_parameters": ["max_tokens", "temperature", "..."],
"is_moderated": false
}{
"id": "anthropic/claude-sonnet-4",
"name": "Anthropic: Claude Sonnet 4",
"context_length": 1000000,
"max_completion_tokens": 64000,
"per_request_limits": null,
"pricing_per_million_tokens": {
"prompt": "$3.00",
"completion": "$15.00",
"cached_input": "$0.30"
},
"modalities": { "input": ["text", "image"], "output": ["text"] },
"supported_parameters": ["max_tokens", "temperature", "..."],
"is_moderated": false
}{
"model_id": "anthropic/claude-sonnet-4",
"model_name": "Anthropic: Claude Sonnet 4",
"total_providers": 5,
"endpoints": [
{
"provider": "Anthropic",
"tag": "anthropic",
"status": "operational",
"uptime_30m": "100.00%",
"latency_30m_ms": { "p50": 800, "p75": 1200, "p90": 2000, "p99": 5000 },
"throughput_30m_tokens_per_sec": { "p50": 45, "p75": 55, "p90": 65, "p99": 90 },
"context_length": 1000000,
"max_completion_tokens": 64000,
"pricing_per_million_tokens": { "prompt": "$3.00", "completion": "$15.00", "cached_input": "$0.30" },
"supports_implicit_caching": true,
"supported_parameters": ["max_tokens", "temperature", "tools", "..."]
}
]
}{
"model_id": "anthropic/claude-sonnet-4",
"model_name": "Anthropic: Claude Sonnet 4",
"total_providers": 5,
"endpoints": [
{
"provider": "Anthropic",
"tag": "anthropic",
"status": "operational",
"uptime_30m": "100.00%",
"latency_30m_ms": { "p50": 800, "p75": 1200, "p90": 2000, "p99": 5000 },
"throughput_30m_tokens_per_sec": { "p50": 45, "p75": 55, "p90": 65, "p99": 90 },
"context_length": 1000000,
"max_completion_tokens": 64000,
"pricing_per_million_tokens": { "prompt": "$3.00", "completion": "$15.00", "cached_input": "$0.30" },
"supports_implicit_caching": true,
"supported_parameters": ["max_tokens", "temperature", "tools", "..."]
}
]
}| Field | Meaning |
|---|---|
| Cost per token in USD. Multiply by 1,000,000 for per-million-token pricing |
| Max total tokens (input + output) |
| Max output tokens from the best provider |
| Whether content moderation is applied |
| Per-request token limits (when non-null) |
| API parameters the model accepts (e.g., |
| Unix timestamp — use for sorting by recency |
| Non-null means the model is being deprecated |
| Median response latency over last 30 min |
| Median generation speed over last 30 min |
| Provider availability percentage over last 30 min |
| 字段 | 含义 |
|---|---|
| 每令牌的美元成本。乘以1,000,000可得到每百万令牌的价格 |
| 最大总令牌数(输入+输出) |
| 最佳服务商支持的最大输出令牌数 |
| 是否应用内容审核 |
| 每请求令牌限制(非null时有效) |
| 模型接受的API参数(例如 |
| Unix时间戳——用于按新增时间排序 |
| 非null表示该模型即将被弃用 |
| 过去30分钟内的中位数响应延迟 |
| 过去30分钟内的中位数生成速度 |
| 过去30分钟内服务商的可用百分比 |
resolve-model.tsidtoolsstructured_outputsreasoningweb_search_optionsexpiration_dateresolve-model.tsidtoolsstructured_outputsreasoningweb_search_optionsexpiration_date