> ## 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.

# CapacityGuardrailPolicy

## Example Usage

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

let value: CapacityGuardrailPolicy = {
  config: {
    bucketBy: [
      "member",
      "model",
    ],
    limits: [
      {
        limit: 100000,
        models: "all",
        unit: "tokens",
      },
    ],
  },
  id: "550e8400-e29b-41d4-a716-446655440000",
  name: "Engineering monthly budget",
  policyType: "rate_limit",
};
```

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `config` | [models.GuardrailCapacityPolicyConfig](../models/guardrailcapacitypolicyconfig.mdx) | ✔️ | N/A | \{ "bucket\_by": \[ "member", "model" ], "limits": \[ \{ "limit": 100000, "models": "all", "unit": "tokens" } ] } |
| `id` | *string* | ✔️ | Policy ID | 550e8400-e29b-41d4-a716-446655440000 |
| `name` | *string* | ✔️ | Policy name | Engineering monthly budget |
| `policyType` | [models.CapacityGuardrailPolicyPolicyType](../models/capacityguardrailpolicypolicytype.mdx) | ✔️ | N/A | |
