[BUG] Claude API with Claude Code

Resolved 💬 1 comment Opened Apr 29, 2026 by evertonaleixo Closed May 31, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Hello,

I’m trying to use the Claude API with Claude Code and also directly via curl, but I keep receiving this error:

"Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits."

However, in my Console billing page I can see a remaining credit balance of US$105.00.

I tested the same API key directly with curl and received the same error, so it does not seem to be a Claude Code issue.

Request ID:
req_011CaYeQRWEJeRKVdje8DRU4

Could you please check whether my API organization, workspace, billing status, or spend limits are blocking API usage?

Thank you.

What Should Happen?

It should connect

Error Messages/Logs

You are out of credits
To get started with the Claude API, purchase some credits.

Steps to Reproduce

  • Add credit
  • get api key
  • register the env
  • try to use.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗