/batch-inference:openrouter-batchfrom batch-inference
Run a bulk job through the OpenRouter Batch API (POST /api/v1/batches) for any non-Anthropic model — DeepSeek, GPT, Gemini, Qwen, GLM, Mistral — from a JSONL file of prompts, after finding which models are batch-capable and checking whether batch is actually cheaper than sync today. Use when the user says "OpenRouter batch", "batch it on OpenRouter", names a non-Claude model for a bulk job, or asks which models support batch.
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.
orexplorer batch (skill list-openrouter-models). A model is
batch-capable when a <id>:batch variant exists in /api/v1/models: 73 of 455 on 2026-11-04.python3 or_prices.py deepseek-v4.1-flash qwen3.8-flash --est-in 2000000 --est-out 500000
OpenRouter batch is not a flat 50% off. On 2026-10-19 deepseek-v4.1-flash:batch was
dearer than sync. On 2026-10-22 it was 0.05/0.15 against 0.30/1.20. gpt-oss-20b:batch and
glm-5.3-flash:batch were dearer than sync on both days. If sync is cheaper, run sync calls with
openrouter_sync.py instead (skill sync-bulk-run) and say so.
python3 openrouter_batch.py in.jsonl out.jsonl --model deepseek/deepseek-v4.1-flash \
--usage-log data/llm-usage.jsonl
--model is the base id. The :batch suffix is stripped if given, because the batch endpoint
is what selects batch pricing.--json schema|object|none. The default is object for deepseek/*, since DeepSeek's API has
no json_schema. For those models the schema goes into the system prompt and the reply is parsed
from the first {. The default for other models is schema.--reasoning off (default) sends {"enabled": false}. {"effort": "low", "exclude": true}
still bills reasoning tokens, because exclude only hides them.--provider <slug> pins one provider (provider.only, no fallbacks). Without it, OpenRouter
picks the cheapest eligible host. On 2026-10-22 a DeepSeek batch ran on "Sail Research", not
DeepSeek. Pin a provider when the data shouldn't go to an arbitrary host, or when outputs must
come from the first-party model.--resume <batch id> collects a batch that was already submitted.POST /api/v1/batches → {"id": "batch-…", "status": "validating"}. Body keys
endpoint, model, provider, completion_window must come before requests or you get a
400 (docs). requests is [{custom_id, body}], where body is a normal chat-completions
body.GET /batches/{id} 404s ("not found") for a moment right after submit. The script retries
through it for 5 minutes.validating → in_progress → finalizing → completed | failed | expired | cancelled.
Results come inline in results on the completed batch, as
{custom_id, response: {status_code, body}} or {custom_id, error}, out of order.
GET /batches (the list) returns results: null.usage.cost is the real charge, in US$.DELETE works only on finished batches.
Submit checks the estimated cost against the credit balance.OPENROUTER_API_KEY in the environment.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