Skip to main content

HTTP 402 Payment Required

The request requires payment — billing is not set up or a balance is exhausted.

4xx · Client error✗ not retryable — fix the request instead

In AI APIs specifically

OpenAI returns 402-style billing errors when quota is exhausted; Anthropic surfaces billing problems as 400/403 with billing messages. Check the billing console first.

Fix checklist

  • Add or update the payment method.
  • Check usage limits and remaining credits.
  • Set up billing alerts so this never surprises you again.

Spec: RFC reference