/batch-inference:check-api-pricesfrom batch-inference
Check today's LLM API prices across every lane in use: OpenRouter sync vs batch (live API), what each `~vendor/*-latest` alias really serves, Anthropic list and Batch prices, and DeepSeek direct peak and off-peak. Then record them, dated, in the batch notebook. Use when the user asks "what does X cost now", "check the latest prices", "is batch cheaper", "which is cheapest today", before estimating any paid bulk job when the stored price is more than 7 days old, or when a model id or alias may have moved.
Ships in batch-inference. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prices and model ids change constantly. A price is a fact only on the day it was checked. This
skill finds today's numbers and writes them to the notebook's prices.jsonl,
so the next session starts from a dated record.
Scripts are in this plugin's scripts/. Notebook: scripts/paths.sh notebook.
python3 or_prices.py --latest # what every ~*-latest alias serves today + its batch price
python3 or_prices.py --batch-only --cheapest 15 --est-in N --est-out N # cheapest batch lanes for a job
python3 or_prices.py gemini-3.8-flash deepseek-v4.1 --est-in N --est-out N # named models, sync vs batch
Add --record "$(scripts/paths.sh notebook)/prices.jsonl" to
write the rows shown, dated today.
~google/gemini-flash-latest has no :batch id. Put the
concrete id it resolves to in the batch.--latest sends one tiny sync call per alias and
reads the response's model field. On 2026-10-31 the gemini-flash alias was listed at
gemini-3.7-flash's price but served google/gemini-3.8-flash.deepseek-v4.1-flash-1017 has
none, so the script shows deepseek-v4.1-flash:batch, which may be an older snapshot.~deepseek/deepseek-flash-latest cost
0.014/0.144 sync against 0.050/0.150 batch. Compare both on the day.provider.only when the host matters.There is no price API for these. Fetch the page with WebFetch and ask for exact per-MTok numbers:
| Provider | Page | What to read |
|---|---|---|
| Anthropic | https://platform.claude.com/docs/en/about-claude/pricing | Model table (base in, cache hit, out) and the "Batch processing" table. Haiku 5.5 has a price step above 100k-token prompts. |
| DeepSeek direct | https://api-docs.deepseek.com/quick_start/pricing | Peak vs off-peak (off-peak = half). Peak is 01:00–04:00 and 06:00–10:00 UTC on weekdays. No batch API. |
The Anthropic page is long (over 50 KB). Grep the saved result for Haiku 5|Sonnet 5|Opus 5 and
Batch rather than reading it whole.
Append one prices.jsonl row per (provider, model, mode) in the repo's schema
(checked, provider, model, mode, usd_per_mtok_in, usd_per_mtok_cached_in, usd_per_mtok_out, turnaround, source, how, note). Record it even when the price is unchanged, so the date moves.
A change that shifts a lane choice also gets a line in verdicts.md (batch-research-record).
If the notebook is a git repo, commit and push it.
One table: lane, model id (concrete), sync in/out, batch in/out, est. job cost if a job is in view. Then one line naming the pick and why. Mark anything inferred rather than read live.
What SKILL.md sets; muted values are Claude Code's defaults
batch-inference@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin batch-inference16 skills in this plugin
/anthropic-batchRun a bulk job through the Anthropic Message Batches API — Claude Haiku 5.5 by default, half price, usually done in minutes — from a JSONL file of prompts, with structured JSON output, a cached system prompt, resume-by-batch-id and cost logging. The default lane for batch work. Use when the user says "Anthropic batch", "Haiku batch", "batch this with Haiku", "run it on the Batches API", or batch-defaults routes here./batch-defaultsPick the model, provider and lane for any bulk or batch LLM job (labelling, classification, extraction, synthetic data, summarising hundreds or thousands of items). Defaults: Claude Haiku 5.5 on the Anthropic Batches API for judgement work, Hy4 Flash on parallel sync for short generation, DeepSeek V4.1 Flash for other cheap volume (batch or sync, whichever costs less today), OpenRouter Batch API for other named models; the user's own defaults file overrides these. Use first whenever the user says "batch this", "run it as a batch job", "bulk job", "use Haiku", "cheapest batch possible", "do it with DeepSeek", or a task needs one LLM call per item over many items./batch-research-checkRead the research notebook before choosing a provider, model or lane for a bulk/batch LLM job, or before quoting a batch price — per-task screening tables (which model was picked for a task type and why), dated verdicts (use / avoid / watch), the latest price per provider and model, provider gotchas, and records of past runs with their measured cost. Use when planning any batch job, when the user asks "what's the cheapest/best way to batch this", "which batch provider", "what did that cost last time", or before estimating spend for a bulk run.Other plugins' skills for the same job