#OpenRouter API Error: The maximum number of completion tokens was reached.

17 messages · Page 1 of 1 (latest)

green sage
#

while using Grok Code Fast 1 getting error

#

#bug

jolly quest
#

Same here, trying to understand if I need to pay or something.

autumn sluice
#

#bug Same here. My balance is fine.

dawn dock
#

grok code's output is limited to 10k tokens

jolly quest
dawn dock
#

per request

jolly quest
# dawn dock 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.

jolly quest
# dawn dock per request

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

dawn dock
#

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)

jolly quest
#

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

dawn dock
#

maybe, but we may be missing something here. Do you get the same errors in different/new projects?

jolly quest
#

Not really, I have been working fine in the same project for a couple of days with bigger files.

dawn dock
#

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?

jolly quest
#

I started a new task and it worked! Guess the task got really big.