openrouter-benchmarks
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenRouter Benchmarks
OpenRouter 基准测试
Use OpenRouter's unified benchmarks endpoint to answer benchmark-backed model ranking and model-selection questions. The endpoint aggregates Artificial Analysis and Design Arena data and returns citation metadata that should be preserved when reporting results.
使用OpenRouter的统一基准测试端点来解答基于基准的模型排名和模型选择问题。该端点聚合了Artificial Analysis和Design Arena的数据,并返回引用元数据,报告结果时应保留这些元数据。
Prerequisites
前提条件
Set to any valid OpenRouter API key. Benchmarks do not require a management key.
OPENROUTER_API_KEYbash
export OPENROUTER_API_KEY=sk-or-v1-...将设置为任意有效的OpenRouter API密钥。基准测试不需要管理密钥。
OPENROUTER_API_KEYbash
export OPENROUTER_API_KEY=sk-or-v1-...Decision Tree
决策树
| User wants to... | Action |
|---|---|
| See benchmark-ranked models across sources | Call |
| Choose a model for an app/use case | Check whether Artificial Analysis or Design Arena contains a relevant signal; say when no direct benchmark exists |
| Find best coding, intelligence, or agentic models | Use |
| Query Artificial Analysis only | Use |
| Query Design Arena only | Use |
| Get raw API-shaped data for integration work | Return the raw |
| Understand all response fields or direct curl usage | Read |
Use instead when the user needs pricing, context length, supported parameters, modalities, or provider endpoint performance without asking for benchmark rankings.
openrouter-modelsFor creative writing, storytelling, or editorial apps, this endpoint currently has no direct writing-quality benchmark. Treat Artificial Analysis as a weak general-capability signal, and use only if the app performs multi-step planning/revision. Do not imply that Design Arena visual/code categories measure prose quality.
intelligence_indexagentic_index| 用户需求 | 操作 |
|---|---|
| 查看跨来源的基准排名模型 | 调用 |
| 为应用/用例选择模型 | 检查Artificial Analysis或Design Arena是否包含相关信号;若不存在直接基准则说明情况 |
| 寻找最佳编码、智能或Agent类模型 | 使用 |
| 仅查询Artificial Analysis | 使用 |
| 仅查询Design Arena | 使用 |
| 获取用于集成工作的原始API格式数据 | 返回端点的原始 |
| 了解所有响应字段或直接使用curl | 阅读 |
当用户需要定价、上下文长度、支持的参数、模态或供应商端点性能,且未询问基准排名时,请改用。
openrouter-models对于创意写作、故事创作或编辑类应用,当前该端点尚无直接的写作质量基准。可将Artificial Analysis的视为较弱的通用能力信号,仅当应用执行多步骤规划/修订时才使用。请勿暗示Design Arena的视觉/代码类别可衡量散文质量。
intelligence_indexagentic_indexAvailability Gate
可用性检查
Do not recommend a benchmark-ranked model until it passes an availability check through the models/endpoints API. Benchmark rows can contain dated or benchmark-specific values that are useful for attribution but are not always the exact routable OpenRouter model ID.
model_permaslugBefore recommending a benchmark candidate:
- Check for an exact
GET /api/v1/modelsmatch to the benchmarkid.model_permaslug - If there is no exact match but a model has
idequal to the benchmarkcanonical_slug, treat the benchmark row as evidence for that model family, not as a directly recommendable ID. Use the model's actualmodel_permaslugonly after verifying availability.id - Check or use
GET /api/v1/models/{author}/{slug}/endpointsopenrouter-modelsfor provider status.get-endpoints.ts - Prefer candidates with at least one clearly usable endpoint. If all endpoints are degraded, have , or the OpenRouter model page/API indicates the model is unavailable, exclude it from primary recommendations and explain that the benchmark result is not currently actionable.
uptime_last_30m: 0 - When availability is ambiguous, say so and recommend a verified available alternative instead of presenting the benchmark leader as the default choice.
Do not rely on endpoint alone. Model-level availability signals such as routing error messages, warning messages, zero request limits, empty endpoint lists, or provider-specific access restrictions can make a benchmark leader non-actionable even when one endpoint appears operational. If availability signals disagree, explain the ambiguity and avoid making that model the primary recommendation.
status: 0在推荐基准排名的模型之前,需通过models/endpoints API进行可用性检查。基准测试行可能包含过时或特定于基准的值,这些值可用于归因,但并非始终是可直接路由的OpenRouter模型ID。
model_permaslug推荐基准候选模型前:
- 检查是否存在与基准
GET /api/v1/models完全匹配的model_permaslug。id - 若没有完全匹配的,但某个模型的
id等于基准canonical_slug,则将基准测试行视为该模型系列的证据,而非可直接推荐的ID。仅在验证可用性后使用模型的实际model_permaslug。id - 检查或使用
GET /api/v1/models/{author}/{slug}/endpoints的openrouter-models获取供应商状态。get-endpoints.ts - 优先选择至少有一个清晰可用端点的候选模型。若所有端点均降级、,或OpenRouter模型页面/API显示模型不可用,则将其排除在主要推荐之外,并说明该基准结果当前无法实际使用。
uptime_last_30m: 0 - 当可用性不明确时,需说明情况并推荐已验证可用的替代方案,而非将基准排名第一的模型作为默认选择。
请勿仅依赖端点的。模型级别的可用性信号(如路由错误消息、警告消息、零请求限制、空端点列表或供应商特定的访问限制)可能导致基准排名第一的模型无法实际使用,即使某个端点看似正常运行。若可用性信号存在冲突,请说明这种模糊性,避免将该模型作为主要推荐。
status: 0API Usage
API 使用
Query parameters:
| Flag | Values | Notes |
|---|---|---|
| | Omitting it returns all sources. |
| | Maps to source-specific indices/categories. |
| | Design Arena only; defaults server-side to |
| | Design Arena only. |
| positive integer | Maximum number of rows returned by the API. |
Always preserve , , and ; include attribution when republishing benchmark data.
meta.citationmeta.source_urlmeta.as_ofWhen results include both sources, do not present them as a single absolute leaderboard: Artificial Analysis indices and Design Arena ELO use different scales. Compare within each source, or rerun with or for a source-specific ranking.
source=artificial-analysissource=design-arena查询参数:
| 标志 | 取值 | 说明 |
|---|---|---|
| | 省略时返回所有来源的数据。 |
| | 与来源特定的指数/类别对应。 |
| | 仅适用于Design Arena;服务器端默认值为 |
| | 仅适用于Design Arena。 |
| 正整数 | API返回的最大行数。 |
请始终保留、和;重新发布基准数据时需包含归因信息。
meta.citationmeta.source_urlmeta.as_of当结果包含两个来源的数据时,请勿将其展示为单一的绝对排行榜:Artificial Analysis的指数与Design Arena的ELO使用不同的评分标准。请在每个来源内部进行比较,或重新运行查询并指定或以获取特定来源的排名。
source=artificial-analysissource=design-arenaInterpreting Results
结果解读
- Artificial Analysis rows include ,
intelligence_index, andcoding_index; higher is better.agentic_index - Design Arena rows include ,
elo,win_rate,avg_generation_time_ms,arena, andcategory; highertournament_stats/elois better, lower generation time is faster.win_rate - and
pricing.promptare USD per token as decimal strings. Multiply by 1,000,000 for per-million-token costs.pricing.completion - identifies the benchmarked model entry. Verify it against
model_permaslugbefore using it as a chat/completions model ID.GET /api/v1/models - counts unique models in the response, which can differ from
meta.model_countwhen multiple Design Arena categories are returned.data.length
- Artificial Analysis的行包含、
intelligence_index和coding_index;数值越高越好。agentic_index - Design Arena的行包含、
elo、win_rate、avg_generation_time_ms、arena和category;tournament_stats/elo越高越好,生成时间越短速度越快。win_rate - 和
pricing.prompt为每token的美元成本,以十进制字符串表示。乘以1,000,000可得到每百万token的成本。pricing.completion - 标识被基准测试的模型条目。在将其用作聊天/补全模型ID之前,请与
model_permaslug进行验证。GET /api/v1/models - 统计响应中的唯一模型数量,当返回多个Design Arena类别时,该数值可能与
meta.model_count不同。data.length
Direct API Call
直接调用API
bash
curl 'https://openrouter.ai/api/v1/benchmarks?source=artificial-analysis&task_type=coding&max_results=10' \
-H "Authorization: Bearer $OPENROUTER_API_KEY"Read when implementing against the raw API or handling source-specific response shapes.
references/benchmarks-api.mdbash
curl 'https://openrouter.ai/api/v1/benchmarks?source=artificial-analysis&task_type=coding&max_results=10' \
-H "Authorization: Bearer $OPENROUTER_API_KEY"当基于原始API进行开发或处理特定来源的响应结构时,请阅读。
references/benchmarks-api.md