Example Usage
import { CapacityGuardrailPolicySummary } from "@openrouter/sdk/models";
let value: CapacityGuardrailPolicySummary = {
apiKeyCount: 742017,
config: {
bucketBy: [
"member",
"model",
],
limits: [
{
limit: 100000,
models: "all",
unit: "tokens",
},
],
},
id: "550e8400-e29b-41d4-a716-446655440000",
memberCount: 690283,
name: "Engineering monthly budget",
policyType: "rate_limit",
updatedAt: "1735605279112",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
apiKeyCount | number | ✔️ | N/A | |
config | models.GuardrailCapacityPolicyConfig | ✔️ | N/A | { “bucket_by”: [ “member”, “model” ], “limits”: [ { “limit”: 100000, “models”: “all”, “unit”: “tokens” } ] } |
id | string | ✔️ | Policy ID | 550e8400-e29b-41d4-a716-446655440000 |
isWorkspaceDefault | boolean | ➖ | N/A | |
memberCount | number | ✔️ | N/A | |
name | string | ✔️ | Policy name | Engineering monthly budget |
policyType | models.CapacityGuardrailPolicySummaryPolicyType | ✔️ | N/A | |
updatedAt | string | ✔️ | N/A |