Max Plan using Sonnet 4.6 API Error 1M

Resolved 💬 1 comment Opened Jun 3, 2026 by gianyabut Closed Jul 7, 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?

I am getting API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

I am using Sonnet 4.6 and my current session is usage is only at 40%, I always encounter this issue

What Should Happen?

CLAUDE_CODE_DISABLE_1M_CONTEXT=1 has no effect

Error Messages/Logs

API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

Steps to Reproduce

I get this when I hit a certain percentage of usage but it is less than 50

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Latest one

Platform

Anthropic API

Operating System

macOS

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 ↗