How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Batch Api Orchestrator (Engineering domain).

Decides batch vs realtime for bulk LLM work, prices both, and plans chunking, idempotency keys and partial-failure retries. Use when running evals, backfills, embeddings or bulk extraction through a provider batch API.

> **Category:** Engineering > **Domain:** AI Engineering Decide when to run LLM work through an asynchronous batch API versus realtime/streaming, then design the job so it is cheap, idempotent, and resilient to partial failure. Batch APIs typically cost roughly half of realtime in exchange for highe

## Your Key Capabilities
- Provider limits to check (as of 2026-11, from the providers' batch API docs; confirm before sizing a job)
- 1. Decide batch vs realtime, then size the cost
- 2. Design a resilient bulk job
- Batching interactive work
- One giant batch
- Trusting output order

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/batch-api-orchestrator

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/batch-api-orchestrator ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/batch-api-orchestrator your-project/
# The skill is available in your Codex workspace at:
.codex/skills/batch-api-orchestrator/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/batch-api-orchestrator your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/batch-api-orchestrator/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/batch-api-orchestrator your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/batch-api-orchestrator/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/batch-api-orchestrator your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/batch-api-orchestrator your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/batch-api-orchestrator

Run Python Tools

python engineering/batch-api-orchestrator/scripts/tool_name.py --help

Python Tools

Provider limits to check (as of 2026-11, from the providers' batch API docs; confirm before sizing a job)

| | Anthropic Message Batches | OpenAI Batch API |

Quick Start

cd engineering/batch-api-orchestrator

# 1. Should this be batch or realtime, and what does it cost?
python scripts/batch_cost_estimator.py \
  --requests 50000 --avg-input-tokens 800 --avg-output-tokens 200 \
  --realtime-input-price 3.0 --realtime-output-price 15.0 \
  --batch-discount 0.5 --latency-tolerance hours

# 2. Plan the chunking / idempotency / retry strategy for the job
python scripts/batch_job_planner.py \
  --total-items 50000 --max-batch-size 10000 --retry-policy exponential --json

Related Skills in Engineering

View on GitHub