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

# API error code 402 - You exceeded your current quota

A `402` error with the message `You exceeded your current quota, please check your plan and billing details` means you've run out of credits or reached your monthly spending cap. This article explains why the error occurs and how to restore access to Serverless Inference.

## Why this happens

Serverless Inference uses a credit-based system. This error occurs when:

* Your account has no remaining credits.
* You've reached the monthly spending cap set for your organization.

## Restore access

To restore access to Serverless Inference, do any of the following:

* **Check your plan and billing details.** Review your current usage and remaining credits in your W\&B account settings.
* **Get more credits.** Purchase additional credits or upgrade your plan.
* **Increase your limits.** Adjust your monthly spending cap if one is configured.

For more information, see [Usage information and limits](/inference/usage-limits/).

***

<Badge stroke shape="pill" color="orange" size="md">[Quotas & Rate Limits](/support/inference/tags/quotas-rate-limits)</Badge><Badge stroke shape="pill" color="orange" size="md">[Billing](/support/inference/tags/billing)</Badge>
