/batch-inference:sync-bulk-runfrom batch-inference
Run a bulk LLM job as parallel sync calls instead of a batch, usually on a cheap instruct model such as Hy4 Flash. Finds and probes candidates from OpenRouter's model list, compares cost against batch, pilots, then runs resumably with a hard spend cap and real measured cost. Use when sync is cheaper than batch today, the model has no batch variant, results are wanted in minutes, or the user says "just use sync", "do it with sync calls", "batch it with DeepSeek Flash", "find a cheap instruct model for this".
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.
A batch API isn't always the best way to run a batch. Cheap instruct models are often as cheap on sync, and sync finishes in minutes, shows failures as they happen, and works with models that have no batch variant.
Default model: tencent/hy4-flash, reasoning off (since 2026-11-23; DeepSeek V4.1 Flash before). It won a 30-model
screen for generating training sentences: 63 of 64 past the gate, about a seventh of DeepSeek's reasoning-off cost. Screened for short
generation only, not labelling or extraction. Skip to step 4 for a similar job, or when the user names it.
orexplorer bulk --limit 25 --items N --in-per-item I --out-per-item O
Estimate I and O from a few real items: tokens are about 4 characters of English, and much less efficient
for Hebrew, Arabic and other non-Latin scripts. Keep 8-15 across vendors and price bands (see
list-openrouter-models for the columns).
python3 or_models.py probe <id> <id> ...
Drop anything that isn't ok. A non-zero reasoning_tokens means reasoning didn't really switch off.
Run the same 30-50 items through each survivor with the production prompt, then score them (batch-defaults,
"screen wide, small"). Read the outputs: mechanical checks passed 20/20 for most models in the sentence screen,
and quality still ranged from 2 to 5.
orexplorer batch <model> --est-in T --est-out T
Sync can lose on output-heavy jobs. On 2026-11-04 DeepSeek Flash output was 0.50 sync and 0.15 batch, so a job with more output than input was cheaper as a batch. Say which you chose and why: speed can be worth it.
head -20 in.jsonl > pilot.jsonl
python3 openrouter_sync.py pilot.jsonl pilot.out.jsonl --model tencent/hy4-flash --usage-log data/llm-usage.jsonl
python3 or_models.py spend data/llm-usage.jsonl
Read the outputs. spend gives the measured tokens and cost per request: scale those to the full set, since
they beat the estimate. Get the user's yes on model, route and estimate before the full run.
python3 openrouter_sync.py in.jsonl out.jsonl --model tencent/hy4-flash \
--workers 8 --max-cost 2.00 --usage-log data/llm-usage.jsonl
batch-defaults).--max-cost stop, or to
retry failed rows.--max-cost stops new calls once measured spend reaches the cap. Calls in flight still finish, so it can
overrun slightly. Set it about 25% over the estimate.--workers 8 is a safe start. Raise it for speed, and lower it if 429s appear (they're retried with backoff).--provider <slug> pins one host when the data or the quantisation matters.Then report ok and failed counts and real cost, and run batch-research-record.
or_models.py account shows the key's spend today, this week and this month, to confirm a job's total.
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