/batch-inference:batch-defaultsfrom batch-inference
Pick 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.
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.
orexplorerlives in the ai-model-research plugin. Run it asuvx --from git+https://github.com/danielrosehill/AI-Model-Research-Plugin orexplorer ..., or asorexplorerafteruv tool installfrom that URL. JSON by default; add--tablefor a human view.
scripts/paths.sh defaults prints their defaults.md if they have one. It
overrides everything below. Its When to use which backend guide decides first, in order, first match
wins. If there's no defaults.md, offer onboarding once, then carry on with the table below.batch-research-check before picking a lane or quoting a price. If its price for
the lane is over 7 days old, run check-api-prices. After every run, pilots and failures included,
run batch-research-record, and after a full run log-batch-run.Get the user's yes before every full run, whatever the amount: the lane, the alternatives with prices,
the estimate. Only a 10-20 item pilot goes ahead unasked. Check the current field, not just this
table: orexplorer bulk lists every cheap model that fits.
| The user says / the job needs | Lane | Skill |
|---|---|---|
| Example sentences for vocabulary terms, term contexts or glosses, short gated generation | Hy4 Flash (tencent/hy4-flash), OpenRouter sync in parallel, reasoning off (2026-11-23) | sync-bulk-run |
| Cheap volume work where sync beats batch today, or the model has no batch variant | Parallel sync calls on a screened instruct model | sync-bulk-run |
| Nothing specific; "batch this"; "Haiku"; anything needing general intelligence or judgement | Claude Haiku 5.5, Anthropic Message Batches API (the default) | anthropic-batch |
| Harder reasoning or writing quality that Haiku visibly fails at | Same lane, --model claude-sonnet-5-5. Say you escalated and why | anthropic-batch |
| "the cheapest batch possible", "cheap as possible", "do it with DeepSeek" | DeepSeek V4.1 Flash, via OpenRouter batch or DeepSeek direct, whichever is cheaper today | cheapest-batch |
| A named non-Anthropic model (GPT, Gemini, Qwen, GLM, Mistral…) | OpenRouter Batch API | openrouter-batch |
| Results needed in minutes | Parallel sync calls | sync-bulk-run |
| "Run it locally", "use Ollama", private data, offline, or the user's guide says so | The user's local backend | local-bulk-run |
Haiku 5.5 batch is US$0.05 in / 0.25 out per M tokens. Small batches finish in a minute or two, and large ones usually within the hour.
check-api-prices)For the exact model per use case (labelling, extraction, judge, teacher, synthetic data), use
pick-batch-model. For generating synthetic data, use the synthetic-data plugin (generate-text-data): varied
output comes from seeding, not from the choice of model.
US$ per M tokens, in / out. Read live on 2026-10-31: OpenRouter /api/v1/models with aliases
probed, and the Anthropic and DeepSeek pricing pages.
| Need | Pick | Batch | Sync | Note |
|---|---|---|---|---|
| General default, judgement, structured labels | claude-haiku-5.5, Anthropic Batches | 0.05 / 0.25 | 0.10 / 0.50 | Prompts over 100k tokens: 0.25 / 1.25 batch. Cache hits 0.01. |
| Better writing or reasoning | claude-sonnet-5.5, Anthropic Batches | 1.00 / 5.00 | 2.00 / 10.00 | |
| Google Flash quality, "Gemini flash latest" | google/gemini-3.8-flash, OpenRouter batch | 0.375 / 1.875 | 0.75 / 3.75 | What ~google/gemini-flash-latest served on 2026-10-31. About 7x Haiku batch on output. |
| Cheapest at decent quality | deepseek/deepseek-v4.1-flash, OpenRouter batch | 0.05 / 0.15 | 0.045 / 0.50 | The ~deepseek/deepseek-flash-latest sync alias (v4.1-flash-1017) was 0.014 / 0.144: cheaper than batch. |
| Cheapest at all, simple tasks | openai/gpt-oss-120b, OpenRouter batch | 0.03 / 0.136 | 0.15 / 0.60 | gpt-oss-20b is cheaper sync (0.018 / 0.09) than batch. |
| DeepSeek first-party | deepseek-flash direct, off-peak | none | 0.15 / 0.60 | Peak doubles it. No batch API. |
The cost order changes week to week. Haiku 5.5 batch is close to DeepSeek on price, so pick it unless the user names another model.
This is the quick version. For a large, recurring or quality-critical job, use setup-batch-eval.
Do not pick one model and run the full set on it. Spend the pilot money on breadth instead:
orexplorer bulk, then probe them, across vendors and price bands, including the table default and the
older and cheaper Flash / Flash-Lite / DeepSeek / Qwen-flash / Luna models. Most cheap models
are poor at instruction-heavy work, so the point is to find the good one, not to confirm a guess.claude-sonnet-5.5 via OpenRouter, effort low).
Read a handful of side-by-side items yourself.batch-research-record): the task, date, route, every
candidate's score and price, and the pick. Next time, check there first.A cautionary case: a full Haiku run (US$0.45) and a full Sonnet run (US$2.41) went out before any screen. The same US$3 would have screened about ten models on 50 items each.
schema.
Nullable enums are rejected (400). Use a "none" member and map it afterwards.--usage-log <project>/data/llm-usage.jsonl. Report the cost and token
totals when the run ends.scripts/or_prices.py <terms> --est-in N --est-out N.
OpenRouter batch prices move, and batch is sometimes dearer than sync.--effort low by default. DeepSeek and other OpenRouter
models run with reasoning off by default. Turn it up only when quality needs it.JSONL, one request per line:
{"id": "row-1", "system": "optional shared instructions", "user": "the item", "schema": {"type": "object", "...": "optional"}}
Keep system identical across rows. The Anthropic runner caches it, which cuts input cost on
large runs.
The scripts live in this plugin's scripts/ (${CLAUDE_PLUGIN_ROOT}/scripts when installed). They read keys
from the environment; if defaults.md names a secrets wrapper, put it in front of each command. Copy a
script into a project's scripts/ when the project will rerun it, so the project stays self-contained.
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-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./batch-research-recordWrite what a batch/bulk LLM job taught us into the research notebook — the run record with measured tokens and cost, model screening results in the per-task tables, new or changed provider prices with the date checked, a use/avoid/watch verdict, provider gotchas, and a sample of the outputs. Use at the end of every bulk or batch run (pilots included, and failures especially), after checking a provider's prices, or when the user says "save this to the research notebook", "record that", "note that this worked / to avoid".Other plugins' skills for the same job