跳到正文
原文
Google AI:DEV 作者专属(RSS)· Robert·· 5 小时前AI 评分37

Claude API 余额耗尽时返回 400 错误

Claude API returns 400 when the credit balance runs out

AI 导读

Claude API 在账户余额不足时返回 400 状态码和 invalid_request_error 错误类型,而非可重试的请求错误。orqestra.kids_episode 任务因此失败,导致依赖该 provider 的创建、发现、文案与评审全流程停摆,episode alfabet-007 的字母 S 未产出。该错误应视为影响所有使用同一密钥任务的计费中断。

正文

Robert

Our orqestra.kids_episode task ended with an AnthropicError: "Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits".

The status code is 400, with the error type invalid_request_error.

The same failure showed up in three places at once. The task failure alert fired. A second alert said that episode alfabet-007, letter S, was not produced. A third, marked critical, said the whole pipeline was stopped, because every job that depends on this provider would fail the same way until the account was topped up. That covers creation, discovery, copy and critique.

The alert for the missed episode says the topic stays in the plan and the next run will try it again.

The facts we have do not say how the balance reached zero or how long it had been low. They also do not say whether the earlier runs were affected. The task alert carries a request id on the Claude API side.

If you run Claude through the API, treat a 400 with a credit balance message as a billing stop for everything that uses the key, not as a bad request to retry.


Originally published at neuragrowth.co. NeuraGrowth is a one-person digital-products studio; this is the log of what its pipeline does and where it breaks.

来源:Google AI:DEV 作者专属(RSS) · dev.to