This request requires more credits, or fewer max_tokens. You requested up to 23032 tokens, but can only afford 7768. To increase, visit https://openrouter.ai/settings/credits and upgrade to a paid account
Retry attempt 3
Retrying in 17 seconds...
9 messages · Page 1 of 1 (latest)
This request requires more credits, or fewer max_tokens. You requested up to 23032 tokens, but can only afford 7768. To increase, visit https://openrouter.ai/settings/credits and upgrade to a paid account
Retry attempt 3
Retrying in 17 seconds...
The error "This request requires more credits, or fewer max_tokens. You requested up to 23032 tokens, but can only afford 7768" means your request's max_tokens is too large for the credits you have. To fix this, either add more credits to your OpenRouter account or reduce the max_tokens parameter in your request so it fits within your current credit balance.
Why is the user seeing a connection failure on paid OpenRouter models with a message about requiring more credits or fewer max_tokens?
5/10
This is an AI-generated response and may not be 100% accurate. If you have further questions or need clarification, please ping @tidal perch for assistance.
❌ This response was marked as not helpful. A staff member will review this thread.
@tidal perch A user has indicated that the automated response wasn't helpful.
I changed models and still the same issue
is your API key on your personal account and not the org account?
org
how many credits does your personal account have?