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
-
Install Free Claude Code.
-
Configure OpenRouter API key.
-
Set model to:
anthropic/open_router/minimax/minimax-m3
-
Start fcc-server.
-
Launch fcc-claude.
-
Enter any prompt, including simple prompts such as:
or
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?
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:
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:
Steps to Reproduce
Install Free Claude Code.
Configure OpenRouter API key.
Set model to:
Start
fcc-server.Launch
fcc-claude.Enter any prompt, including simple prompts such as:
or
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
The error suggests that Free Claude Code may be sending a default
max_tokensvalue 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=32000or provide a way to reduce the requested output token limit?