which-llm
This skill provides a current Artificial Analysis plus OpenRouter snapshot and
Python commands for model selection data. Fresh cached data works offline.
Missing, stale, or undated data is replaced automatically from the published
daily snapshot, with main as a fallback. Normal use needs only Python 3.10+.
If neither published snapshot is current, the command explains the failure and
preserves the cache without recommending from stale data.
Run commands from this skill directory with python, or call scripts by path
with ${CLAUDE_SKILL_DIR} in Claude Code.
Capabilities
| Capability |
Command |
Produces |
| Inspect ranked models under constraints |
python pick.py [preset] [filters] |
Ranked evidence table |
| Compare named models |
python compare.py <model>... |
Side-by-side table |
| Inspect one model |
python profile.py <model> |
Model profile |
| Resolve natural names |
python resolve.py <model>... |
Selected slugs plus alternates |
| Resolve endpoint names |
python slug.py <model> |
Provider endpoint record |
| Generate Pareto frontier |
python frontier.py [preset] [filters] |
PNG chart plus CSV data |
| Inspect detailed AA datasets |
python data.py [dataset] [filters] |
Source-dated JSON |
| Export filtered rows |
python export.py [preset] [filters] |
CSV or JSON file |
query.py and plot_pareto.py remain available for compatibility, but the
atomic commands above are the fastest surface for normal use.
Evidence, Not Conclusions
The commands organize current evidence. They do not choose a model for the
agent or user. A default sort order is not a recommendation.
- Start with the user's stated constraints and objective.
- Present relevant tradeoffs, scope, and uncertainty before a conclusion.
- Recommend a model only when the user asks for a recommendation. State the
objective that produced it.
- If the user requests a different metric or weighting, show that view without
treating the earlier view as universally correct.
Cost Context
Token prices are rates. They do not establish workload or task cost without the
input and output token volumes. Caching, tool calls, reasoning tokens, retries,
and model behavior can materially change total spend.
- Do not use a blended token price as workload-cost evidence. A blend assumes a
token mix that may have no relationship to the user's workload.
intel-task$ and agent-task$ are benchmark-specific task-cost evidence.
They are not estimates of the user's application spend.
idx-run$ is the cost of a full benchmark run. It is not a per-call price.
- When useful, show benchmark task cost and input and output token rates side by
side, with each scope labeled.
- If a user asks why token price was not used, explain the rate versus workload
distinction and offer a direct rate-only comparison.
- Calculate a workload estimate only when token volume, cache behavior, tool
use, and retry assumptions are available. Label every assumption.
Pick Presets
| Preset |
Meaning |
best |
Highest intelligence. |
vision |
Text and image capable models. |
long-context |
Context window at least 256K tokens. |
open-weights |
Open-weight models. |
free |
Models with OpenRouter free prototype endpoints. |
coding |
Legacy Coding Index, available only when AA supplies it. |
Frontier Presets
| Preset |
X metric |
Y metric |
cost-intel |
Intelligence Index cost per task, minimized |
Intelligence, maximized |
agentic-cost |
Legacy Agentic Index cost per task, when available |
Legacy Agentic Index |
speed-intel |
End to end latency, minimized |
Intelligence, maximized |
tokens-intel |
Benchmark-run tokens, minimized |
Intelligence, maximized |
context-intel |
Context window, maximized |
Intelligence, maximized |
input-price-intel |
Input price per 1M, minimized |
Intelligence, maximized |
output-price-intel |
Output price per 1M, minimized |
Intelligence, maximized |
Shared Filters
pick.py, frontier.py, and export.py share these filters:
--pattern TEXT
--creator NAME
--reasoning / --no-reasoning
--open-weights / --no-open-weights
--free
--text / --no-text
--image
--video
--audio
--modality text,image
--min-intel N
--max-run-cost N
--max-input-price N
--max-output-price N
--min-context N
--min-coding N
--max-latency N
--max-index-tokens N
--min-index-tokens N
--max-cost remains an alias for --max-run-cost, the benchmark-run cost.
Use --max-input-price or --max-output-price for API price per 1M tokens.
A benchmark frontier must pair each score with that same benchmark's cost per
task. The commands reject known cross-benchmark cost and score pairs.
pick.py and export.py also accept --sort with intel, cost, ctx,
tokens, speed, coding, agentic, input-price, or output-price.
They also accept --top N.
pick.py shows clearly labeled one-filter relaxations when no rows match.
Use --if-empty error for strict empty-result failure. export.py accepts
--if-empty nearest for the same labeled recovery without writing a relaxed
data file.
compare.py resolves strictly by default. It accepts --resolve auto when
selecting the strongest ambiguous match and listing alternates is acceptable.
export.py accepts --fields core, pricing, context, benchmarks,
coding, speed, slugs, or full. Field groups can be combined with commas, such
as --fields pricing,context. Exact columns can be selected with
--columns name,openrouter_slug,coding_index.
Useful Argument Compositions
These are ordinary command shapes built from presets, filters, and sorts.
Replace N with a price ceiling in USD per million input tokens.
| Behavior |
Command shape |
| Intelligence-task cost efficiency |
python pick.py best --min-intel 50 --sort cost --top 5 |
| Fast quality shortlist |
python pick.py best --min-intel 30 --sort speed --top 5 |
| Low input-price shortlist |
python pick.py best --min-intel 40 --sort input-price --top 5 |
| Low-price image-capable shortlist |
python pick.py vision --min-intel 40 --sort input-price --top 5 |
| Coding-agent evidence |
python data.py coding-agents --sort indexScore --top 5 |
| Long-context ranked by input price |
python pick.py long-context --min-intel 40 --sort input-price --top 5 |
| Long-context under input-price budget |
python pick.py long-context --min-intel 40 --max-input-price N --sort input-price --top 5 |
| Low output-price shortlist |
python pick.py best --max-output-price 5 --sort output-price --top 5 |
| Strict no-match behavior |
python pick.py vision --free --min-intel 70 --if-empty error |
| Nearest no-match evidence |
python pick.py vision --free --min-intel 70 --top 5 |
Export Field Groups
| Field group |
Contains |
core |
Main quality, cost, context, speed, and OpenRouter columns. |
pricing |
Benchmark-run cost, token use, API prices, cache price, and slugs. |
context |
Context window, modalities, reasoning, open weights, and slug. |
coding |
API prices, context, OpenRouter slugs, coding scores, and coding benchmarks. |
benchmarks |
Current and legacy benchmark scores, including Briefcase, GDP.pdf, Terminal-Bench v2.1, and hallucination metrics. |
speed |
Output tokens per second, latency, speed percentiles, and measurement provider. |
slugs |
Internal slug, OpenRouter production slug, and free slug. |
full |
All tracked columns. |
Output Notes
- Every command emits a compact cost-scope reminder for the calling agent.
- Default profiles omit legacy blended-rate fields. Explicit full exports retain
the source columns for inspection.
idx-run$ is the estimated cost to run the Artificial Analysis benchmark
suite. It is not a per-call API price.
intel-task$ and agent-task$ are the matching weighted benchmark costs per
task. --sort cost sorts by intel-task$.
intelligence_index_cost_per_task_usd is the weighted Intelligence Index cost
per task.
agentic_index_cost_per_task_usd is the weighted Agentic Index cost per task.
idx-tok is total benchmark-run token use.
in$/1m and out$/1m are API prices per million tokens.
openrouter_slug is the production endpoint name.
openrouter_free_slug is a prototype option. Free endpoints can be
rate-limited or served differently from paid listings.
Examples
python pick.py best --min-intel 50 --sort cost --image --top 8
python pick.py vision --min-intel 40 --sort input-price --top 5
python data.py coding-agents --sort indexScore --top 5
python pick.py long-context --min-intel 40 --sort input-price --top 5
python compare.py gpt-5-5-medium glm-5-2
python resolve.py "gemini flash" "gpt nano"
python profile.py glm-5-2
python slug.py glm-5-2
python frontier.py cost-intel --max-x 1200 --out-dir artifacts
python data.py capabilities --sort capabilities.legal.headlineValue --top 5
python export.py open-weights --fields pricing,context --format csv
python export.py open-weights --reasoning --fields coding --format csv
Detailed datasets
Run python data.py to list available datasets, row counts, source dates, and
freshness. python data.py <dataset> returns ten raw records as JSON; use
--model TEXT, --fields a,b, --sort FIELD, --ascending, and --top N
(0 means all). Nested paths preserve AA's field names and units.
catalog preserves all model fields, including effort, licenses, speed
distributions, benchmark costs, and token breakdowns.
evaluations preserves benchmark subscores, confidence intervals, domain
breakdowns, and canonical evaluation token counts.
capabilities contains domain indices with their matching task costs, times,
tokens, and subscores. List a record to discover current capability names.
coding-agents contains agent and model configurations, scores, costs,
timing, token use, evaluation components, and version information.
media/* and speech/* contain AA's available image, video, and speech
leaderboard records. providers is the homepage comparison subset.
The legacy Coding and Agentic indices are no longer supplied by AA. For coding
agents, use data.py coding-agents; for individual model benchmarks, use
export.py --fields coding. Do not equate an agent configuration's score with
a model-only score. Keep scores, costs, and times from the same evaluation and
configuration. Elo, proportions, percentages, and WER retain source units;
lower WER is better. Inspect fields before choosing a numeric sort.
python data.py coding-agents --sort indexScore --fields displayLabel,indexScore,mean.costUsd,mean.agentWallTimeSec --top 5
python data.py capabilities --sort capabilities.legal.headlineValue --fields name,capabilities.legal --top 5
python data.py evaluations --model gpt-6-astra --fields name,gdpPdfAllPass,gdpPdfBreakdown
python data.py media/textToImage --sort elo --fields name,elo,lower95ci,upper95ci
python data.py speech/sttNonStreaming --sort werIndex --ascending
Each dataset keeps its own source date. An unavailable secondary source cannot
block the model refresh; any retained data keeps its old date and an error.
Commands refuse stale datasets. Complete coverage is limited to the shared
public datasets, not every AA article, provider endpoint, or historical chart.
Do Not Use For
- Evaluations or private benchmarks that Artificial Analysis does not publish.
- Models so new that Artificial Analysis has not indexed them yet.
- Authoritative non-OpenRouter provider pricing. Verify those prices with the
provider.
1---2name: which-llm3description: Inspect current LLM tradeoffs across quality, price, speed, context, modality, and OpenRouter availability. Use for model recommendations, comparisons, pricing checks, and code changes that add or swap an LLM.4---56# which-llm78This skill provides a current Artificial Analysis plus OpenRouter snapshot and9Python commands for model selection data. Fresh cached data works offline.10Missing, stale, or undated data is replaced automatically from the published11daily snapshot, with main as a fallback. Normal use needs only Python 3.10+.12If neither published snapshot is current, the command explains the failure and13preserves the cache without recommending from stale data.1415Run commands from this skill directory with `python`, or call scripts by path16with `${CLAUDE_SKILL_DIR}` in Claude Code.1718## Capabilities1920| Capability | Command | Produces |21|---|---|---|22| Inspect ranked models under constraints | `python pick.py [preset] [filters]` | Ranked evidence table |23| Compare named models | `python compare.py <model>...` | Side-by-side table |24| Inspect one model | `python profile.py <model>` | Model profile |25| Resolve natural names | `python resolve.py <model>...` | Selected slugs plus alternates |26| Resolve endpoint names | `python slug.py <model>` | Provider endpoint record |27| Generate Pareto frontier | `python frontier.py [preset] [filters]` | PNG chart plus CSV data |28| Inspect detailed AA datasets | `python data.py [dataset] [filters]` | Source-dated JSON |29| Export filtered rows | `python export.py [preset] [filters]` | CSV or JSON file |3031`query.py` and `plot_pareto.py` remain available for compatibility, but the32atomic commands above are the fastest surface for normal use.3334## Evidence, Not Conclusions3536The commands organize current evidence. They do not choose a model for the37agent or user. A default sort order is not a recommendation.3839- Start with the user's stated constraints and objective.40- Present relevant tradeoffs, scope, and uncertainty before a conclusion.41- Recommend a model only when the user asks for a recommendation. State the42 objective that produced it.43- If the user requests a different metric or weighting, show that view without44 treating the earlier view as universally correct.4546## Cost Context4748Token prices are rates. They do not establish workload or task cost without the49input and output token volumes. Caching, tool calls, reasoning tokens, retries,50and model behavior can materially change total spend.5152- Do not use a blended token price as workload-cost evidence. A blend assumes a53 token mix that may have no relationship to the user's workload.54- `intel-task$` and `agent-task$` are benchmark-specific task-cost evidence.55 They are not estimates of the user's application spend.56- `idx-run$` is the cost of a full benchmark run. It is not a per-call price.57- When useful, show benchmark task cost and input and output token rates side by58 side, with each scope labeled.59- If a user asks why token price was not used, explain the rate versus workload60 distinction and offer a direct rate-only comparison.61- Calculate a workload estimate only when token volume, cache behavior, tool62 use, and retry assumptions are available. Label every assumption.6364## Pick Presets6566| Preset | Meaning |67|---|---|68| `best` | Highest intelligence. |69| `vision` | Text and image capable models. |70| `long-context` | Context window at least 256K tokens. |71| `open-weights` | Open-weight models. |72| `free` | Models with OpenRouter free prototype endpoints. |73| `coding` | Legacy Coding Index, available only when AA supplies it. |7475## Frontier Presets7677| Preset | X metric | Y metric |78|---|---|---|79| `cost-intel` | Intelligence Index cost per task, minimized | Intelligence, maximized |80| `agentic-cost` | Legacy Agentic Index cost per task, when available | Legacy Agentic Index |81| `speed-intel` | End to end latency, minimized | Intelligence, maximized |82| `tokens-intel` | Benchmark-run tokens, minimized | Intelligence, maximized |83| `context-intel` | Context window, maximized | Intelligence, maximized |84| `input-price-intel` | Input price per 1M, minimized | Intelligence, maximized |85| `output-price-intel` | Output price per 1M, minimized | Intelligence, maximized |8687## Shared Filters8889`pick.py`, `frontier.py`, and `export.py` share these filters:9091```text92--pattern TEXT93--creator NAME94--reasoning / --no-reasoning95--open-weights / --no-open-weights96--free97--text / --no-text98--image99--video100--audio101--modality text,image102--min-intel N103--max-run-cost N104--max-input-price N105--max-output-price N106--min-context N107--min-coding N108--max-latency N109--max-index-tokens N110--min-index-tokens N111```112113`--max-cost` remains an alias for `--max-run-cost`, the benchmark-run cost.114Use `--max-input-price` or `--max-output-price` for API price per 1M tokens.115A benchmark frontier must pair each score with that same benchmark's cost per116task. The commands reject known cross-benchmark cost and score pairs.117118`pick.py` and `export.py` also accept `--sort` with `intel`, `cost`, `ctx`,119`tokens`, `speed`, `coding`, `agentic`, `input-price`, or `output-price`.120They also accept `--top N`.121`pick.py` shows clearly labeled one-filter relaxations when no rows match.122Use `--if-empty error` for strict empty-result failure. `export.py` accepts123`--if-empty nearest` for the same labeled recovery without writing a relaxed124data file.125126`compare.py` resolves strictly by default. It accepts `--resolve auto` when127selecting the strongest ambiguous match and listing alternates is acceptable.128129`export.py` accepts `--fields core`, `pricing`, `context`, `benchmarks`,130`coding`, `speed`, `slugs`, or `full`. Field groups can be combined with commas, such131as `--fields pricing,context`. Exact columns can be selected with132`--columns name,openrouter_slug,coding_index`.133134## Useful Argument Compositions135136These are ordinary command shapes built from presets, filters, and sorts.137Replace `N` with a price ceiling in USD per million input tokens.138139| Behavior | Command shape |140|---|---|141| Intelligence-task cost efficiency | `python pick.py best --min-intel 50 --sort cost --top 5` |142| Fast quality shortlist | `python pick.py best --min-intel 30 --sort speed --top 5` |143| Low input-price shortlist | `python pick.py best --min-intel 40 --sort input-price --top 5` |144| Low-price image-capable shortlist | `python pick.py vision --min-intel 40 --sort input-price --top 5` |145| Coding-agent evidence | `python data.py coding-agents --sort indexScore --top 5` |146| Long-context ranked by input price | `python pick.py long-context --min-intel 40 --sort input-price --top 5` |147| Long-context under input-price budget | `python pick.py long-context --min-intel 40 --max-input-price N --sort input-price --top 5` |148| Low output-price shortlist | `python pick.py best --max-output-price 5 --sort output-price --top 5` |149| Strict no-match behavior | `python pick.py vision --free --min-intel 70 --if-empty error` |150| Nearest no-match evidence | `python pick.py vision --free --min-intel 70 --top 5` |151152## Export Field Groups153154| Field group | Contains |155|---|---|156| `core` | Main quality, cost, context, speed, and OpenRouter columns. |157| `pricing` | Benchmark-run cost, token use, API prices, cache price, and slugs. |158| `context` | Context window, modalities, reasoning, open weights, and slug. |159| `coding` | API prices, context, OpenRouter slugs, coding scores, and coding benchmarks. |160| `benchmarks` | Current and legacy benchmark scores, including Briefcase, GDP.pdf, Terminal-Bench v2.1, and hallucination metrics. |161| `speed` | Output tokens per second, latency, speed percentiles, and measurement provider. |162| `slugs` | Internal slug, OpenRouter production slug, and free slug. |163| `full` | All tracked columns. |164165## Output Notes166167- Every command emits a compact cost-scope reminder for the calling agent.168- Default profiles omit legacy blended-rate fields. Explicit full exports retain169 the source columns for inspection.170- `idx-run$` is the estimated cost to run the Artificial Analysis benchmark171 suite. It is not a per-call API price.172- `intel-task$` and `agent-task$` are the matching weighted benchmark costs per173 task. `--sort cost` sorts by `intel-task$`.174- `intelligence_index_cost_per_task_usd` is the weighted Intelligence Index cost175 per task.176- `agentic_index_cost_per_task_usd` is the weighted Agentic Index cost per task.177- `idx-tok` is total benchmark-run token use.178- `in$/1m` and `out$/1m` are API prices per million tokens.179- `openrouter_slug` is the production endpoint name.180- `openrouter_free_slug` is a prototype option. Free endpoints can be181 rate-limited or served differently from paid listings.182183## Examples184185```text186python pick.py best --min-intel 50 --sort cost --image --top 8187python pick.py vision --min-intel 40 --sort input-price --top 5188python data.py coding-agents --sort indexScore --top 5189python pick.py long-context --min-intel 40 --sort input-price --top 5190python compare.py gpt-5-5-medium glm-5-2191python resolve.py "gemini flash" "gpt nano"192python profile.py glm-5-2193python slug.py glm-5-2194python frontier.py cost-intel --max-x 1200 --out-dir artifacts195python data.py capabilities --sort capabilities.legal.headlineValue --top 5196python export.py open-weights --fields pricing,context --format csv197python export.py open-weights --reasoning --fields coding --format csv198```199200## Detailed datasets201202Run `python data.py` to list available datasets, row counts, source dates, and203freshness. `python data.py <dataset>` returns ten raw records as JSON; use204`--model TEXT`, `--fields a,b`, `--sort FIELD`, `--ascending`, and `--top N`205(`0` means all). Nested paths preserve AA's field names and units.206207- `catalog` preserves all model fields, including effort, licenses, speed208 distributions, benchmark costs, and token breakdowns.209- `evaluations` preserves benchmark subscores, confidence intervals, domain210 breakdowns, and canonical evaluation token counts.211- `capabilities` contains domain indices with their matching task costs, times,212 tokens, and subscores. List a record to discover current capability names.213- `coding-agents` contains agent and model configurations, scores, costs,214 timing, token use, evaluation components, and version information.215- `media/*` and `speech/*` contain AA's available image, video, and speech216 leaderboard records. `providers` is the homepage comparison subset.217218The legacy Coding and Agentic indices are no longer supplied by AA. For coding219agents, use `data.py coding-agents`; for individual model benchmarks, use220`export.py --fields coding`. Do not equate an agent configuration's score with221a model-only score. Keep scores, costs, and times from the same evaluation and222configuration. Elo, proportions, percentages, and WER retain source units;223lower WER is better. Inspect fields before choosing a numeric sort.224225```text226python data.py coding-agents --sort indexScore --fields displayLabel,indexScore,mean.costUsd,mean.agentWallTimeSec --top 5227python data.py capabilities --sort capabilities.legal.headlineValue --fields name,capabilities.legal --top 5228python data.py evaluations --model gpt-6-astra --fields name,gdpPdfAllPass,gdpPdfBreakdown229python data.py media/textToImage --sort elo --fields name,elo,lower95ci,upper95ci230python data.py speech/sttNonStreaming --sort werIndex --ascending231```232233Each dataset keeps its own source date. An unavailable secondary source cannot234block the model refresh; any retained data keeps its old date and an error.235Commands refuse stale datasets. Complete coverage is limited to the shared236public datasets, not every AA article, provider endpoint, or historical chart.237238## Do Not Use For239240- Evaluations or private benchmarks that Artificial Analysis does not publish.241- Models so new that Artificial Analysis has not indexed them yet.242- Authoritative non-OpenRouter provider pricing. Verify those prices with the243 provider.