---
title: "ai_credit_exhausted: what it means and how to fix it · Hypamoon"
description: "HTTP 402. env.HYPAMOON.ai.generate or env.HYPAMOON.ai.transcribe in an app's server code was refused because the AI credit of the app's project is used..."
url: https://hypamoon.com/docs/errors/ai_credit_exhausted
---

**Start for free.** [Sign up](https://app.hypamoon.com/?mode=signup&utm_source=docs&utm_campaign=banner) without a card and connect your chat, or create a test key for the API. Going live with something real asks for a quick check of your company first.

[Errors](https://hypamoon.com/docs/errors)

# ai\_credit\_exhausted

**Status**\
402

**Type**\
`https://hypamoon.com/docs/errors/ai_credit_exhausted`

`env.HYPAMOON.ai.generate` or `env.HYPAMOON.ai.transcribe` in an app's server code was refused because the AI credit of the app's project is used up (the AI credit in the plan and the balance), or the owner's monthly spending cap is reached. Nothing ran and nothing was charged. The error carries a `user_message` in the app's language that never mentions credit or amounts, so the app can show it as is; the app should fall back to its own logic. The project owner tops up the balance in the portal, or turns on automatic top-up.

Hypamoon is the infrastructure your chat or agent builds on for a business. Hypamoon API, version 1.[hypamoon.com](https://hypamoon.com/)
