Skip to content

problem is that Free Claude Code is requesting 32,000 max output tokens on every call #752

Description

@keshav-077

OpenRouter 402 Error with MiniMax M3 in Free Claude Code

Description

I successfully installed and configured Free Claude Code and connected it to OpenRouter using a valid API key.

The model is configured as:

anthropic/open_router/minimax/minimax-m3

The API key is working correctly because OpenRouter logs show that requests are reaching the provider and consuming tokens.

However, every prompt fails with the following error:

Upstream provider OPENROUTER returned HTTP 402.

This request requires more credits, or fewer max_tokens.
You requested up to 32000 tokens, but can only afford 31886.

Steps to Reproduce

  1. Install Free Claude Code.

  2. Configure OpenRouter API key.

  3. Set model to:

    anthropic/open_router/minimax/minimax-m3
    
  4. Start fcc-server.

  5. Launch fcc-claude.

  6. Enter any prompt, including simple prompts such as:

    hello
    

    or

    what model are you?
    

Expected Behavior

The request should be sent to MiniMax M3 and return a response.

Actual Behavior

Every request fails before generation starts with HTTP 402.

Additional Information

  • Thinking mode disabled: Tested
  • Simple prompts: Tested
  • OpenRouter API key: Valid
  • Requests appear in OpenRouter Activity logs
  • OpenRouter Activity shows approximately 29K tokens processed from previous requests
  • Error occurs even for extremely small prompts

The error suggests that Free Claude Code may be sending a default max_tokens value of 32000 for every request, causing OpenRouter to reject the request during budget validation before generation begins.

Could you confirm whether the gateway is forcing max_tokens=32000 or provide a way to reduce the requested output token limit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions