Rate Limits API
Programmatically query your organization's API rate limits with the Rate Limits API.
The Rate Limits API provides programmatic access to the rate limits configured for your organization and its workspaces. This is the same information shown on the Rate limits page in the Claude Console.
Use this API to:
- Keep gateways and proxies in sync: Read your current limits at startup and on a schedule instead of hardcoding values that drift when Anthropic adjusts them.
- Power internal alerting: Compare usage data from the Usage and Cost API against your configured limits.
- Audit workspace configuration: Verify that workspace overrides match what your provisioning automation expects.
The SDK and CLI examples on this page construct the default client, which reads the Admin API key from the ANTHROPIC_API_KEY environment variable. The SDKs expose these endpoints as client.organization.rate_limits and client.organization.workspaces.rate_limits; the Python, TypeScript, C#, Go, and Java list methods return an iterator that follows next_page for you, while the PHP, Ruby, and curl examples read one page.
Quick start
List the rate limits configured for your organization:
client = anthropic.Anthropic()
rate_limits = client.organization.rate_limits.list()
for entry in rate_limits:
models = f" ({', '.join(entry.models)})" if entry.models else ""
print(f"{entry.group.type}{models}")
for limit in entry.limits:
print(f" {limit.type}: {limit.value}")Organization rate limits
The /v1/organizations/rate_limits endpoint returns the rate limits applied at the organization level for the Messages API and its supporting resources. Limits for other products, such as Claude Managed Agents, are not included.
Key concepts
- Rate limit groups: Each entry in the response represents one rate limit group. Model rate limits are grouped so that several model versions share a single set of limits, and other groups cover resources such as the Message Batches API, the Files API, the Token Counting API, agent skills, and the web search tool.
groupobject: Present on every entry, it identifies the rate limit group the entry applies to. It always hastype, which is one of thegroup_typevalues, andid, an opaque identifier with therlg_prefix. Onmodel_groupentries it also hasdisplay_name, Anthropic's current label for the group, such asClaude Sonnet 4.x. The label is for display only and may change. Other group types have nodisplay_name.- The
idinsidegroup: A group has the sameidin every organization and on every workspace override, and it never changes. Use it to match entries across organizations or against your own catalog. The entry's owniddiffers per organization, andmodelschanges when Anthropic moves a model between groups. Neither is a stable key for the group. group_type: Deprecated in favor of thetypeinsidegroup. It's still returned, always equals that value, and has no removal date. Thegroup_typequery parameter isn't deprecated. See Filtering by group type for the list of values.modelslist: Formodel_groupentries, themodelsfield lists every model ID and alias that counts against that group's limits. Use this list to look up which group any model string falls under. For other group types,modelsisnull.limitslist: Each group carries a list of{type, value}pairs. Thetypefield identifies the limiter (such asrequests_per_minute,input_tokens_per_minute, oroutput_tokens_per_minute) andvalueis the configured limit. See Rate limits for how each limiter is measured and enforced.sourceon workspace limits: On the workspace endpoint, every limit value also carriessource, which says wherevaluecomes from:{"type": "workspace"}for an override stored on the workspace, or{"type": "organization"}for a value inherited from the organization. By default, the workspace endpoint returns overrides only, sosource.typeis alwaysworkspacethere; inherited values appear when you passinclude_inherited=true. See Workspace rate limits.
For complete parameter details and response schemas, see the Organization Rate Limits API reference.
List all organization rate limits
client = anthropic.Anthropic()
rate_limits = client.organization.rate_limits.list()
for entry in rate_limits:
models = f" ({', '.join(entry.models)})" if entry.models else ""
print(f"{entry.group.type}{models}")
for limit in entry.limits:
print(f" {limit.type}: {limit.value}"){
"data": [
{
"type": "rate_limit",
"group_type": "model_group",
"group": {
"type": "model_group",
"id": "rlg_01Hq7YkP3mZ9dTwRx4cVbN2s",
"display_name": "Claude Opus 5.5"
},
"models": ["claude-opus-5-5"],
"limits": [
{ "type": "requests_per_minute", "value": 4000 },
{ "type": "input_tokens_per_minute", "value": 10000000 },
{ "type": "output_tokens_per_minute", "value": 800000 }
]
},
{
"type": "rate_limit",
"group_type": "model_group",
"group": {
"type": "model_group",
"id": "rlg_01Kd5wMv8nSq2LcXy6tRfJ4b",
"display_name": "Claude Opus 4.x"
},
"models": [
"claude-opus-4-5",
"claude-opus-4-5-20251101",
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8"
],
"limits": [
{ "type": "requests_per_minute", "value": 4000 },
{ "type": "input_tokens_per_minute", "value": 10000000 },
{ "type": "output_tokens_per_minute", "value": 800000 }
]
},
{
"type": "rate_limit",
"group_type": "batch",
"group": { "type": "batch", "id": "rlg_01Wn3pBz6kCg9vHtQ7mLxD5a" },
"models": null,
"limits": [{ "type": "enqueued_batch_requests", "value": 500000 }]
}
],
"next_page": null
}Look up the limits for a specific model
Pass any model ID or alias as the model query parameter to return only the entry that contains it:
client = anthropic.Anthropic()
rate_limits = client.organization.rate_limits.list(model="claude-opus-5-5")
for entry in rate_limits:
models = f" ({', '.join(entry.models)})" if entry.models else ""
print(f"{entry.group.type}{models}")
for limit in entry.limits:
print(f" {limit.type}: {limit.value}")If the model string doesn't match any group, the endpoint returns a 404 error. The model parameter is supported on the organization endpoint only; the workspace endpoint doesn't accept it.
Workspace rate limits
The /v1/organizations/workspaces/{workspace_id}/rate_limits endpoint returns the rate limit overrides configured for a single workspace. To also see the values the workspace inherits, pass include_inherited=true (see Include inherited values).
By default, the response only includes overrides, so anything missing from it is inherited from the organization:
- A group that is absent from
datahas no workspace override at all. The workspace inherits the organization-level limits for that group (it is not unlimited). - Within a group that is present, a limiter type that is absent from
limits[]has no workspace override for that limiter. The workspace inherits the organization value for it. - For each limiter that is present,
org_limitis the organization-level value for the same limiter, ornullif the organization has no configured limit for that limiter type, andsourceis{"type": "workspace"}.
For complete parameter details and response schemas, see the Workspace Rate Limits API reference.
client = anthropic.Anthropic()
rate_limits = client.organization.workspaces.rate_limits.list(
"wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
)
for entry in rate_limits:
models = f" ({', '.join(entry.models)})" if entry.models else ""
print(f"{entry.group.type}{models}")
for limit in entry.limits:
print(f" {limit.type}: {limit.value}"){
"data": [
{
"type": "workspace_rate_limit",
"group_type": "model_group",
"group": {
"type": "model_group",
"id": "rlg_01Hq7YkP3mZ9dTwRx4cVbN2s",
"display_name": "Claude Opus 5.5"
},
"models": ["claude-opus-5-5"],
"limits": [
{
"type": "requests_per_minute",
"value": 1000,
"org_limit": 4000,
"source": { "type": "workspace" }
},
{
"type": "input_tokens_per_minute",
"value": 500000,
"org_limit": 10000000,
"source": { "type": "workspace" }
}
]
},
{
"type": "workspace_rate_limit",
"group_type": "model_group",
"group": {
"type": "model_group",
"id": "rlg_01Kd5wMv8nSq2LcXy6tRfJ4b",
"display_name": "Claude Opus 4.x"
},
"models": [
"claude-opus-4-5",
"claude-opus-4-5-20251101",
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8"
],
"limits": [
{
"type": "requests_per_minute",
"value": 1000,
"org_limit": 4000,
"source": { "type": "workspace" }
},
{
"type": "input_tokens_per_minute",
"value": 500000,
"org_limit": 10000000,
"source": { "type": "workspace" }
}
]
}
],
"next_page": null
}Include inherited values
To read a workspace's applicable limits in one request, add the optional include_inherited query parameter. It defaults to false; a value that isn't a Boolean returns a 400 error. With include_inherited=true:
datahas one entry for each group that applies to the workspace and has an organization-level value, even if the workspace overrides none of it. A model group applies when the workspace can access at least one of its models.- Each entry's
limits[]lists every limiter type the organization has a value for on that group, plus any type the workspace overrides. Each type appears once, with the workspace's override where one is stored and the organization's value otherwise, so one entry can mix the two. - Each value's
sourcetells them apart:{"type": "workspace"}is a stored override, and{"type": "organization"}is an inherited value, wherevalueequalsorg_limit.
client = anthropic.Anthropic()
rate_limits = client.organization.workspaces.rate_limits.list(
"wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
include_inherited=True,
)
for entry in rate_limits:
models = f" ({', '.join(entry.models)})" if entry.models else ""
print(f"{entry.group.type}{models}")
for limit in entry.limits:
print(f" {limit.type}: {limit.value} ({limit.source.type})"){
"data": [
{
"type": "workspace_rate_limit",
"group_type": "model_group",
"group": {
"type": "model_group",
"id": "rlg_01Hq7YkP3mZ9dTwRx4cVbN2s",
"display_name": "Claude Opus 5.5"
},
"models": ["claude-opus-5-5"],
"limits": [
{
"type": "requests_per_minute",
"value": 1000,
"org_limit": 4000,
"source": { "type": "workspace" }
},
{
"type": "input_tokens_per_minute",
"value": 500000,
"org_limit": 10000000,
"source": { "type": "workspace" }
},
{
"type": "output_tokens_per_minute",
"value": 800000,
"org_limit": 800000,
"source": { "type": "organization" }
}
]
},
{
"type": "workspace_rate_limit",
"group_type": "model_group",
"group": {
"type": "model_group",
"id": "rlg_01Kd5wMv8nSq2LcXy6tRfJ4b",
"display_name": "Claude Opus 4.x"
},
"models": [
"claude-opus-4-5",
"claude-opus-4-5-20251101",
"claude-opus-4-6",
"claude-opus-4-7",
"claude-opus-4-8"
],
"limits": [
{
"type": "requests_per_minute",
"value": 1000,
"org_limit": 4000,
"source": { "type": "workspace" }
},
{
"type": "input_tokens_per_minute",
"value": 500000,
"org_limit": 10000000,
"source": { "type": "workspace" }
},
{
"type": "output_tokens_per_minute",
"value": 800000,
"org_limit": 800000,
"source": { "type": "organization" }
}
]
},
{
"type": "workspace_rate_limit",
"group_type": "batch",
"group": { "type": "batch", "id": "rlg_01Wn3pBz6kCg9vHtQ7mLxD5a" },
"models": null,
"limits": [
{
"type": "enqueued_batch_requests",
"value": 500000,
"org_limit": 500000,
"source": { "type": "organization" }
}
]
}
],
"next_page": null
}Filtering by group type
Both endpoints accept an optional group_type query parameter that restricts the response to a single category:
client = anthropic.Anthropic()
rate_limits = client.organization.rate_limits.list(group_type="batch")
for entry in rate_limits:
models = f" ({', '.join(entry.models)})" if entry.models else ""
print(f"{entry.group.type}{models}")
for limit in entry.limits:
print(f" {limit.type}: {limit.value}")Valid values are model_group, batch, token_count, files, skills, and web_search.
Pagination
Both endpoints accept a page query parameter and return a next_page field. Responses are currently always a single page, so next_page is null. Loop on next_page so your client paginates correctly without changes when the response grows.
Frequently asked questions
Which model strings appear in the models list?
Every model ID and alias that counts against the group, including dated IDs (such as claude-sonnet-4-5-20250929) and undated aliases (such as claude-sonnet-4-5). Look up any model string you pass to the Messages API and you'll find it in exactly one model_group entry.
What does it mean if a group is missing from the workspace response?
By default, the workspace response lists only overrides, so a missing group has no workspace override and inherits the organization-level limit. Pass include_inherited=true to see inherited values on the workspace endpoint, or query the organization endpoint. With include_inherited=true, a group is missing only when it doesn't apply to the workspace or the organization has no limit set for it.
Can I update rate limits with this API?
No. To set workspace rate limits, go to the Rate limits page in the Claude Console, select the workspace from the Workspace dropdown menu, and click Edit next to a model.
See also
Was this page helpful?