Skip to content

fix(provider): drop the claude-code beta header from Anthropic requests - #996

Merged
Aayam Bansal (aayambansal) merged 1 commit into
synthetic-sciences:mainfrom
jhk0317:fix/anthropic-beta-claude-code-billing
Oct 18, 2026
Merged

Aayam Bansal (aayambansal) merged 1 commit into
synthetic-sciences:mainfrom
jhk0317:fix/anthropic-beta-claude-code-billing

Conversation

@jhk0317

Copy link
Copy Markdown
Contributor

With claude-code-20250219 set, API-key requests are billed as Claude Code usage, which Max/Team plan API credits do not cover, so orgs funded only by those credits get HTTP 400 "credit balance is too low".

Fixes #995

What does this PR do, and why?

Linked issue

How did you verify it?

Checklist

  • bun run check is green (format, typecheck, backend + frontend/ui + SDK tests)
  • bun run --cwd frontend/workspace build succeeds if I touched frontend/workspace or frontend/ui
  • ./tooling/repo/generate.ts was run and the tooling/sdk output committed if I changed backend/cli/src/server
  • CHANGELOG.md has an Unreleased entry if the change is user-visible
  • The matching docs page under frontend/docs/src/content/openscience/ is updated if behavior changed
  • Screenshots or a short video are attached for UI changes
  • No version bumps (package.json versions and tags are written by the release workflow)
  • install and frontend/landing/public/install are still byte-identical if I touched either

With claude-code-20250219 set, API-key requests are billed as Claude Code usage, which Max/Team plan API credits do not cover, so orgs funded only by those credits get HTTP 400 "credit balance is too low".

Fixes #995
@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown

Jinho Kim (@jhk0317) is attempting to deploy a commit to the InkVell Team on Vercel.

A member of the Team first needs to authorize it.

@aayambansal
Aayam Bansal (aayambansal) merged commit fba1e99 into synthetic-sciences:main Oct 18, 2026
8 of 9 checks passed
@jhk0317
Jinho Kim (jhk0317) deleted the fix/anthropic-beta-claude-code-billing branch October 18, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic API-key requests fail with "credit balance too low" when the org uses Claude Max/Team API credits

2 participants