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

# Set Group Monthly Budget

> Set the monthly budget that applies to each member of a group

Read groups and set a monthly budget for each member of a group. The budget is not a shared pool. Amounts are US dollars.

The calls use the workspace API key's `BILLING_API` scope. Writes run as the key's service account owner. This API does not add or remove group members.

## Base URL

```
https://api.langdock.com/billing/v1/bring-your-own-keys/groups/{groupId}/monthly-budget
```

> [!WARNING]
>
> **Dedicated deployments**
>
> Replace `api.langdock.com` with `<your-deployment-url>/api/public` in all requests.

## Prerequisites

* **API key** with the `BILLING_API` scope
* The key owner is a service account that has not been deleted and has an active Admin membership

## Set the monthly budget

`PUT /groups/{groupId}/monthly-budget` takes the budget directly.

```json theme={null}
{ "type": "limited", "amount": 200 }
```

`{ "type": "unlimited" }` removes the numeric cap. A limited amount may be zero. This value does not accept `none`.

For each member, the included monthly budget is the higher of the plan budget and this group budget. An unlimited group budget does not remove the workspace cap. See [Billing Users](https://docs.langdock.com/en/developer/billing-api/get-user.md) for how the effective source is chosen.

The response is the group object.

> [!NOTE]
>
> Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on [API Key Best Practices](https://docs.langdock.com/en/admin/ai-adoption-and-rollout/best-practices/api-key-best-practices.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.