How promptfoo provider rate limits stop large evals and red teams
When a large promptfoo eval or red team starts returning provider errors, or slows your own endpoint to a crawl, the controls to tune are concurrency, delays and retries. Concurrency (set with maxConcurrency) sets how many requests run at once, delays set the pause between them, and retries decide how failed calls are repeated. Tune these before you change prompts, models or test counts, because they decide whether the same suite finishes cleanly. The problem grows with suite size, since each test case can trigger several model calls once assertions, graders and red team strategies are included. It also grows when several jobs share one API key, when a scheduled scan overlaps with a developer's local run, or when one config fans out to multiple providers that each enforce their own quota.
promptfoo runs on the machine that starts it. The documentation describes evals running locally and talking directly with the LLM, so every request leaves from your laptop, CI runner or scan host, and that host's address and API key are what the provider sees. Parallel jobs on one runner, or several runners behind one egress address, add their requests together. Your own target gets the same load: a red team aimed at an application endpoint hits infrastructure your team operates, so a concurrency value that a provider accepts can still overwhelm that service. Before raising limits, confirm with each provider which quota applies, whether requests per minute, tokens per minute or concurrent connections, and load test your endpoint in staging to find its ceiling.
promptfoo is released under the MIT license, and the Community edition is free and includes all LLM evaluation features and all model providers, so tuning concurrency and delays needs no paid tier. Check the Community edition details if your team is comparing editions. Treat the tuning as a short test cycle: run a slice of the suite at your intended settings, watch the output for rate-limit and timeout errors, and record the values that finish cleanly for each provider and key. Keep the retry settings separate in your notes, since retried errors can hide a limit that is too high. Ask whoever owns each shared key which quotas it holds and whether a higher tier is available, because that decision sits with your provider account team.
Where promptfoo provider rate limits come from during a run
A run draws on the same provider quota from several directions at once. The sources below act together, so a limit that a single job never reaches on its own can be exhausted by the combined traffic from your target, your other jobs and your own retries.
Provider account quota
Each API key on your provider account carries limits that apply per model, and every promptfoo request counts against one pool shared with every other application on that key. When the pool runs low, the provider returns rate-limit errors, so a run that starts cleanly can fail partway through. Check the limits shown for each model you test in your provider console before you set concurrency.
Application under test
Every test case calls your application or endpoint, so your own target receives the same concurrency that promptfoo sends to the provider. A slow target queues requests or times out, and the report then shows those errors as if the provider had refused them. Check your gateway, autoscaling and any upstream model calls before raising maxConcurrency, and confirm the target's own limits in its configuration.
One key or runner shared
Several CI jobs, developer laptops and scheduled scans that use one key or runner shared by several jobs add their requests to the same quota at the same moment. Each job can pass when it runs alone, yet the combined load exhausts the limit and fails whichever job happens to run last. Map which jobs use which key, and give long red team runs a dedicated key or a separate schedule where your provider's account setup allows it.
Retries add requests
Each retry after a failed call is another request, so retries add requests after every failure and a run that is already throttled sends more traffic into the same limit. Retries sent at full speed can extend the throttled period and add spend for calls that never succeed. Set the retry count and the delay together, and check how many errors your results contain before treating a pass rate as final.
Red team attack volume
Red team scans generate many attack prompts for each plugin and strategy, so one scan can send far more requests than a small eval with a handful of test cases. Limits that a small suite never reaches are hit early in a red team, and the run stalls or ends with errors before coverage is complete. Count the expected requests from your plugin and strategy choices before the first run, using the Red teaming docs to size the scan.
Red teaming docsConcurrency, delay and retry settings and when each fits
This table compares the controls that shape request load in a promptfoo run: parallel requests, pauses between requests, adaptive concurrency, retries and the load your own target can take. Read each row by asking what it limits and whether your bottleneck is the provider quota, the provider's speed or your own endpoint's capacity. Confirm exact key names, scope and defaults in the promptfoo configuration docs and release notes for the version you install before you copy any value.
| Control | What it limits | When it fits | What to confirm |
|---|---|---|---|
| maxConcurrency | Caps how many requests the promptfoo runner keeps in flight to a provider at once. | Use when the provider quota is set in parallel requests and your account allows more than one. | Confirm the exact key name, whether it sits at top level or per provider, and its default. |
| Delays between requests | Adds a pause between calls so the request rate stays under a per-minute or per-second quota. | Use when the provider counts requests over time, so limiting parallel calls alone still triggers throttling. | Confirm the delay key name, its unit, its scope and its default in the configuration docs. |
| Adaptive concurrency | Changes the number of parallel requests in response to provider errors or slowdowns during a run. | Use when the quota is unknown or shared with other jobs and you want the run to back off on its own. | Confirm the feature exists in your installed version, its key name and how it is configured. |
| Retry behavior | Sends a failed request again after a rate limit, timeout or transient provider error. | Use for occasional throttling or timeouts in long runs. Settings are covered in the retry topic. | Confirm retry key names, which error types are retried and the limits on attempts in the docs. |
| Your own target | Caps load on the application under test, such as an HTTP endpoint you operate. | Use when red team probes or evals can overload a service with its own capacity limits. | Confirm with the endpoint owner what load it accepts, and check where the setting applies. |
| Combined effect | Concurrency, delays and retries all add to the load a provider sees, so they stack. | Use when throttling persists after one control is tuned. Change one setting at a time and re-run. | Confirm your quota limits in the provider's own console, and whether retried calls count toward them. |
Tuning concurrency for a laptop, a CI runner or a shared target
On a developer laptop, one personal API key usually covers every run you start, so the main risk is a large eval consuming that key's quota while you keep iterating on prompts. The goal is a short feedback loop that does not trip the provider's limits. Promptfoo runs on your machine and calls the model provider directly, so the provider's limits are the ceiling you tune against.
- Throttling errors: the provider returns rate-limit or quota responses, which show up as provider errors in the results, separate from failed assertions.
- Timeouts: requests stall or time out while a second run is active on the same key.
- Stop-and-start progress: long pauses between completed rows can mean the run is waiting out retries after throttling.
- First adjustment: lower
maxConcurrencyin the configuration, then rerun a small subset to confirm the errors stop. - Delay settings: if throttling continues at lower concurrency, add a delay between requests. Confirm the exact key name in the promptfoo configuration documentation.
Before the next full run, check your key's limits on the provider's dashboard and confirm which error responses it returns when it throttles.
On a CI runner, many jobs share one API key, so the quota belongs to the whole pipeline. A pull request check, a nightly eval and a scheduled red team scan can start within the same few minutes and compete for the same allowance. Concurrency has to account for every other job that uses the key, not only the job in front of you.
- Shared quota: each job's concurrency draws from the same key, so one large job can slow every other pipeline.
- Clustered failures: throttling errors that appear in several jobs at the same time point to the shared key, not to a faulty prompt or test case.
- Pipeline-level caps: limit how many jobs use the key at once through your CI system's concurrency controls. Confirm the exact option for your CI system.
- Separate keys by workload: where your organization allows it, give scheduled scans their own key so they do not starve pull request checks.
- First adjustment: lower the job's
maxConcurrencyand cap parallel jobs that use the key, then watch whether the errors stop before changing anything else.
Compare the timestamps of throttling errors across jobs, and list which pipelines use the key, before changing any per-job settings.
When promptfoo tests an application that other people depend on, the limit that matters may be the application's own capacity rather than the model provider's quota. Every test case becomes a request to the target, so concurrency that is harmless for a model API can overload a web service, its database or its gateway. The application owner usually knows that ceiling and should set the test window.
- Rising latency: response times on the target climb during the run and recover after it stops.
- Target-side timeouts: the application times out or returns server errors while the model provider responds normally.
- Impact on live users: production users see slower pages or errors during the test window.
- First adjustment: lower concurrency for the target entry in the configuration, and run only during a window the application owner has agreed.
- Owner questions: ask whether the application has its own rate limiter, whether a staging copy exists and which dashboards show load during scans.
Overlay the target's latency and error graphs on the start and end times of each run to find out whether the limit belongs in promptfoo or in the application.
Every provider call passes through one concurrency gate
The run starts in the promptfoo CLI on your runner, which reads the config and sends each prompt into a concurrency gate. The gate applies your concurrency limit and delay settings before any call leaves your network. Requests go either to the model provider, which sits outside your trust boundary, or to your application target, which stays inside it. Responses pass to assertions, then to stored results. Provider errors take a retry path back through the gate, so retries also respect your limits. Check that the gate settings match the quota your provider grants and the capacity of your target.
Requests pass through one concurrency gate before reaching either the provider or your target.
Setting up concurrency limits for a large eval, step by step
Work through these steps in order to find a concurrency setting that your provider quota and target can handle. Each stage starts from a recorded baseline, and the sequence ends with settings committed to version control so the same run can be repeated.
Confirm Node.js and promptfoo versions
Start by confirming that the Node.js version on your machine or CI runner meets the promptfoo release you plan to use. The npm package page lists release 0.124.1, published on 8 October 2026, which requires Node.js 22.22.0 or newer. Check the promptfoo GitHub releases page for the same version before you pin anything. Run
node --versionandpromptfoo --versionin the same shell that will run the eval. Done when both commands report versions that meet the requirement and the promptfoo version matches the one you intend to pin.Record the provider quota for your key
In the provider console, find the limits that apply to the exact API key and model your eval will call. Typical limits include requests per minute, tokens per minute and concurrent connections, and they can differ by model and by organization or project. Write each value into a short notes file stored next to the eval config, and record the date you read it, since providers change limits. If the console does not show a limit, ask your provider account team before you set concurrency. Done when every model in the eval has a recorded limit or a documented question for the provider.
Run a small baseline with conservative settings
Create a copy of the eval config that points at a small slice of test cases (illustrative: pick cases that cover each prompt type so the baseline reflects your actual request shapes). Set
maxConcurrencyto 1 and disable retries in that copy. Runpromptfoo evalagainst it, then record the wall-clock time, the number of errored results, any 429 or timeout messages and the latency at your target. Done when the run finishes with a written baseline and you know which errors, if any, occur with only one request in flight.Raise concurrency in stages
Increase
maxConcurrencyin small steps, running the same slice after each change. After every stage, compare the error count, the rate-limit responses, the latency at the target and the load on your own target service with the previous stage. Keep the highest stage that produces clean results, and stop before errors appear or latency climbs above your baseline. Done when you have a stage that runs without rate-limit errors and the target's latency stays within the range you recorded at baseline.Add delays only for burst failures
Add a
delayonly when failures cluster at the start of a run or in short windows while average volume stays under the quota you recorded. Bursts happen when many requests start together, so a short pause between requests can smooth them without slowing the whole run. If errors are spread evenly across the run, the problem is volume, so lower concurrency or ask the provider for a higher quota instead. Done when a rerun of the stage with the delay shows no error clusters in the timeline and the rate-limit count has dropped to a level you can accept.Run the full suite with retries enabled
Run the complete suite with the settings from the last stage that passed, and turn retries on so that brief provider errors recover without manual reruns. Use the retry options documented for your promptfoo version and keep the retry count modest, so that a failing endpoint does not multiply your request volume. Watch the progress output for the error rate, and stop the run if errors climb well above your baseline, since that usually means the quota or the target has changed. Done when the run finishes and the summary lists total, passing, failing and errored cases.
Confirm errors stay out of pass rates
Open the results and check that errored results are reported separately from failed assertions. A timeout or a 429 response is a provider or infrastructure problem, so it should not count against the model's pass rate. Filter the output for error entries and rerun only those cases until they complete, or record them as unresolved. Done when the pass rate is calculated from completed cases only, and the count of unresolved errors is written next to it in the report.
Store final settings in version control
Commit the eval config with the final
maxConcurrency,delayand retry values, along with the pinned promptfoo version and the notes file that holds the quota record and the date it was read. Record the required Node.js version in your CI image or setup notes. Load API keys from your secret store at runtime and keep them out of the commit. Done when a fresh clone on a clean runner with the pinned Node.js version runs the same config, and the commit history shows when each setting changed.
Adaptive concurrency: when to rely on it and what to verify first
Adaptive concurrency lets promptfoo change how many requests it sends in parallel based on the responses it receives, so a run can ease off when a provider starts throttling and recover when capacity returns. This is useful when your quota shifts during a long eval or red team scan, for example when other jobs share the same key. The trade-off is visibility. If parallelism drops quietly, a run can take longer while the rate limit errors that caused the change never reach a log you keep. Before you rely on it, make sure every provider error is written to a retained log with its status code and timestamp, so each slowdown can be explained after the run.
Start by confirming the option exists in the version you run. Check promptfoo --version in the same image or pipeline that will run the eval, then read the release notes for that version on the promptfoo releases page, since a setting in a newer release may be absent from an older one. Next, test the behavior against a staging endpoint or a low-limit test key before any production key is involved. Run a small suite, watch the request rate in your provider dashboard or gateway logs, and force throttling if your staging target allows it. Check that concurrency falls when errors appear and returns to the ceiling afterward. Only then move the same configuration to production, with the same version pinned.
Keep a fixed ceiling per key even when adaptive concurrency is on. Treat the maximum parallelism you set through maxConcurrency as the hard limit the adaptive logic cannot exceed, and set it separately for each key shared by several suites, CI jobs or red team scans, because a single run may not know what other jobs are sending to the same key. Before you rely on it, confirm the following: the installed version documents the option and its behavior; your logs keep provider errors, status codes and timestamps; a staging run shows concurrency falling on throttling responses and recovering; your provider's per-key limits and which traffic counts toward them; the ceiling for each key is written in the configuration that ships with the pipeline; and a named owner is alerted when throughput drops or quota errors appear.
Limits to confirm before you tune rate limits in promptfoo
Rate limit failures often come from limits that sit outside promptfoo: provider quotas, the version you pinned and the systems in front of your target. Confirm these first, because tuning concurrency against a limit you have not identified often just moves the failures around. The cards below cover each one and what to check.
Provider quotas and tiers
Provider quotas are set per account, per model and per tier, and providers can change them. Before you set concurrency, open the usage or limits page for the exact key and model your run will use, and record the requests and tokens allowed per minute and per day. Ask your provider account owner which tier the key sits on and whether a quota increase is pending. Recheck these figures before each large red team, because a tier change can make last month's settings wrong.
Option names and behavior
Concurrency, delay and adaptive settings such as maxConcurrency are the controls this topic tunes, and their names and behavior can change between releases. Read the release notes for the exact version you pin, and confirm the option name, its default and whether it applies per provider or per run. Test the setting on a small suite first. Keep the version in your CI file so every run uses the same behavior.
Node.js 22.22.0 minimum
Promptfoo release 0.124.1, published on 8 October 2026, requires Node.js 22.22.0 or newer. Check the Node version on every machine and CI image that runs evals, including developer laptops, runners and containers, before you raise the pinned version. An older Node runtime can fail at startup, which can be mistaken for a provider error. Ask your platform team whether the runner images meet this minimum before the upgrade lands.
promptfoo on npmLimits on the target
Your target may sit behind an API gateway, a web application firewall or an application-level rate limiter. Promptfoo cannot see these controls, so a throttled response or block page from them can look the same as a provider quota error. Identify every layer between the test runner and the target, ask each owner for its limits and any per-client or per-IP thresholds, and agree on an allowlist or a test key for the scan. Watch gateway logs during a small run to confirm which layer responded.
Shared keys across jobs
Promptfoo runs on the machine that starts it and talks directly to the model, so each local run controls only its own load. Two developers running evals, or two CI jobs on different runners, each apply their own concurrency settings, and the provider sees their combined traffic. Before you raise a limit on one job, list every pipeline, developer and scheduled red team that uses the same key, and agree on a shared budget. Otherwise one run can exhaust the quota and cause errors in the others.
Promptfoo introductionWhat tuning promptfoo rate limits costs and what it needs from your team
How much does outside help with promptfoo rate limit tuning cost?
Outside help is priced from a written scope, and DeployOpen does not publish a price list, so the quote follows from the work you agree to. The main cost drivers are the number of providers and models under test, how many eval and red team suites need tuning, where promptfoo runs (a laptop, CI or a shared server), and how much quota data your team already has. Ask for a quote that separates one-time work, such as baseline measurements, concurrency and delay settings, documentation and a handover run, from anything recurring, such as a retainer for upgrades or continuous testing. Also ask which items are fixed in scope and which would be change requests. If you tune in-house, the cost is engineer time plus extra provider spend from repeated test runs.
How long does tuning promptfoo rate limits take, and what drives it?
Duration depends on how many limits must be found, how well your provider quotas are documented, and how quickly your team can supply the data and access needed to test them. The biggest drivers are the number of providers and model tiers, whether quota numbers are published or must be discovered through trial runs, how long a full suite takes at each concurrency level, and how many approvals are needed before production keys or CI settings can change. Shared keys across several projects usually add coordination work, while a stable staging target and clear quota dashboards make each test cycle shorter. Ask for a written timeline with dependencies named, such as key provisioning and target access. Confirm any duration against your own environment before you plan around it.
What access does a partner need to tune promptfoo concurrency?
Plan to provide access before the work starts, because waiting for it is one of the most common delays. Typically this covers provider API keys on the quota tiers you use in production or a dedicated test tier, read access to usage and quota dashboards or billing exports for a recent period, a reachable test target or staging endpoint that you are comfortable loading at higher concurrency, and CI access to the pipeline where promptfoo runs, including the variables and runner details it needs. Name one owner who can approve key and pipeline changes and one who can answer questions about the application under test. Agree in writing how keys are stored, handled and rotated afterward. Confirm the quota terms with each provider account owner, since limits differ by vendor and contract.
Can our own engineers tune promptfoo rate limits without a partner?
Yes, an experienced engineer can tune promptfoo rate limits alone if they have the access described above and time to run repeated tests. The method is systematic: measure a baseline, change maxConcurrency or delay settings in small steps, watch for rate-limit errors and latency shifts, and confirm that results stay consistent across runs. What usually slows internal teams is the testing loop itself, competing priorities and the risk of loading a shared target or exhausting a production quota during trials. A partner adds the most value when no one on the team can run that loop safely, or when several suites and providers must be tuned together. Compare the hours your engineers can commit with the scope you would receive before deciding.
What is free in promptfoo, and what does Enterprise add?
promptfoo is licensed under the MIT license, and its Community edition is free. It includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, with community support. Enterprise adds team sharing, teams-based access control and SSO, custom roles and permissions, continuous monitoring, a centralized guardrail dashboard, remediation recommendations and priority support with SLAs, and it is sold at custom pricing. promptfoo On-Premise runs that Enterprise functionality on your own infrastructure with complete data isolation and a dedicated deployment engineer. The concurrency and delay settings in this guide are CLI configuration, so they do not depend on an Enterprise license. Check the promptfoo pricing page before budgeting, since editions can change.
When does a partner add value to promptfoo rate limit tuning?
A partner adds the most value when the work crosses several teams, providers or environments, or when a deadline makes repeated trial runs hard to fit around other work. Typical signals include large red team scans that must finish within a fixed CI window, multiple providers sharing one quota pool, a target application that degrades under load, and a need to document settings and evidence for internal reviewers. Outside help also adds a second check on the risk of overloading your own target or a production key. Ask for a fixed scope with named deliverables, a handover that lets your team run the settings afterward, and an optional retainer if you expect frequent promptfoo upgrades. DeployOpen works in your infrastructure and quotes from a written scope.
Security and operational risks of high-concurrency promptfoo runs
Raising concurrency makes a run finish sooner, but it also multiplies the places where keys, prompts and load can escape your control. The cards below cover what to check before a large scan starts. Whatever concurrency you choose, the model provider still receives every prompt it is sent.
Shared API keys leak through logs
A single API key shared by a team, a CI job and a scan runner is hard to rotate and easy to expose. Keys may appear in CI console output, saved job logs, pasted debug output or a shared config file when someone runs with verbose or debug logging. Before a large run, confirm that your CI masks secret variables, that logs are not uploaded as artifacts to a wider audience, and that anyone sharing a log has checked it for credentials first.
Scope keys to each environment
Give development, CI, staging and red team runs their own keys, each with its own spend limit and rate ceiling where your provider offers them. A leaked key can then be revoked without stopping every other pipeline, and usage can be traced to one environment. Ask each provider which key scoping, usage caps and audit records it supports, since these differ. Keep production keys out of scan configuration entirely, so a large run does not draw on live customer quota.
Stored results hold sensitive content
Eval and red team outputs record the prompts sent and the responses returned, and for red teams those prompts are often deliberately harmful or sensitive. promptfoo runs on the machine that starts it and talks directly with the LLM, so results land on that runner's disk or in whatever CI artifact store you configure. Decide who can read those files, how long they are kept and whether they are copied into tickets or chat. Treat them with the same classification as the data they test.
promptfoo introductionShared result servers have limits
If results go to a shared promptfoo server, check its design before a high-volume run. The self-hosted app stores data in a local SQLite database that cannot be shared across replicas, and it has no RBAC, horizontal scaling, built-in authentication or SSO. The project states that this setup is not recommended for production use. Concurrent uploads from many runners land on one database, so keep the server on a private network, restrict who can reach it, and do not treat it as a system of record for audit evidence.
self-hosting guideProduction targets absorb the load
Concurrency multiplies the requests your application receives. A red team scan sends many adversarial prompts in parallel, and each one consumes inference capacity, database connections and downstream calls in the same way ordinary user traffic does. Where possible, point high-concurrency runs at a staging target that is as close to production as practical. If production must be tested, lower maxConcurrency, add delays between batches and watch error rates and latency in your own monitoring while the run is active.
Notify target owners before large runs
Owners of the target, the provider account and your security operations team should know a large run is coming. Share the window, the approximate request volume, the source addresses and a named contact who can stop the run. Without that notice, a scan can trigger rate-limit alarms, fraud controls or incident response, and it can exhaust a quota that a shared account uses for other products. Agree on a stop condition before you start.
How DeployOpen scopes and supports rate-limit tuning for your evals
DeployOpen approaches provider rate limits in promptfoo as a tuning exercise inside your own infrastructure. We start from your provider quotas, the capacity of your target application and the size of your suites, then set out the concurrency and delay settings in the written scope. Engagements are fixed-scope, and ongoing tuning is available as a retainer.
How we scope
- The written scope names your providers, quotas, and eval and red team suites that need tuning.
- We record the rate limits, concurrency ceilings and target capacity that the tuning must respect.
- Fixed-scope engagements set deliverables and timelines in writing before any work begins.
How we build
- Set maxConcurrency, delays and adaptive concurrency per provider, starting from the lowest safe values.
- Run staged eval and red team runs against a non-production target before raising limits.
- Check error rates and retries after each change so throttling errors stay out of pass-rate gates.
How we hand over
- Deliver the final concurrency and delay settings as versioned configuration with the reasons for each value.
- Document the tuning runbook: which limits apply, how to re-test, and when to revisit them after a provider change.
- Walk your team through the configuration so they can run the evals without us.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer.
- Retainers can cover re-tuning when provider quotas, models or suite sizes change.
- Upgrade work on promptfoo can be included, and we re-check rate-limit settings after each upgrade.

