#OpenRouter API Error: The maximum number of completion tokens was reached.
17 messages · Page 1 of 1 (latest)
Same here, trying to understand if I need to pay or something.
#bug Same here. My balance is fine.
grok code's output is limited to 10k tokens
that's per task? per second?
per request
API Limits: The generous limits of up to ~480 requests/minute and ~2M tokens/minute support high-throughput use cases, making it viable for integration into CI/CD pipelines or internal developer tools.
Can you point me in the right direction to fix this. I tried changing the task but that didn't help. I can pay but the guy here SdbbdS says his balance it's fine. Mine too
I need to keep working
Is it a large file it is trying to edit? You can switch to a model with a larger max output, like GPT-5 or Gemini (for Anthropic you'll have to enable reasoning and increase the max output manually due to a bug)
It's not a large file. It was establishing a notifications system for an app. It was editing notificationservice.ts file which has like 200 lines. Will restoring and starting a new task help?
Thanks for your anwers
maybe, but we may be missing something here. Do you get the same errors in different/new projects?
Not really, I have been working fine in the same project for a couple of days with bigger files.
Can you see in the chat window what it is doing when you hit the error? Tool calls can sometimes be expanded. Or do you hit it instantly when it does a request?
I started a new task and it worked! Guess the task got really big.