Skip to content

Latest commit

 

History

History
546 lines (445 loc) · 47.7 KB

API.md

File metadata and controls

546 lines (445 loc) · 47.7 KB

Benchmark Heaven public API

2026-09-11 — New domain: Benchmark Heaven at benchmarkheaven.com

The product is now Benchmark Heaven (formerly Model Market Comparison). Its new primary base URL is https://benchmarkheaven.com. The previous base URL https://model-market-comparison.app.mintapis.com remains valid as a compatibility URL and serves the same endpoints and dataset — existing consumers do NOT have to migrate. Nothing else moved: API routes, JSON shapes, schema, model/offer/benchmark IDs, units, the Composite definition, settings keys, the GitHub repo and file paths are all unchanged. Browser preferences are stored per origin; the old hostname’s saved filters/theme do not automatically transfer to the new hostname.

All endpoints are read-only, return JSON, and are CORS-enabled (Access-Control-Allow-Origin: *), so they can be called from any site or tool — including directly from a browser.

Base URL (primary): https://benchmarkheaven.com Base URL (compatibility, unchanged, same endpoints): https://model-market-comparison.app.mintapis.com

The data is served from Postgres when DATABASE_URL is configured, otherwise from the committed data/dataset.json snapshot — the API shape is identical either way.

Endpoints

GET /api/benchmarks

All exact versioned registry entries, source/metric definitions, collection status and per-benchmark coverage. No family-only version aliases are accepted.

GET /api/jevbench/latest — current public JevBench leaderboard

This feed uses the same explicit released artifact as the live /jev-models page (currently v1.5.6). It returns measured/listed result rows already published in that artifact, including unranked disclosures; unmeasured request-queue entries are omitted. It does not discover newer files or publish drafts, sealed items, answers or predictions.

The JSON contains schema_version, revision, source (live/frozen page, pinned artifact URL and artifact SHA-256), headline, composite_option, weights, capability_policy, boards ({open: '/jev-models', api: '/jev-models/api'}) and systems. Each system contains:

  • key, name, source_url (project source link, or null).
  • board: open (ranked on /jev-models), api (hosted API offering, ranked on /jev-models/api) or reference (Jev 1.13.0, on the open-weights board but unranked).
  • axes: Intelligence, Calibration, Speed and Cost, all higher-is-better scores.
  • capability: arithmetic mean of Intelligence and Calibration, official rank, eligible, within_caps, and cap exclusion reasons. Only ranked systems within both official cost and median-latency caps receive a Capability rank. Eligibility uses the same adjusted median/fallback policy and tie ordering as the page. capability.rank is the combined rank across open-weights and API systems (kept for compatibility); capability.open_board_rank is the Capability rank on the open-weights board, i.e. the number /jev-models shows (null for API systems, the reference and systems outside the caps). Quote open_board_rank for /jev-models.
  • composite_score, rank (official Composite rank, combined across open-weights and API systems), open_board_rank (Composite rank on the open-weights board /jev-models; null for API systems and the reference), ranked, listing, and not_ranked_because. Capability rank and Composite rank are separate.
  • price: kind, usd_per_1000_decisions, and the published basis disclosure. Prices are per thousand decisions, not token prices; consult the basis for the pricing scenario. latency includes raw/adjusted median seconds and adjustment.

schema_version 2 (from JevBench v1.7.0, method v1.7). While the live board is a v1.7 board, schema_version is 2; feeds of earlier boards stay 1 and carry none of the fields below. Additions at the top level: restated_by (the release that restated the board, e.g. v1.7.0) and method (label, decision_limit_s = 10, treatment = share, and the rule in words: a decision whose measured latency is over 10 s counts as a wrong answer and as zero calibration for that item). Additions per system, next to the unchanged latency object (which keeps its raw/adjusted p50 and adds p95_s_raw, p95_s_adjusted and n, the number of decisions the times cover):

  • method: v1.7 for a row scored under the 10 s rule, v1.6 for a row that is re-measure pending (its numbers are its v1.6 values, it is not ranked, listing is remeasure-pending), null for dated-carry rows. method_status repeats it as v1.7, v1.6-pending or v1.5-carry.
  • decision_limit: the limit object verbatim (limit_s, treatment, n_over_limit, n_over_limit_answered_ok, speed_n, rule, speed_basis); null for rows without it.
  • previous: the row's values as published before the 10 s rule (board_release, method = v1.6, composite_score, capability, axes, rank, open_board_rank, api_board_rank). It is never mixed into the v1.7 values. Rows measured for the first time under the rule have no previous (null).
  • rescored_in (v1.7.0 for a re-scored row), new_in (a row measured first under the rule) and remeasured_in (a row measured again on the same items on a GPU that replaces its earlier CPU row in full); each appears only where it applies.

Missing measurements and ineligible ranks are null, never invented zeroes. The response is CORS-enabled, cached for five minutes, with X-Content-SHA256 covering the feed bytes. source.artifact_sha256 covers the original release bytes. For custom weights, the Composite is the weighted harmonic mean of active axes, with squared penalties for Intelligence, Speed and Cost below the floor of 50, even if an axis has zero weight. These exploratory scores do not replace official ranks; see the page method notes and lib/jevbench-v15-board.mjs.

Example: curl -fsS https://benchmarkheaven.com/api/jevbench/latest. Compare ranked keys at /jev-models?compare=a,b#compare; submit at /submit.

POST /api/mcp — read-only JevBench MCP server

A hosted Model Context Protocol server over the same data as /api/jevbench/latest. Streamable HTTP, stateless: send one JSON-RPC message per POST (Content-Type: application/json), get one JSON answer. No auth, no sessions, no event stream (GET answers 405), no batches, bodies up to 16 KB, CORS open. Protocol versions 2025-11-25, 2025-06-18 and 2025-03-26.

Tool Arguments Result
list_models board (all/open/api; Jev reference on both), eligible_only, sort_by (capability, composite, intelligence, calibration, speed, cost), limit (1–50, default 20), cursor compact rows sorted descending, missing scores last, next_cursor
get_model key (exact feed key) the full public feed row
compare_models keys: two different exact keys both rows, differences (first minus second, null if missing), compare-page URL (null for an open-weights + API pair: no page compares across boards)

Every result carries revision and artifact_sha256. Unknown fields or keys return isError: true with {ok:false,error:{code,message}}. All tools are readOnlyHint: true. Example:

curl -sS https://benchmarkheaven.com/api/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_models","arguments":{"eligible_only":true,"limit":5}}}'

Client config: {"mcpServers":{"benchmark-heaven":{"type":"http","url":"https://benchmarkheaven.com/api/mcp"}}}. In browsers that implement WebMCP (document.modelContext), every page registers the same three tools next to the catalog tools (search_benchmarks, get_benchmark_results, get_model_benchmark_summary).

GET /api/jevbench remains the legacy frozen v1 byte-exact aggregate for existing clients. Its X-JevBench-Status: legacy-frozen-v1 and successor Link header identify it as historical. Use /api/jevbench/latest for current results.

JevBench release APIs

Immutable, version-pinned JevBench result artifacts. The v1.4.2.x /families suffix returns the matching aggregate family supplement used by the hard-tier and sealed-set comparison radars. Each route returns the committed JSON bytes and an X-Content-SHA256 header; the readers reject item-level task text, answers and predictions. The v1.5.x releases have version-pinned results routes and no separate family-supplement route.

Release Results SHA-256 Family supplement SHA-256 Frozen page
v1.4.2.1 e4c5ec1b510212e29cba130a7a861096623c484dab9f5ecf9893360c1e993166 968b7e6ce30e539328e42b24d1b1379f3214675b966dd3cf814dff3a74770814 /jev-models/v1.4.2.1
v1.4.2.2 7f39b2f742a69ded7384fb7eb4c54daa9cf67b26e72e25133c6da1f8e49cf570 df41a1152f32b9f32448ae0da2ea3a304d84727254650a01ab540b3a5284a078 /jev-models/v1.4.2.2
v1.5.0 6b2f6b058b36203c98ec5f585eb8376038bc905f11db944f4e0bcd29c278c643 — /jev-models/v1.5.0
v1.5.1 6f2fa547454b1108fad701ef302f48450742562393d532d45eccd048f736a9e2 — /jev-models/v1.5.1
v1.5.2 01e1f0019ca3bd3b1183f5b701f069ba0c7bf52462d1103f88a03e01339c968b — /jev-models/v1.5.2

The live /jev-models page and /api/jevbench/latest share one explicit reviewed release pointer; the versioned pages remain frozen. The result and supplement files are under data/raw/benchmarks/jevbench/. Each result endpoint is GET /api/jevbench/<release> (for example /api/jevbench/v1.5.2).

Image JevBench

/image-jev-bench is the current public HTML results page for Image JevBench; the live aggregate artifact is v0.1.5 and there is no separate public JSON API for this benchmark. Its artifact is data/raw/benchmarks/jevbench/multimodal-preview/preview.json (SHA-256 c5829fb7a3b0a3c04f64446f6f1d821169795b82396216d5fbaf2d30bf4c5108). The prior v0.1.1, v0.1.2, v0.1.3 and v0.1.4 artifacts are retained as preview-v0.1.1.json, preview-v0.1.2.json, preview-v0.1.3.json and preview-v0.1.4.json in the same directory. The frozen v0.1.4 file has SHA-256 96592b31c1b419f1d85c5128dd8de6646927f18605e345b1d3652c9a07c4e9d8. The page publishes system-level aggregates only, not sealed images, tasks, answer keys or per-item predictions.

GET /api/benchmark-matrix

?models=<id>,<id>,… (1–10 catalog model ids; 400 without). Returns { matrix }: the release-style comparison matrix restricted to those models — rows (every benchmark with a result for at least one of them, re-indexed), groups, values[modelId] = [[rowIndex, value, basis], …] (basis 0 = measured, 1 = self-reported) and catalogRows (the full matrix's row count). Cached 5 minutes, CORS open. Added 2026-09-15 for the start page's benchmark table (CR-28.1).

Since 2026-09-16 (CR-41.1) runs of one board through the agent harnesses Claude Code and Codex — and, for the AA Coding Agent Index, its versions 1.4 and 1.5 — arrive as one row with each model's best recorded result. Such a row has id <key>::best-of[::<version>], boards (the board ids it stands for), and bestOf = { acrossVersions, variants: [{ id, benchmarkId, cohort, version }], pick: { <modelId>: <variant index> } } naming the exact run behind every value. The per-run results are unchanged in /api/benchmark-scores and the dataset.

GET /api/og/compare

?model=<id>&model=<id> (up to 4; same ids as /compare). The 1200×630 PNG link-preview image of a comparison: each model with its AA Intelligence Index, or "Coming soon" for an id that is not in the catalog yet. Ids are matched like the Compare page does (exact catalog id, then case/dot/dash/prefix-tolerant; see lib/compare-ids.mjs). Added 2026-09-22 (CR-122).

GET /api/benchmark-scores

Filters: benchmark_id, model_id, basis (measured, self_reported, derived), offset (default 0), limit (default 100, maximum 500). Returns observations, total, stored divergences, coverage and collection status. Both identity filters also return the sparse cell status. Unknown exact versions/models return 404; bad parameters 400. Derived observations include source_basis and formula/inputs. Every score includes its source URL, dates, immutable hash and locator. Unmatched source subjects have null catalog model IDs and remain queryable by benchmark.

The full dataset now includes benchmark_results with the registry, observations, missing cells, collection attempts, rejections, divergences and coverage. Model detail also returns benchmark_observations, benchmark_divergences, benchmark_coverage. See ingestion and missing-value contract. Composite scores and their existing slots retain their previous API behavior; Epoch general and Software Engineering ECI are additive score fields.

GET /api/dataset

The full dataset in one response — the canonical machine-readable feed: every model (with benchmarks, scores, all provider offers), the provider directory, source collection dates and counts. Cached 5 min (Cache-Control: public, max-age=300).

{
  "generated_at": "2026-07-12T…",
  "counts": { "models": 758, "families": 600, "providers": 85, "offers": 2368 },
  "sources": { "artificialanalysis": "2026-07-12", "openrouter": "2026-07-12", … },
  "models": [ { "id": "glm-5.2::max", "family_key": "glm-5.2", "family_name": "GLM 5.2",
    "org": "Z.ai", "variant": "max", "open_weights": true, "featured": true,
    "benchmarks": { "aa_coding_index": 68.8, "aa_coding_agent_index": 57.9,
      "aa_intelligence_index": 51.1, "aa_livecodebench": …, "aa_scicode": … },
    "designarena": { "frontend": { "elo": 1276, "battles": 4923 },
      "fullstack": { "elo": 1296, "battles": 1848 } },
    "offers": [ { "source": "Inceptron", "provider": "Inceptron", "platform": "Inceptron",
      "input_per_1m": 0.95, "output_per_1m": 3.04, "region": "eu", "unit": "per_1m_token",
      "eu_hosted": true, "non_us": true, "tee": false,
      "or_provider_slug": "inceptron", "data_private": true } ],
    "copilot": null } ],
  "providers": [ { "platform": "Nebius", "provider": "Nebius", "model_count": 25,
    "eu_hosted": true, "non_us": true, "country": "Netherlands", "data_private": true } ]
}

GET /api/models

List of models with a single chosen score, the cheapest 10:1-blended cost, and the top-5 cheapest providers per model. Every row also includes composite_base (the pre-projection mean-imputed value) and composite_coverage from 0 to 7. score, composite_unpenalised, and composite_base are null for Composite when no input is measured on that exact configuration; the internal neutral fallback 50 is never exposed as a score. composite_attached counts inputs attached from another family configuration. Attached inputs are shown as supporting evidence but do not qualify a model for Composite scoring on their own. When an exact input exists, attached inputs supplement the score; the site marks it "Thin data" when exact coverage + attached inputs is below 3. release_date is the model's release date (ISO day) or null.

Query params:

  • score — one of composite | aa_coding_index | aa_coding_agent | aa_intelligence_index | epoch_eci | epoch_eci_software | designarena_frontend | designarena_fullstack (default aa_coding_index).
  • featured=1 — only the curated featured set.
  • hasBenchmark=1 — only models with source benchmark evidence. This excludes zero-evidence rows even though their composite fallback is the neutral 50.

GET /api/models/{id}

One model by id (e.g. glm-5.2::max) or by family_key (e.g. glm-5.2): full benchmarks, all token offers, sibling reasoning variants, and the top-5 cheapest providers.

GET /api/providers

The provider/platform directory with per-provider model counts and the eu_hosted / non_us / country flags.

GET /api/meta

Dataset generated_at, counts, per-source collection dates, whether the data is served from postgres or the bundled snapshot, and revision. revision is the nonsecret SOURCE_COMMIT injected by Coolify; its identical value is also sent as X-Benchmark-Heaven-Revision. If deployment identity is unavailable it is explicitly unknown, never guessed.

GET /api/operator-status

Versioned operations receipt: last successful and attempted daily run, source dates, and source ages calculated at request time. refresh_claim: "none" means this endpoint never turns a failed attempt into a freshness claim.

GET /api/health

{ "ok": true, "db": true|false, "accounts": true|false } — liveness, whether a dataset database is wired, and whether optional sign-in is configured with a reachable accounts database.

/api/account and /api/auth/* belong to the site's optional accounts (2026-09-14). They are same-origin only, send no CORS headers and are not part of this data API.

Pricing / score conventions

  • Token prices are USD per 1M tokens, input and output separately. EUR-native snapshots retain the original EUR fields and store the audited ECB conversion rate/date used for USD normalization. An active catalog row may have null prices when the provider publishes no per-model rate. Context tiers, OpenRouter endpoint tiers, and managed routes such as Azure Direct versus Fireworks remain separate offers. Current GitHub Copilot usage is token-metered and converted to AI Credits at $0.01/credit; its current rates stay on the separate Copilot product axis. multiplier / usd_per_request apply only to eligible legacy annual Pro/Pro+ request billing.
  • 10:1 blended cost = (10·input + 1·output) / 11.
  • Since 2026-09-16 boards whose labels are model slugs (BullshitBench, ApprenticeBench, the Vals Index family) join the catalog through the reviewed data/raw/benchmarks/identity-map.json (rules: lib/board-identity.mjs), so their observations carry a subject.model_id and a join_note naming the rule. A label joins only when it states the exact model and a setting that exists as a catalog configuration; where the source publishes the setting it ran (Vals AI's reasoning_effort / compute_effort), that field decides. Nothing was renamed — there are simply fewer unmatched observations.
  • benchmark_results.coverage.by_model[id] counts cells per status. available counts every registry entry with a value; capability_available excludes Efficiency (cost) boards and is what the product's "#benchmarks" column shows, with total_capability_benchmarks as its denominator. An observation may carry published_stddev and sample_size (tasks evaluated) where the source publishes them.
  • models[].designarena is attached to one configuration per published source row. When Intelligence.ai's model registry names the tested effort in its display name (e.g. "GPT-6 Astra (xhigh)") the result joins exactly that catalog configuration; otherwise it is family-scoped and attached once to the deterministic family representative. designarena_attachment_note states which rule applied. Two named efforts of one family are two separate attachments.
  • OpenRouter's own benchmark runs are their own registry boards (openrouter-gpqa-diamond, openrouter-tau2-bench-airline, openrouter-search-{browsecomp,dsqa,hle,widesearch}, snapshot-2026-09-15, unit fraction) with a …-cost twin per board in category Efficiency holding OpenRouter's measured avg_cost_per_task in USD. They are separate identities from Artificial Analysis' same-named boards and must never be merged or compared as one board; the cost boards are a measured signal beside the score and are never an input to the adjusted cost model. Rows without a published reasoning effort attach once to the deterministic family representative and say so in their protocol; search rows carry the published effort and join that exact configuration or stay unjoined.
  • Score scales: composite and the AA indices are 0–100; raw DesignArena score keys return Elo (~1000–1400). The Coding Agent Index is the median across all published harnesses for the exact model/reasoning-effort variant (Claude Code / Codex / Cursor CLI / …); every harness result is retained and results are never copied to sibling variants. This existing field retains the dated v1.4 snapshot. AA's current v1.5 has different benchmark components and is collected separately at data/raw/aa-coding-agents-v1.5.json; it does not replace the Composite input.
  • Category score keys (cat_coding, cat_agentic, cat_science, cat_long_context) are 0–100 and are the weighted mean of that category's fixed anchor benchmarks (a saturated anchor weighs half since 2026-09-16); see the section below.
  • composite uses seven equal slots: AA Coding, source-matched AA Coding Agent, AA Intelligence, Epoch general ECI, Epoch Software Engineering ECI, DesignArena Frontend and DesignArena Full-Stack. AA values are clamped to 0–100; ECI values are percentile-normalized on their native scale. Each DesignArena board needs at least 200 battles and is converted from Elo to its expected score against a fixed Elo 1000 opponent: 100 / (1 + 10^((1000 − Elo) / 400)). Each observed slot is percentile-normalized over the current catalog's unique observed values. Every missing slot is assigned that model's mean observed percentile, making composite_base exactly the arithmetic mean of its available percentiles. With no reliable observed slot the fallback is 50; this fallback is not treated as benchmark evidence for family-representative selection. The returned composite adds a deterministic least-squares projection: if a model covers all reliable slots of another measured model and is no worse in each, the final scores preserve that dominance with a 0.1-point margin. composite_base exposes the pre-projection value. Family-scoped source results attach exactly once to deterministic collapsed-view representatives and are labeled with their attachment note.
  • Offer-level data_private is tri-state and must be read as such. true / false mean OpenRouter publishes a data policy for the provider serving that exact route and it does / does not satisfy both of OpenRouter's own filters, "Does not train" and "Zero retention". The field being absent means unknown — we could not read a published policy for that provider — and rendering that as "trains on your data" would be a claim neither we nor OpenRouter have made. Today 48 provider channels pass, 37 fail and 7 are unknown; the unknown ones are providers OpenRouter does not list at all, mostly European sovereign hosts. or_provider_slug records which OpenRouter provider the route resolved to; for OpenRouter routes it comes from the endpoint tag, which is OpenRouter's own identifier rather than a name match. Provider-level data_private is a summary over that channel's routes using the worst known verdict. Chutes is an explicit override to true in both places, because OpenRouter miscategorises it; the reason travels with the snapshot in data/raw/openrouter-data-policy.json, whose retrieved_at is also exposed as sources.openrouter_data_policy.
  • Offer-level eu_hosted says that this specific model offer is served from an audited EU location. eu_policy_equivalent is a separate company-specific classification that makes an offer eligible for the product's EU filter without asserting technical EU residency; it is currently set only on Azure Direct Global DeepSeek V4 Pro and Kimi K2.7 Code, whose inference may occur outside the EU. Provider-level eu_hosted only says the provider has at least some EU-hosted capacity; it must not be used by itself to infer residency for every offer.

Consumer update — 2026-09-08

At this September 8 release, the reference host became https://model-market-comparison.app.mintapis.com; it remains valid alongside the new primary host announced above. the former Render host is suspended. All route paths remain unchanged. The reference deployment serves bundled JSON, with no runtime database. No database migration or credentials are needed to consume the public feed.

Prefer GET /api/dataset or the Git-tracked data/dataset.json for ingestion. Use GET /api/models?score=composite for computed scores (Composite is computed by app code, not stored as a scalar in the raw dataset). Check each date in sources; generated_at only proves that a build ran, not that every source refreshed. The daily job checks AA, AA Coding Agent v1.5, OpenRouter, DesignArena, token efficiency, rotated usage/cache statistics and supported public/vendor benchmark recipes. Retained observations and unsupported or unreachable sources keep their original dates. data/raw/benchmarks/daily-checks.json records check outcomes separately from observation freshness. Curated provider snapshots and historical Coding Agent v1.4 have separate audit dates. Do not assume every source refreshes daily.

Additive fields under each AA-backed model's aa_metadata: available (boolean), is_open_weights and deprecated (boolean or null). During a small upstream publication lag, benchmark rows are retained with null metadata. Existing top-level booleans remain compatible: open_weights:false means open weights are not established, and deprecated:false means not known retired. Inspect the nullable fields to distinguish unknown from confirmed false. Do not infer an open license from a lab name.

Exact model IDs and effort variants remain distinct. In particular, scores for qwen3.8-max must not be copied to qwen3.8-max-0902, whose current evidence is pricing only. Nullable direct Azure Astra prices are not zero; OpenRouter's Azure offers are separate priced routes.

See CHANGELOG.md and September audit.

Phase 01 additions (2026-09-10)

Existing URLs, file paths and score meanings remain unchanged. sources.aa_coding_agents is the actual last collection date of the retained v1.4 snapshot, not today's date. sources.aa_coding_agents_v1_5 tracks the newly collected version. source_status explains this separation. The v1.5 raw rows carry exact source IDs, components and provenance; they will enter versioned benchmark views in phases 04–06.

Coding Agent Index v2.0 (CR-545, 2026-10-23)

AA replaced v1.5 with v2.0 (FrontierCode v1.1 Main, Terminal-Bench 4.0, SWE-Atlas-QnA-AA). sources.aa_coding_agents_v2_0 dates the current collection (data/raw/aa-coding-agents-v2.0.json, benchmark id aa-coding-agent-index::2.0). sources.aa_coding_agents_v1_5 is now the frozen date of the last v1.5 capture (2026-10-22). The three versions are separate benchmarks with different components; their scores are never combined, ranked or compared as one scale.

Coding Agent Index v2.1 (CR-760, 2026-11-16)

AA replaced v2.0 with v2.1 (FrontierCode-AA 2.0, Terminal-Bench 4.1, SWE-Atlas-QnA-AA); the page first stated v2.1 in the 2026-11-14 daily capture. sources.aa_coding_agents_v2_1 dates the current collection (data/raw/aa-coding-agents-v2.1.json, benchmark id aa-coding-agent-index::2.1). sources.aa_coding_agents_v2_0 is now the frozen date of the last v2.0 capture (2026-11-13). The four versions are separate benchmarks; their scores are never combined, ranked or compared as one scale.

sources.provider_meta (since 2026-09-14) dates the daily cross-check of the curated country field against OpenRouter's provider table, i.e. the date of the table it read. The judgment fields (eu_hosted, non_us, hyperscaler, notes) keep their own date in data/raw/provider-meta.json → judgments_checked_at; source_status.provider_meta.note states both. Known, explained country disagreements live in country_disputes.

models[].aa_metadata.retained_fields records source, collected_at and reason for each metadata field retained from an older AA publication after the current leaderboard stopped providing it. A snapshot refresh does not advance those field dates.

Phase 02 additions — token and caching evidence (2026-09-10)

All existing URLs, files, fields, prices and Composite inputs retain their meanings. Read the additions from GET /api/dataset or data/dataset.json. The full model returned by /api/models/{id} includes token_efficiency; the compact /api/models listing keeps its existing shape. Adjusted-cost computation/UI is a later phase.

An observation has { value, source, url, collected_at, basis }. value can be a number or the documented token-count object. basis is measured (AA benchmarks or OpenRouter workload telemetry), self_reported (Chutes' own counters or catalog prices), derived (explicit arithmetic), or assumed (applying a global workload ratio to a different model). source_basis records the input classification for derived/assumed values. Missing observations are null, never zero.

JSON path Meaning
models[].token_efficiency.aa.tokens_per_task.value AA intelligenceIndexOutputTokensPerTask: { reasoning, answer, output }, output tokens per Intelligence Index task for the exact AA UUID/effort.
models[].token_efficiency.aa.canonical_token_counts.value AA canonicalIntelligenceIndexTokenCount: { input, output, answer, reasoning }, totals over its canonical benchmark run.
models[].token_efficiency.aa.benchmark_input_output_ratio Canonical input/output quotient, explicitly interpretation: benchmark_proxy. It is not observed user usage and is not the workload fallback.
models[].token_efficiency.input_output_ratio Preferred empirical OpenRouter workload ratio, otherwise the Chutes global fallback. Includes fallback, scope, window, and a fallback_reason/evidence_ref when assumed.
models[].token_efficiency.attempts Source attempts/outcomes, including missing API usage fields, exact-ID gaps, uncollected pages, incomplete windows and fallback evidence. Null attempt dates mean no fetch occurred.
efficiency.global_io_ratio Chutes ratio plus source totals, seven completed UTC dates, cohort selection and returned/included/excluded-row coverage.
efficiency.openrouter_endpoints[or_model_id][endpoint_tag] Exact pair registry: provider name, endpoint UUID when verified, cache-hit observation and cache read/write price observations.
efficiency.aa_unmatched.value Collected AA rows whose UUID is not yet in the model catalog. Kept with provenance; never attached to a similarly named model.
efficiency.coverage Explicit model/pair denominators and coverage counts. schema_version is 1.

Workload selection uses exact published OpenRouter IDs or an unambiguous sole offered SKU. Model pages provide appStats.state.data.model_chart; weekly rankings extend coverage through an exact canonical-slug join, with :free kept separate. Both use sum(total_prompt_tokens) / sum(total_completion_tokens). The seven-day page window excludes today; incomplete windows remain unavailable. These statistics cover all apps/effort configurations on that SKU, not an isolated coding-agent cohort. No family-name join or AA benchmark ratio substitutes for workload observations.

The Chutes ratio uses token-positive chute/day rows from /invocations/stats/llm over the previous seven completed UTC days, including published anonymized aggregates. It sums input and output independently, rather than averaging ratios. Raw counters are self-reported; the global quotient is derived; its assignment to another model is assumed. This is general Chutes traffic, not a coding-agent-only sample.

An endpoint entry's cache_hit_rate.value is a fraction from 0 to 1, taken from OpenRouter providerSummaries[].cacheHitRate. The source endpointId is joined to the model page's endpoint id, then to its exact provider_slug routing tag. The effective-pricing API's base providerSlug is not an endpoint tag. Display names such as Fireworks, Fireworks US and Fireworks Fast cannot establish equivalence. Duplicate tags or identity conflicts get null cache observations and an explicit status. Missing statistics are sparse coverage, not a zero hit rate.

OpenRouter does not publish the underlying cache-rate numerator/denominator or the exact summary interval in this response. summary_window is null; chart_date_range describes the accompanying chart only. Do not assume it defines the summary interval. Cache read/write observations use USD per million tokens, converted from the dated public endpoint catalog. Existing offer prices remain unchanged; page-scraped price observations also remain in the raw snapshot.

New sources: aa_efficiency, openrouter_efficiency, chutes_efficiency. The OpenRouter source date is the collector run, not a claim that every page was refreshed. Individual dates survive rotation and failed fetches. Workload observations older than 30 days fall back to Chutes; retained cache observations and a stale Chutes fallback expose stale: true after 30 days. Consumers should inspect observation dates/status, not just generated_at.

const ds = await (await fetch('/api/dataset')).json();
const model = ds.models.find(m => m.id === selectedModelId);
const io = model.token_efficiency.input_output_ratio;
const offer = model.offers.find(o => o.or_model_id && o.endpoint_tag);
const cache = offer && ds.efficiency.openrouter_endpoints[offer.or_model_id]?.[offer.endpoint_tag];
// io.value = input tokens per output token; io.fallback says whether it is assumed.
// cache?.cache_hit_rate?.value is null/absent when unknown, with status explaining why.

Raw files: data/raw/aa-efficiency.json, openrouter-efficiency.json, chutes-efficiency.json. Run npm run data:efficiency for independent refreshes. fetch-live.mjs aa also refreshes AA efficiency; fetch-live.mjs or refreshes the weekly ranking, four model pages in rotation and the Chutes fallback. The three recipes are under ops/rebuild-2026-09/skills/ for phase-09 installation. During a live AA efficiency shrink, fetch-live.mjs aa confirms the complete parsed row set on a second public AA model page before replacing the retained snapshot.

Production continues to use bundled JSON. Optional Postgres installations should run node scripts/seed-db.mjs: its idempotent dataset_meta.extensions JSONB addition preserves the new top-level fields (and existing source-status metadata). An old seed falls back to the bundled snapshot until reseeded.

Effective-cost UI (phase 03)

The UI now defaults to modeled USD/task. Raw API input_per_1m, output_per_1m and cache fields retain their existing USD/million units and paths; no raw field was renamed or silently converted. Consumers can import the pure effectiveCost / fixedCost functions from lib/effective-cost.mjs. effective_cost_per_task and effective_cost_per_1m_tokens are separate return fields, with resolved inputs, dollar terms and explicit assumptions. See effective-cost policy for all fallbacks and workload limitations. The UI settings key is now mmc.settings.v6; adjusted costs and the retained fixed-blend alternatives are global and persisted.

Benchmark exploration (phase 06)

The canonical dataset/benchmark endpoints keep their existing fields. GET /api/benchmark-scores additionally accepts observation_id for exact row lookup, composable with benchmark_id, model_id and pagination.

GET /api/benchmark-view?model=<id> (repeat up to four) supplies a bounded UI projection with versioned axes, sources and fixed catalog peer statistics. ?axis=<id> instead selects one published evaluation group including unmatched source identities. These presentation IDs include version, unit and harness/configuration and may change if source protocol metadata changes (2026-09-23, F-165(a): a vendor launch row's group now ends with Vendor-reported by <vendor> instead of the generic default, which moved 96 axis IDs); use registry IDs and observation IDs from the canonical APIs for integrations. The view is additive and never changes Composite. Historical estimates on an axis are labelled and include sourceStateId, sourceBenchmarkId, bridgeCount, spread, uncertainty, hops, path and chainIqrRelative when applicable; a multi-hop path is never flattened into an apparently measured value. The six history-only headline boards are projected onto the current dated AA/ECI/DesignArena axes and do not increase the registry benchmark count. Since 2026-09-15 the response also carries indexAxes: Epoch ECI and Epoch Software ECI as dated snapshot axes (same axis shape, unit ECI, family-scope values attached to the family representative configuration), filtered to the requested models; they are separate from axes and never enter the Benchmaxxing signal. See explorer methodology.

Benchmaxxing estimates (2026-09-12 correction)

GET /api/benchmaxxing?model=<id> returns up to 25 estimated results for that catalog model on exact benchmark versions where the catalog records no result of any kind for it. ?axis=<axisId> instead returns up to 50 estimated results for catalog models with no result on that exact axis. Unknown identifiers return 404; missing/ambiguous parameters return 400. Cached 5 min (Cache-Control: public, max-age=300), CORS *.

Every prediction is an estimate, never a measurement: an ordinary least-squares fit, in native units, over catalog models measured on both exact benchmark versions — published only when the pair shares at least 12 measured catalog models and |Pearson r| is at least 0.5 (measured results only, low-sample rows excluded). Each row carries point plus a roughly 95% interval (low/high, widened by residual noise, sample size and leverage), the predictor axis (predictor.axisId, always one exact version), the number of shared measured models n, r, r2, the predictor value used (predictorValue), and outsideFitRange flagging extrapolation beyond the fit cohort. Target axes keep their exact version and cohort; versions and cohorts are never mixed or pooled, and estimates never count as benchmark results anywhere else in the API. For a target with a documented finite scoring range, a point estimate outside that range is omitted rather than clipped; an unbounded range is not inferred from its unit (in particular, negative Elo remains valid). The bottom-decile logic lives in the /benchmaxxing page itself: measured results only, at least 20 measured catalog peers per axis, worst decile direction-adjusted, aggregate tag requires at least 4 axes across at least 2 benchmark families. Nothing here changes any canonical benchmark endpoint, score, ID, unit or Composite input.

Coding-agent sources, harness and cost (phase 11)

Real-SWE observations reach the same endpoints with no new path. GET /api/benchmark-scores returns their native unit (percent), basis: measured, confidence_interval (95 %), subject.harness, and full source provenance; every Real-SWE row has subject.model_id: null. The per-rollout cost is a separate benchmark (realswe-cost::snapshot-2026-09-12) with unit USD, so a consumer that wants cost joins on subject.source_id + harness rather than reading it off the score row.

GET /api/benchmark-view?axis=<id> now also exposes, on the axis: publicationScope ({tasks, runs, configurations, rollouts} for Real-SWE) and detailNote; and on each row: harness, confidenceInterval and costPerRollout (USD, when a matching cost observation exists). A model scored under two harnesses yields two axes and two rows — the adapter never merges them. Historical rows remain under axis.estimates, and not_comparable historical rows carry a machine-readable cause (insufficient_bridges / spread_too_wide) with cause_value. All of this is additive; no raw benchmark path, field or unit changed.

CursorBench 4.0 (secondary, non-Composite)

The registry also exposes Cursor's published CursorBench 4.0 SSR table as two exact versioned benchmark IDs: cursorbench::4.0 for the score (percent, higher is better) and cursorbench-cost::4.0 for published cost per task (USD, lower is better). Both are self_reported source claims and are excluded from the Composite. Each contains the source's 43 model/effort labels, with subject.model_id: null unless a future capture publishes an exact catalog checkpoint identity; effort aliases are never inferred. Rows remain queryable through GET /api/benchmark-scores?benchmark_id=... and include the exact source hash and HTML-table locator. The collection plan captures only the robots-allowed /cursorbench page, requires the CursorBench 4.0 version heading, and does not call Cursor's disallowed /api/ paths.

Vals Index v2 and FrontierCode 1.1 (secondary, non-Composite)

Same shape and query path as CursorBench. Vals AI (independent evaluator, basis measured): vals-index::2 and its seven components vals-index-finance-agent::2, vals-index-emb::2, vals-index-terminal-bench-2.1::2, vals-index-vibe-code-bench::2, vals-index-code-migration::2, vals-index-legal-research::2, vals-index-hlab::2 (percent, higher is better, 56 model slugs each), plus vals-index-cost::2 (USD per test, lower is better, 55 rows). subject.source_id is the Vals model slug; protocol carries the row's stderr, latency, effort and provider verbatim. Cognition FrontierCode 1.1 Main (self_reported, owner-approved after a critic review): frontiercode::1.1 (percent; basis: "derived", source_basis: "self_reported", ×100 from the published fraction, input kept in derivation.inputs) and frontiercode-cost::1.1 (mean USD per rollout). subject.source_id is "<model>|<effort>" and subject.harness the source harness.

Self-reported release-document scores (2026-09-16, secondary, non-Composite)

benchmark_results.observations now also carries observations whose id begins with self-reported: — benchmark numbers a lab published about its own models in a system card, model card or technical report. They are basis: "self_reported" with comparison_key: null, sit on existing registry identities (currently swe-bench-verified::snapshot-2026-09-10, swe-bench-multilingual::snapshot-2026-09-10, swe-bench-multimodal::snapshot-2026-09-10, longbench::2, terminal-bench::4.0), and are excluded from the Composite and from every category score. Rows whose catalog configuration is unresolved keep subject.model_id: null and remain unmatched source identities.

source.file points at the retained capture under data/raw/benchmarks/self-reported/<date>/; for a release PDF that file is the pdftotext -layout text layer of the captured bytes and source.locator names the original document's SHA-256 and byte length alongside the exact document line the value was read from and the header line that identifies the model's column. protocol names the reporting lab, the configuration the document stated, and — where a document prints one column for two products — that the value is that shared column's. Nothing about existing paths, fields or units changed; queries through GET /api/benchmark-scores?basis=self_reported return these alongside the earlier vendor rows.

Speed and context (2026-09-15)

models[].aa_speed = { output_tps, ttft_s }: Artificial Analysis' median output tokens per second and seconds to first token, from the same API v2 read as the AA scores (sources.artificialanalysis). Both are null when AA has not speed-tested the model — AA sends 0 / 0 for those, and the dataset no longer copies the zeros. models[].aa_metadata.context_window_tokens is AA's context window. GET /api/benchmark-view mirrors them per model as outputTps, ttftS, contextTokens, plus speedDate. These are model-level figures, not per provider route, and are not part of the Composite or any filter.

Category scores (2026-09-15)

models[].category_scores is an object with any of cat_coding, cat_agentic, cat_science, cat_long_context — a model's weighted mean over that category's anchor benchmarks, 0–100, rounded to one decimal. The field is absent (and the key omitted) when the model lacks a result on any anchor: a category score is never a partial average over an easier subset. dataset.category_scores publishes the anchor set this build resolved: { version, categories: [{ key, label, group, rows: [{ id, name, version }] }] }, where each row is the newest published version of that benchmark. The definition (including why Reasoning and Vision have no category score) lives in data/category-score-anchors.json and on /about#category-scores.

GET /api/models?score=cat_coding (and the other three keys) returns them like any other score; models without the score return score: null.

Changed 2026-09-16 (CR-38.2): anchors are weighted, not averaged flat. An anchor whose top five independently measured catalog results average at least 90 % of its own ceiling is saturated and counts at half weight, because it no longer separates the best models. Today that is GPQA Diamond in Science, so cat_science = (CritPt + 0.5 × GPQA Diamond) / 1.5 — published cat_science values are about ten points lower than in builds before 2026-09-16; the other three category scores are unchanged. A preference/judge score may not be an anchor at all and the build fails rather than redefine a score silently. The weight and the rule live in data/category-score-anchors.json (saturation_weight).

For agents: WebMCP (2026-09-17, CR-56)

Two routes. Headless / server-side agents use the HTTP endpoints above. Agents driving a browser can use WebMCP: on every page, in browsers that expose navigator.modelContext.registerTool (top-level page only; the site sends Permissions-Policy: tools=(self), so cross-origin frames get nothing), the site registers three read-only tools (annotations.readOnlyHint: true). They need an open benchmarkheaven.com tab and a WebMCP-capable browser; without support nothing is registered and the page is unchanged. The tools call the public GET endpoints above (/api/benchmarks, /api/benchmark-scores) with credentials: "omit", so they return the same published data.

Tool Input (JSON Schema, no extra fields) Output
search_benchmarks query? (≤ 100 chars), category?, limit? 1–25 (default 10), cursor? benchmarks[]: benchmark_id (exact versioned id), name, family, version, category, metric, unit, higher_is_better, range, maintainer, status, superseded_by, source_url, last_verified, models_with_results; total, next_cursor
get_benchmark_results benchmark_id (exact), model_ids? (≤ 10 exact catalog ids), limit? 1–50 (default 25), cursor? (without model_ids) benchmark (as above) and results[] (or models[] per requested id): model_id (null for an unmatched source subject), source_subject, variant, harness, value (native unit), unit, basis, protocol, source {url, retrieved_at, published_at, locator}
get_model_benchmark_summary model_id (exact, variant included, e.g. kimi-k3::max), benchmark_ids? (≤ 25), limit? 1–50 results[] as above plus benchmark_name, benchmark_version, higher_is_better; a requested benchmark without a result: { value: null, status: "no_published_result" }

Each call returns { content: [{ type: "text", text: <JSON> }], structuredContent: <JSON>, isError }. The JSON has ok: true, or ok: false with error.code invalid_input, not_found (unknown exact id) or unavailable. Example: get_model_benchmark_summary({ "model_id": "claude-opus-5::max", "benchmark_ids": ["aa-gpqa-diamond::snapshot-2026-09-10"] }). Freshness is per result (source.retrieved_at) and per benchmark (last_verified); the daily refresh runs at 05:17 UTC. No account, cookies, tracking or write actions. Implementation: lib/webmcp-tools.mjs, components/WebMcpTools.tsx.