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

# Get Billing Mode

> Read the workspace billing mode and currency before you call other Billing API routes

Start with mode discovery, then call only the routes for that mode. The other mode returns `409` with `code` `BILLING_MODE_MISMATCH` and the workspace mode in `details.mode`.

## Base URL

```
https://api.langdock.com/billing/v1/mode
```

> [!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

## Billing mode

```bash theme={null}
curl https://api.langdock.com/billing/v1/mode \
  -H "Authorization: Bearer YOUR_API_KEY"
```

`bring-your-own-keys` uses US dollars:

```json theme={null}
{ "mode": "bring-your-own-keys", "currency": "USD" }
```

Plans are `standard` (**Standard**) and `power_user` (**Power user**). There is no seats route. Dedicated deployments always return this mode, including when Langdock manages the model keys. A Cloud workspace that brings its own keys returns it too.

`ai-models-included` uses euros:

```json theme={null}
{ "mode": "ai-models-included", "currency": "EUR" }
```

Plans are `business` (**Core** or **Work**) and `business_max` (**Core Max** or **Work Max**). There is no plan-count route. Paid seats are on [Get Seats](https://docs.langdock.com/en/developer/billing-api/get-seats.md). A Cloud workspace returns this mode when Langdock provides the models.

A path that does not exist in the workspace mode, such as seats on `bring-your-own-keys` or plan counts on `ai-models-included`, returns `404`.

> [!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.