/batch-inference:cheapest-batchfrom batch-inference
Run a bulk LLM job as cheaply as possible — DeepSeek V4.1 Flash via the OpenRouter Batch API or DeepSeek's own API off-peak, whichever costs less today, with reasoning off and JSON-mode fallbacks. Use when the user says "cheapest batch possible", "as cheap as possible", "use DeepSeek", "doesn't need to be smart", or for very large, simple jobs (formatting, tagging, short extraction) where Haiku's quality isn't needed.
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.
The rule: "cheapest batch possible" means DeepSeek, unless today's prices show something
cheaper at acceptable quality. If quality matters more than cost, use anthropic-batch (Haiku).
python3 or_prices.py deepseek-v4.1-flash qwen3.8-flash gpt-oss-120b --est-in <N> --est-out <N>
| Route | Price (US$/M in/out) | Use when |
|---|---|---|
OpenRouter batch, deepseek/deepseek-v4.1-flash | 0.05 / 0.15 on 2026-10-22 (it moves) | Batch is cheapest today and a 24 h window is fine. Default. |
OpenRouter sync, deepseek/deepseek-v4.1-flash, parallel (sync-bulk-run) | 0.045 / 0.50 on 2026-11-04 | Input-heavy jobs, or results wanted in minutes |
DeepSeek direct, deepseek-flash, https://api.deepseek.com | 0.15 / 0.60 off-peak, double at peak | OpenRouter batch is dearer today, the data must stay first-party, or results are wanted now |
DeepSeek's own platform has no batch API and no batch discount. "Batch" there means parallel sync calls run off-peak. Peak hours are 01:00–04:00 and 06:00–10:00 UTC on weekdays.
Measured on one annotation job (~1.8M in / 5.2M out): DeepSeek direct US$3.38 against
qwen/qwen3.8-flash via OpenRouter US$2.71. Price the alternatives instead of assuming
DeepSeek wins.
python3 openrouter_batch.py in.jsonl out.jsonl --model deepseek/deepseek-v4.1-flash \
--usage-log data/llm-usage.jsonl # add --provider deepseek to keep it first-party
Details are in openrouter-batch. Unpinned, OpenRouter may route the batch to a third-party
host (it did on 2026-10-22).
json_object with the schema in the system prompt (the runner's
default for deepseek/*).json_object sometimes returns only whitespace or a truncated object (5 of 150 rows on
2026-10-19). The runner reports those rows as error with raw. Resubmit them. If a row
fails every time, run it without response_format.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-inferenceOther plugins' skills for the same job
16 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.