Batch Size and Delays:
A Practical Guide for OpenAI, Anthropic, and Gemini Quotas
Bulk gettext work in Loco Translate is a stream of discrete jobs: each row ships a prompt, waits on a vendor response, and commits text back to a PO file. Batch size controls how many rows you group per scheduling tick; inter-request delay spaces those calls so you stay inside requests-per-minute and tokens-per-minute envelopes published by OpenAI, Anthropic, and Google Gemini. This guide treats both knobs as budget levers, shows how to estimate token load before you promise a weekend finish, and gives WooCommerce agencies a repeatable calibration recipe that survives account upgrades and client plugin sprawl.
Updated 2026
Vendor quotas
Concurrency tells you how many calls may fly at once; batch size and delay decide how aggressively you refill the queue. A stack can respect per-connection fairness yet still trip a token bucket if every call carries a four-hundred-token system prompt and a fifty-term glossary attachment. Operators who only watch HTTP 200 responses miss the slower failure mode where latency climbs for minutes before hard throttling arrives.
WooCommerce catalogs exaggerate variance. One gettext domain holds terse button labels; another holds checkout disclaimers packed with placeholders. A batch profile tuned on admin strings will lie to you the moment you aim it at subscription renewal emails. Segmenting work by domain and by average token footprint keeps batch math honest.
Teams that centralize those controls inside Loco can pair vendor-specific delay curves with Loco AI Auto Translator batch sizing and throttle presets for WooCommerce gettext workloads instead of reinventing spreadsheets for every client migration.
Batch size and delay: paired levers, not rival settings
Think of each gettext row as consuming two scarce resources: a request slot and a token allowance. Batch size determines how many rows you schedule before the UI breathes, saves, or checkpoints. Delay determines the minimum spacing between outbound calls when you are not saturating concurrency. Raising batch size without adjusting delay can look productive for the first minute, then collapse when the rolling TPM window fills.
Lowering batch size while holding delay constant reduces instantaneous pressure but may increase overhead from repeated system instructions if your integration re-sends them per row. The economically optimal point depends on whether your connector amortizes prompt tokens across rows or treats every string as a fresh conversation. Know which model your tooling implements before copying a recipe from another agency’s blog.
Delay is also a courtesy tool. Shared API keys on agency retainers create noisy-neighbor risk. A few hundred milliseconds between calls often costs almost nothing in wall-clock time when network latency already dominates, yet it keeps you off the steepest part of a vendor’s fairness curve. Document baseline delay per client tier so operators do not “help” by zeroing it during a fire drill.
You are RPM-limited with relatively short prompts. Spacing calls preserves TPM headroom for occasional long WooCommerce paragraphs without forcing tiny batches that multiply overhead.
You are TPM-limited with heavy glossaries or legal prompts. Shorter bursts keep each request’s token envelope predictable and reduce the blast radius of a single malformed msgid.
The OpenAI rate limits guide explains how organizations track usage tiers; read it alongside your host’s PHP timeout policy so cloud quotas and server ceilings fail together, not in mystery pairs.
OpenAI-style quotas: RPM, TPM, and the shape of a Loco job
OpenAI documents separate limits on requests per minute and tokens per minute. Loco operators feel RPM as how fast they can click “next wave” without HTTP 429. They feel TPM as how many words per minute the stack can sustainably translate when system prompts are large. A catalog that averages thirty tokens of English and asks for sixty tokens of output still pays for instructions and safety overhead you may not see in the editor.
Burst behavior matters. Accounts often allow short sprints above steady-state TPM. A naive batch preset exploits the sprint, then collapses when the rolling window fills. Prefer presets tested over ten-minute windows, not thirty-second demos. If your billing report shows spikes in completion tokens while your PO progress looked flat, you were likely retrying failures, not translating faster.
Model choice shifts both curves. A flagship multimodal model may cost more tokens per character on certain languages while reducing post-editing time. The batch-size decision is economic: cheaper per token does not always mean cheaper per approved row if reviewers reject more strings. Track reviewer hours alongside token spend when you tune batches for commerce clients.
Pair vendor dashboards with Loco exports: diff PO files every thousand rows during calibration so you can correlate token spikes with specific domains instead of guessing from aggregate graphs alone.
Anthropic-style workloads: context windows and polite pacing
Anthropic’s Claude family is a frequent choice for teams that want long, instruction-following behavior on nuanced brand voice. Long context is a strength, yet it is also a temptation: stuffing entire glossary tables into every call raises TPM consumption per row and can push you toward message-size limits faster than short-context models. Batch sizing for Claude should treat context as a finite budget you spend once per batch segment, not once per character.
When your Loco integration sends a system preamble plus user content, measure whether repeated preambles are necessary. If the connector cannot cache static instructions server-side, smaller batches with fewer rows per wave may paradoxically cost fewer tokens than large batches that re-stream the same instructions endlessly. Ask maintainers for documentation; if none exists, run a controlled test with identical rows and compare billed tokens.
Anthropic publishes rate limit guidance that changes by plan tier. Treat published numbers as moving targets: revalidate quarterly or after any org-wide upgrade. Agencies should store tier name, date verified, and observed safe throughput in the same config repo as wp-config snippets so rotations do not lose history.
See Anthropic API rate limits for the current reference values you should mirror into internal runbooks.
Gemini quotas: counting what you actually spend on gettext
Google’s Gemini stack appeals to teams already on Google Cloud billing or seeking tight integration with other Google APIs. Quota surfaces may blend project-level limits, model-specific caps, and regional routing. The operational surprise for Loco users is rarely the headline RPM; it is variable completion length when assists explain their choices internally even if your WordPress plugin only persists the final translation string.
If your integration requests JSON-shaped answers or includes “think step by step” style instructions, you may pay for reasoning tokens you never show reviewers. Tighten prompts for bulk passes: ask for the translation only, move rationale to a separate QA channel, or run verbose assists only on high-risk checkout strings. Batch size should drop when you enable verbose modes; delay should rise when you cannot disable them.
Regional failover can change quota identities. A batch that succeeded in `us-central1` may need different delay tuning in Europe. Document region choice beside batch presets to avoid “works in staging, fails in production” stories that erode client trust.
Review Gemini API rate limits when you map Google Cloud projects to each client’s Loco workload.
Decision matrix: shrink batch, add delay, or split domains
When a job misbehaves, teams need a triage order. Start by identifying whether errors cluster as HTTP 429, long latencies without errors, or partial row failures. Each pattern suggests a different first knob. Randomly tweaking both batch size and delay wastes time and confuses postmortems.
| Symptom | First knob | Second knob |
|---|---|---|
| 429 errors early in wave | Increase delay | Lower concurrency if separate from batch size |
| Rising latency, few errors | Reduce batch size | Hold delay steady; observe TPM |
| Truncated or empty assists | Shorten prompt or row payload | Split glossary into domain-specific batches |
| PHP timeout mid-batch | Smaller batch per request | Raise host timeout only if security policy allows |
Nexu WP Loco AI add-on with per-provider delay and batch guardrails for WordPress gettext projects makes the matrix above executable without editing PHP by hand on every site.
WooCommerce segmentation: build batches around risk, not alphabet
Sorting PO files alphabetically is convenient for humans and misleading for automation. Risk-based segmentation groups strings by legal exposure, placeholder density, and plural complexity. Checkout and payment-adjacent domains get smaller batches, more delay, and more reviewer time. Low-risk admin labels get larger batches and tighter delay budgets.
Plugin updates reorder domains. A batch profile from January may misclassify March strings if new extensions introduce fresh text domains with commerce-critical copy. Re-run segmentation scripts after major WooCommerce upgrades or when clients install subscriptions, wallets, or multi-vendor marketplaces.
Email templates deserve their own lane. They combine long sentences, variable placeholders, and brand tone requirements. Feeding them through the same batch size as quick-action buttons invites TPM spikes and reviewer fatigue. Treat transactional email as a separate sprint with its own delay curve.
Loco AI Auto Translator bulk progress monitoring for WooCommerce-scale gettext batches across multiple domains helps you spot when a segmentation change should trigger a preset swap.
Prompt mass, glossaries, and token floors per row
Every fixed translation term you inject consumes tokens on every row. Glossaries improve consistency but raise the TPM slope. The fix is rarely “disable glossary”; it is “right-size batch for glossary-heavy waves.” Some teams run a glossary-light first pass at larger batches, then a second pass on rows that contain brand terms or legal phrases.
Custom prompts that forbid literal translations of brand names or require register shifts per industry vertical can double token floors. Measure before and after enabling them; batch size should reflect measured reality, not hope.
Staging calibration: a one-page recipe before production promises
Never promote a batch preset from laptop Wi-Fi straight to a client production install. Clone the PO subset, run three waves at increasing batch sizes with fixed delay, and log rows per minute, error rate, and p95 latency for each wave. Stop when error rate departs from near-zero or when latency growth outpaces throughput gains.
Two hundred strings, three batch sizes, one delay curve, one vendor, one region. Export PO and diff after each wave. Only then introduce a second vendor or enable Turbo-style concurrency from the companion article in this series.
WordPress Loco AI plugin settings export for reproducible batch-and-delay presets across agency environments keeps audits short when clients ask why March looked faster than April.
Per-string rescue, editor buttons, and when to halt the batch
Even well-tuned batches hit poison rows: malformed HTML entities, accidental Markdown in msgids, or vendor-specific placeholders that confuse assists. Operators need a pause mechanism and per-row tools so one bad string does not force a binary choice between aborting thousands of rows or accepting garbage translations.
Define halt rules: for example, more than three consecutive 429 responses, or any authentication error, or a sudden drop in rows-per-minute below half the rolling average. Operators without rules improvise under stress and often make quota problems worse by restarting waves blindly.
Commercial Loco AI Auto Translator licensing for agencies standardizing batch-delay presets across client tiers should ship with halt rules in the same PDF as SLA language.
Estimating tokens per row before you promise a finish date
Project plans fail when someone multiplies string count by an average translation length and ignores prompt overhead. Build a quick spreadsheet model: sample fifty rows per domain class, measure vendor-reported prompt and completion tokens if your dashboard exposes them, or estimate with a tokenizer tool on anonymized exports. Add twenty percent contingency for retries and fuzzy re-runs.
Convert tokens to minutes using your verified safe TPM from staging, not the headline tier number. Divide by concurrency if your stack processes rows in parallel, remembering that concurrency multiplies TPM consumption almost linearly until RPM becomes the bottleneck. The resulting minutes number should feed your client comms, not optimism.
Timezone and business hours matter for human reviewers, not just APIs. A batch that finishes at 2 a.m. still needs someone to approve commerce copy before deploy. If review bandwidth is the real constraint, larger batches that finish overnight can backfire by flooding QA Monday morning. Sometimes smaller batches during business hours beat “faster” batches that collapse handoff discipline.
Finally, tie estimates to version control. When WooCommerce or a membership plugin releases mid-sprint, new strings invalidate yesterday’s token model. Re-sample instead of dragging stale numbers into executive summaries. One afternoon of honest measurement saves a week of apology email.
For operational grounding on how WordPress loads text domains, skim the WordPress internationalization API overview so batch segmentation aligns with how domains actually register at runtime.
Synthesis: quotas are a contract, batching is how you keep it
OpenAI, Anthropic, and Google publish quota stories that differ in detail but share a theme: sustained throughput beats heroic bursts. Batch size decides how much work you commit per wave; delay decides how politely you consume RPM; TPM ties both together through prompt mass. WooCommerce gettext work is heterogeneous, so presets must be segmented by domain risk and measured in staging before they become client promises.
If you want Loco-native tooling that respects those relationships without forcing every operator to become a quota theorist, the Loco AI Auto Translator WordPress extension for batch sizing, delays, and multi-vendor gettext workflows on WooCommerce sites belongs in the same folder as your rate-limit runbooks and PO export scripts.
Hey everyone! just used this guide to adjust our batch delays and wow it helped us catch a throttling problem we totally missed. Latency was slowly climbing for 10 minutes before things went south, but now we catch it early
Hey! The batch size and delay details for the quotas are exactly what I needed to plan my bulk uploads major props for including that. Quick question though: when Gemini gives one of those overly detailed responses (you know, the ones where I just grab the final output and ditch the rest), does the entire token count of that response still eat into my quota? Even if I'm only using a tiny fraction of it? Asking because I'm about to push a massive WooCommerce catalog update and don't wanna get blindsided by hidden costs.
This guide wasted my time. Thought it would solve burst issues but just overcomplicates basic API rate limiting. relief I didn't spend more
Hey folks, just had to leave a quick note about how this guide saved my team hours of frustration. We were trying to translate a massive WooCommerce site with Loco Translate, and the batch math was all over the place short button labels in one domain, giant checkout disclaimers in another.