This request requires more credits, or fewer max_tokens. You requested up to 32000 tokens, but can only afford 0. To increase, visit https://openrouter.ai/settings/keys and create a key with a higher monthly limit #8564

Open
opened 2026-02-16 18:10:17 -05:00 by yindo · 2 comments
Owner

Originally created by @arshadbarves on GitHub (Feb 4, 2026).

Originally assigned to: @fwang on GitHub.

Description

I am getting "This request requires more credits, or fewer max_tokens. You requested up to 32000 tokens, but can only afford 0. To increase, visit https://openrouter.ai/settings/keys and create a key with a higher monthly limit" when i try to use Kimi 2.5 Free model

Plugins

No response

OpenCode version

1.1.51

Steps to reproduce

  1. Select Kimi 2.5-free model
  2. Send any message

Screenshot and/or share link

Image

Operating System

macOS 26.2

Terminal

Desktop

Originally created by @arshadbarves on GitHub (Feb 4, 2026). Originally assigned to: @fwang on GitHub. ### Description I am getting "This request requires more credits, or fewer max_tokens. You requested up to 32000 tokens, but can only afford 0. To increase, visit https://openrouter.ai/settings/keys and create a key with a higher monthly limit" when i try to use Kimi 2.5 Free model ### Plugins _No response_ ### OpenCode version 1.1.51 ### Steps to reproduce 1. Select Kimi 2.5-free model 2. Send any message ### Screenshot and/or share link <img width="878" height="949" alt="Image" src="https://github.com/user-attachments/assets/557abeee-2507-464d-9f68-1d47c0081cd2" /> ### Operating System macOS 26.2 ### Terminal Desktop
yindo added the bugzen labels 2026-02-16 18:10:17 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #1735: max_tokens defaults to 32000 when using a custom provider

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 4, 2026): This issue might be a duplicate of existing issues. Please check: - #1735: max_tokens defaults to 32000 when using a custom provider Feel free to ignore if none of these address your specific case.
Author
Owner

@sudoer777 commented on GitHub (Feb 4, 2026):

I get a similar error with glm-4.7-free as well.

@sudoer777 commented on GitHub (Feb 4, 2026): I get a similar error with `glm-4.7-free` as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8564