Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Decides batch versus realtime LLM calls for bulk work, prices both, and plans chunking, idempotency keys and partial-failure retries.
50% 50%0 ptsof checks passed
Scored 50% with the skill and 50% without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
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 higher latency (results arrive over minutes to hours, not milliseconds), which makes them ideal for evals, backfills, embeddings, and bulk classification/extraction — and wrong for anything a human is waiting on. This skill is model- and vendor-agnostic: it reasons about the batch pattern, not any one provider's API.
Before recommending or designing a batch job, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--latency-tolerance and the batch-vs-realtime verdict).--requests, --avg-input-tokens, --avg-output-tokens for the cost estimate).--realtime-input-price, --realtime-output-price, --batch-discount; defaults are neutral placeholders, not real prices).Ask about the two or three inputs that matter most for this request. If the user says "just draft it," proceed and list your assumptions.
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
Next to this one in the catalogue, plus more from the same author.