Quota Dimensions

Reference for quota dimensions

Quota dimensions allow you to filter quotas by custom properties.

Common Dimensions

  • user_id - Filter by user
  • team_id - Filter by team
  • feature - Filter by feature
  • model - Filter by model
  • provider - Filter by provider

Example

// Create a quota for a specific user
await client.quotas.create({
  customerId: 'customer_123',
  eventType: 'model_call',
  limit: 100,
  window: 'daily',
  dimensions: {
    user_id: 'user_456',
  },
});

Next Steps

On this page