Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ Your harness key is fine, but provider credentials are missing or unusable. See

## Limits (M200–M204)

You hit a usage cap, rate limit, or Free plan request quota. M200 comes back as an HTTP 200 assistant message for every client: the text rides in the assistant content, not in the HTTP status. M201-M203 surface as HTTP 429 for every client. M204 surfaces as HTTP 402 to non-chat clients because it is a billing plan restriction.
You hit a usage cap, a rate limit, or your Cloud workspace has no subscription. M200 comes back as an HTTP 200 assistant message for every client: the text rides in the assistant content, not in the HTTP status. M201-M203 surface as HTTP 429 for every client. M204 surfaces as HTTP 402 to non-chat clients because it is a billing plan restriction.

| Code | What |
|------|------|
| [M200: Usage limit exceeded](/llm-gateway/docs/errors/M200) | Cost or token limit you set was crossed |
| [M201: Per-user rate limit exceeded](/llm-gateway/docs/errors/M201) | More than 200 requests/minute from one user |
| [M202: Per-IP rate limit exceeded](/llm-gateway/docs/errors/M202) | More than 500 requests/minute from one IP |
| [M203: Concurrency limit exceeded](/llm-gateway/docs/errors/M203) | More than 10 in-flight requests at once |
| [M204: Monthly request limit reached](/llm-gateway/docs/errors/M204) | Free plan monthly request quota was exhausted |
| [M204: Subscription required](/llm-gateway/docs/errors/M204) | Cloud workspace without a Pro subscription |

## Request validation and model selection (M300–M303)

Expand Down
4 changes: 2 additions & 2 deletions errors/M200.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The response arrives as HTTP 200 with this text in the assistant message content

You set a limit on the harness's [Limits](/llm-gateway/docs/observability#spend-alerts) page (say, "$10/day" or "500k tokens/hour"), and the current period's usage just crossed it. The gateway blocks every following request until the period resets or you raise the cap.

This is different from [M204](/llm-gateway/docs/errors/M204), which is the LLM Gateway Cloud Free plan monthly request quota, and different from provider 402 errors such as "insufficient credits" from OpenRouter.
This is different from [M204](/llm-gateway/docs/errors/M204), which is returned by an LLM Gateway Cloud workspace without a Pro subscription, and different from provider 402 errors such as "insufficient credits" from OpenRouter.

## How to fix it

Expand All @@ -38,5 +38,5 @@ This is different from [M204](/llm-gateway/docs/errors/M204), which is the LLM G
- [M201: Per-user rate limit](/llm-gateway/docs/errors/M201)
- [M202: Per-IP rate limit](/llm-gateway/docs/errors/M202)
- [M203: Concurrency limit](/llm-gateway/docs/errors/M203)
- [M204: Monthly request limit reached](/llm-gateway/docs/errors/M204)
- [M204: Subscription required](/llm-gateway/docs/errors/M204)
- [All error codes](/llm-gateway/docs/errors)
31 changes: 21 additions & 10 deletions errors/M204.mdx
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
---
title: "M204: Monthly request limit reached"
title: "M204: Subscription required"
sidebarTitle: "M204"
description: "M204 is returned when a free LLM Gateway Cloud workspace reaches its monthly request allowance."
description: "M204 is returned when an LLM Gateway Cloud workspace without a Pro subscription sends a request."
icon: "badge-alert"
keywords:
["M204", "Manifest M204", "PLAN_LIMIT_REQUESTS", "monthly request limit", "free plan request limit", "Manifest billing", "402 Payment Required", "upgrade to Pro"]
["M204", "Manifest M204", "PLAN_LIMIT_REQUESTS", "subscription required", "Manifest Cloud plan", "Manifest billing", "402 Payment Required", "subscribe to Pro"]
canonical: "https://manifest.build/llm-gateway/docs/errors/M204"
---

## What you saw

```text
[🦚 Manifest M204] You've used all 10000 requests included this month on the Free plan. Upgrade to Pro for unlimited requests: https://app.manifest.build/upgrade?reason=requests
[🦚 Manifest M204] Manifest Cloud needs a Pro subscription to route requests. Subscribe here: https://app.manifest.build/upgrade?reason=requests
See https://manifest.build/llm-gateway/docs/errors/M204
```

SDK and tool callers receive an HTTP 402 JSON error with `error.code` set to `PLAN_LIMIT_REQUESTS`.
SDK and tool callers receive an HTTP 402 JSON error with `error.code` set to `PLAN_LIMIT_REQUESTS`:

```json
{
"error": {
"message": "[🦚 Manifest M204] Manifest Cloud needs a Pro subscription to route requests. Subscribe here: https://app.manifest.build/upgrade?reason=requests",
"type": "insufficient_quota",
"code": "PLAN_LIMIT_REQUESTS"
}
}
```

## Why it happened

Your LLM Gateway Cloud workspace reached the Free plan monthly request quota. This is a Cloud plan restriction, not a provider error and not a limit you configured on a harness.
Your LLM Gateway Cloud workspace has no active Pro subscription. Since November 2, 2026, Manifest Cloud is $19/month with unlimited routed requests, and a workspace without a subscription does not route requests. The check runs before any provider is contacted, so nothing was sent and nothing was spent. Your dashboard, harnesses and settings are kept.

This is a Cloud plan restriction, not a provider error and not a limit you configured on a harness.

## How to fix it

1. Upgrade to Pro from the dashboard link in the error message.
2. Or wait for the monthly request quota to reset.
3. Retry the request after the plan changes or the quota resets.
1. Subscribe from the dashboard link in the error message. Routing resumes as soon as the subscription is active.
2. Or run the gateway yourself: the [self-hosted](/llm-gateway/docs/self-hosted) gateway is free, has no request limit and never returns M204.

## Related

- [Upgrade dashboard](https://app.manifest.build/upgrade?reason=requests)
- [Subscribe](https://app.manifest.build/upgrade?reason=requests)
- [M200: Usage limit exceeded](/llm-gateway/docs/errors/M200)
- [All error codes](/llm-gateway/docs/errors)
2 changes: 1 addition & 1 deletion introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The gateway is open source and runs two ways. Both speak the same API, so pointi

On Cloud there is nothing to install or configure on a server. You sign up, connect your providers, and point your harness at the gateway URL. Routing, limits, [Autofix](/llm-gateway/docs/autofix), and alerts are settings in the dashboard. The [environment variables](/llm-gateway/docs/reference/environment-variables) throughout these docs apply only to a self-hosted gateway.

Cloud is also subject to [plan limits](/llm-gateway/docs/errors/M204): the free plan includes 10,000 routed requests per calendar month, shown by the usage meter in the dashboard sidebar and reset at 00:00 UTC on the 1st. And it can't reach [local models](/llm-gateway/docs/providers/local-models) running on your machine. A self-hosted instance has neither restriction.
Cloud is a paid service: $19/month, with unlimited routed requests and 365 days of history. A workspace without a subscription does not route requests and gets [M204](/llm-gateway/docs/errors/M204). Cloud also can't reach [local models](/llm-gateway/docs/providers/local-models) running on your machine. A self-hosted instance is free, has no request limit and reaches local models.

## Your first request

Expand Down
4 changes: 2 additions & 2 deletions llm-gateway.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ A limit rule can block requests as well as email you. When a rule's action inclu
The check runs before any provider is contacted, so a blocked request costs nothing. The block clears on its own at the start of the next period, or immediately if you raise the threshold.

<Note>
On LLM Gateway Cloud, running out of the Free plan's monthly requests is a
different thing entirely: that returns [M204](/llm-gateway/docs/errors/M204) with HTTP `402`
On LLM Gateway Cloud, a workspace without a Pro subscription is a different
thing entirely: that returns [M204](/llm-gateway/docs/errors/M204) with HTTP `402`
and isn't something you configured.
</Note>

Expand Down
4 changes: 2 additions & 2 deletions llm-gateway/docs/errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ Your harness key is fine, but provider credentials are missing or unusable. See

## Limits (M200–M204)

You hit a usage cap, rate limit, or Free plan request quota. M200 comes back as an HTTP 200 assistant message for every client: the text rides in the assistant content, not in the HTTP status. M201-M203 surface as HTTP 429 for every client. M204 surfaces as HTTP 402 to non-chat clients because it is a billing plan restriction.
You hit a usage cap, a rate limit, or your Cloud workspace has no subscription. M200 comes back as an HTTP 200 assistant message for every client: the text rides in the assistant content, not in the HTTP status. M201-M203 surface as HTTP 429 for every client. M204 surfaces as HTTP 402 to non-chat clients because it is a billing plan restriction.

| Code | What |
|------|------|
| [M200: Usage limit exceeded](/llm-gateway/docs/errors/M200) | Cost or token limit you set was crossed |
| [M201: Per-user rate limit exceeded](/llm-gateway/docs/errors/M201) | More than 200 requests/minute from one user |
| [M202: Per-IP rate limit exceeded](/llm-gateway/docs/errors/M202) | More than 500 requests/minute from one IP |
| [M203: Concurrency limit exceeded](/llm-gateway/docs/errors/M203) | More than 10 in-flight requests at once |
| [M204: Monthly request limit reached](/llm-gateway/docs/errors/M204) | Free plan monthly request quota was exhausted |
| [M204: Subscription required](/llm-gateway/docs/errors/M204) | Cloud workspace without a Pro subscription |

## Request validation and model selection (M300–M303)

Expand Down
4 changes: 2 additions & 2 deletions llm-gateway/docs/errors/M200.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The response arrives as HTTP 200 with this text in the assistant message content

You set a limit on the harness's [Limits](/llm-gateway/docs/observability#spend-alerts) page (say, "$10/day" or "500k tokens/hour"), and the current period's usage just crossed it. The gateway blocks every following request until the period resets or you raise the cap.

This is different from [M204](/llm-gateway/docs/errors/M204), which is the LLM Gateway Cloud Free plan monthly request quota, and different from provider 402 errors such as "insufficient credits" from OpenRouter.
This is different from [M204](/llm-gateway/docs/errors/M204), which is returned by an LLM Gateway Cloud workspace without a Pro subscription, and different from provider 402 errors such as "insufficient credits" from OpenRouter.

## How to fix it

Expand All @@ -38,5 +38,5 @@ This is different from [M204](/llm-gateway/docs/errors/M204), which is the LLM G
- [M201: Per-user rate limit](/llm-gateway/docs/errors/M201)
- [M202: Per-IP rate limit](/llm-gateway/docs/errors/M202)
- [M203: Concurrency limit](/llm-gateway/docs/errors/M203)
- [M204: Monthly request limit reached](/llm-gateway/docs/errors/M204)
- [M204: Subscription required](/llm-gateway/docs/errors/M204)
- [All error codes](/llm-gateway/docs/errors)
31 changes: 21 additions & 10 deletions llm-gateway/docs/errors/M204.mdx
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
---
title: "M204: Monthly request limit reached"
title: "M204: Subscription required"
sidebarTitle: "M204"
description: "M204 is returned when a free LLM Gateway Cloud workspace reaches its monthly request allowance."
description: "M204 is returned when an LLM Gateway Cloud workspace without a Pro subscription sends a request."
icon: "badge-alert"
keywords:
["M204", "Manifest M204", "PLAN_LIMIT_REQUESTS", "monthly request limit", "free plan request limit", "Manifest billing", "402 Payment Required", "upgrade to Pro"]
["M204", "Manifest M204", "PLAN_LIMIT_REQUESTS", "subscription required", "Manifest Cloud plan", "Manifest billing", "402 Payment Required", "subscribe to Pro"]
canonical: "https://manifest.build/llm-gateway/docs/errors/M204"
---

## What you saw

```text
[🦚 Manifest M204] You've used all 10000 requests included this month on the Free plan. Upgrade to Pro for unlimited requests: https://app.manifest.build/upgrade?reason=requests
[🦚 Manifest M204] Manifest Cloud needs a Pro subscription to route requests. Subscribe here: https://app.manifest.build/upgrade?reason=requests
See https://manifest.build/llm-gateway/docs/errors/M204
```

SDK and tool callers receive an HTTP 402 JSON error with `error.code` set to `PLAN_LIMIT_REQUESTS`.
SDK and tool callers receive an HTTP 402 JSON error with `error.code` set to `PLAN_LIMIT_REQUESTS`:

```json
{
"error": {
"message": "[🦚 Manifest M204] Manifest Cloud needs a Pro subscription to route requests. Subscribe here: https://app.manifest.build/upgrade?reason=requests",
"type": "insufficient_quota",
"code": "PLAN_LIMIT_REQUESTS"
}
}
```

## Why it happened

Your LLM Gateway Cloud workspace reached the Free plan monthly request quota. This is a Cloud plan restriction, not a provider error and not a limit you configured on a harness.
Your LLM Gateway Cloud workspace has no active Pro subscription. Since November 2, 2026, Manifest Cloud is $19/month with unlimited routed requests, and a workspace without a subscription does not route requests. The check runs before any provider is contacted, so nothing was sent and nothing was spent. Your dashboard, harnesses and settings are kept.

This is a Cloud plan restriction, not a provider error and not a limit you configured on a harness.

## How to fix it

1. Upgrade to Pro from the dashboard link in the error message.
2. Or wait for the monthly request quota to reset.
3. Retry the request after the plan changes or the quota resets.
1. Subscribe from the dashboard link in the error message. Routing resumes as soon as the subscription is active.
2. Or run the gateway yourself: the [self-hosted](/llm-gateway/docs/self-hosted) gateway is free, has no request limit and never returns M204.

## Related

- [Upgrade dashboard](https://app.manifest.build/upgrade?reason=requests)
- [Subscribe](https://app.manifest.build/upgrade?reason=requests)
- [M200: Usage limit exceeded](/llm-gateway/docs/errors/M200)
- [All error codes](/llm-gateway/docs/errors)
2 changes: 1 addition & 1 deletion llm-gateway/docs/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The gateway is open source and runs two ways. Both speak the same API, so pointi

On Cloud there is nothing to install or configure on a server. You sign up, connect your providers, and point your harness at the gateway URL. Routing, limits, [Autofix](/llm-gateway/docs/autofix), and alerts are settings in the dashboard. The [environment variables](/llm-gateway/docs/reference/environment-variables) throughout these docs apply only to a self-hosted gateway.

Cloud is also subject to [plan limits](/llm-gateway/docs/errors/M204): the free plan includes 10,000 routed requests per calendar month, shown by the usage meter in the dashboard sidebar and reset at 00:00 UTC on the 1st. And it can't reach [local models](/llm-gateway/docs/providers/local-models) running on your machine. A self-hosted instance has neither restriction.
Cloud is a paid service: $19/month, with unlimited routed requests and 365 days of history. A workspace without a subscription does not route requests and gets [M204](/llm-gateway/docs/errors/M204). Cloud also can't reach [local models](/llm-gateway/docs/providers/local-models) running on your machine. A self-hosted instance is free, has no request limit and reaches local models.

## Your first request

Expand Down
4 changes: 2 additions & 2 deletions llm-gateway/docs/llm-gateway.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ A limit rule can block requests as well as email you. When a rule's action inclu
The check runs before any provider is contacted, so a blocked request costs nothing. The block clears on its own at the start of the next period, or immediately if you raise the threshold.

<Note>
On LLM Gateway Cloud, running out of the Free plan's monthly requests is a
different thing entirely: that returns [M204](/llm-gateway/docs/errors/M204) with HTTP `402`
On LLM Gateway Cloud, a workspace without a Pro subscription is a different
thing entirely: that returns [M204](/llm-gateway/docs/errors/M204) with HTTP `402`
and isn't something you configured.
</Note>

Expand Down
2 changes: 1 addition & 1 deletion llm-gateway/docs/observability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This is why the request count and the provider call count don't match, and why c

<div data-deploy="cloud">

On the Free plan, the Overview covers up to 7 days of history; the 30-, 90-, and 365-day ranges need Pro.
On Cloud, the Overview covers up to 365 days of history.

</div>

Expand Down
4 changes: 2 additions & 2 deletions llm-gateway/docs/reference/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Errors come in two shapes, depending on the caller. A tool or SDK call gets a re
| Status | Meaning |
|---|---|
| `401` | Invalid or missing `Authorization` header |
| `402` | LLM Gateway Cloud Free plan quota reached (`error.code = PLAN_LIMIT_REQUESTS`, [M204](/llm-gateway/docs/errors/M204)), or provider billing/quota error from the upstream |
| `402` | LLM Gateway Cloud workspace without a Pro subscription (`error.code = PLAN_LIMIT_REQUESTS`, [M204](/llm-gateway/docs/errors/M204)), or provider billing/quota error from the upstream |
| `429` | gateway rate limit tripped ([M201](/llm-gateway/docs/errors/M201), [M202](/llm-gateway/docs/errors/M202), [M203](/llm-gateway/docs/errors/M203)), or a rate limit the provider itself returned |
| `5xx` | Upstream provider error (triggers [fallback](/llm-gateway/docs/llm-gateway#fallback)) |

Expand All @@ -214,7 +214,7 @@ A [hard limit](/llm-gateway/docs/llm-gateway#hard-limits) block ([M200](/llm-gat

The gateway enforces three caps. A workspace can send **200 requests per minute** ([M201](/llm-gateway/docs/errors/M201)). An IP can send **500 requests per minute** ([M202](/llm-gateway/docs/errors/M202)). A workspace can have **10 requests in flight at once** ([M203](/llm-gateway/docs/errors/M203)). On Cloud, these caps are fixed. Self-hosted, you can raise each one with an environment variable, see [LLM proxy variables](/llm-gateway/docs/reference/environment-variables#llm-proxy). Each gateway instance keeps its own counts, so on a multi-replica deploy the caps apply per replica.

Your Cloud plan sets your monthly request quota ([M204](/llm-gateway/docs/errors/M204)). The per-minute caps stay the same on every plan.
A Cloud workspace needs a Pro subscription to route requests at all ([M204](/llm-gateway/docs/errors/M204)). The per-minute caps are the same on Cloud and self-hosted.

## Response headers

Expand Down
3 changes: 1 addition & 2 deletions llm-gateway/docs/request-logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ Recordings are deleted on a schedule. The metadata row in the request log stays;

| Deployment | Retention |
|---|---|
| Cloud Free | 7 days |
| Cloud Pro | 365 days |
| Self-hosted | 365 days |

Cloud Pro keeps 365 days only while the subscription is active or in a trial. A canceled workspace, or one whose payment failed, drops to 7 days, and the nightly cleanup applies that on its next run, deleting everything older than 7 days.
Cloud keeps 365 days only while the Pro subscription is active or in a trial. A canceled workspace, or one whose payment failed, drops to 7 days, and the nightly cleanup applies that on its next run, deleting everything older than 7 days.

Self-hosted installs can override this with `REQUEST_RECORDING_RETENTION_DAYS`. Setting it also overrides the per-plan split, so every recording on the instance expires on the same schedule.

Expand Down
2 changes: 1 addition & 1 deletion observability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This is why the request count and the provider call count don't match, and why c

<div data-deploy="cloud">

On the Free plan, the Overview covers up to 7 days of history; the 30-, 90-, and 365-day ranges need Pro.
On Cloud, the Overview covers up to 365 days of history.

</div>

Expand Down
Loading
Loading