> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GuardrailCapacityPolicyConfig

## Example Usage

```typescript theme={null}
import { GuardrailCapacityPolicyConfig } from "@openrouter/sdk/models";

let value: GuardrailCapacityPolicyConfig = {
  bucketBy: [
    "member",
    "model",
  ],
  limits: [
    {
      limit: 100000,
      models: "all",
      unit: "tokens",
    },
  ],
};
```

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `bucketBy` | [models.BucketBy](../models/bucketby.mdx)\[] | ✔️ | Distinct dimensions defining each rate-limit bucket. Must include `member` or `api_key` and end with `model`. | \[ "member", "model" ] |
| `limits` | [models.GuardrailCapacityLimit](../models/guardrailcapacitylimit.mdx)\[] | ✔️ | One or more per-minute token or request limits (up to 200 entries and 200 listed models total). | |
