Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Cline error

Cline: API Request Failed error: 400 Input tokens exceed the configured limit...

Error message
API Request Failed error: 400 Input tokens exceed the configured limit of 272000 tokens. Your messages resulted in 289650 tokens. Please reduce the length of the messages.

Status: Fixed in releaseLast verified 1 documented fix4 sources

What it means

GPT-5's input limit is 272K tokens; Cline sent more than that.

Causes

  • GPT-5's 400K context is split as 272K input plus 128K output; saoudrizwan explained that with a 128K max output the conversation can grow past the 272K input window, and the next request fails.

How to fix it

  1. Fix 1.

    Update Cline: 3.24.0 "Set gpt5 max tokens to 8_192 to fix 'context window exceeded' error"; 3.26.2 "Fix GPT-5 context window configuration for OpenAI/OpenRouter/Cline providers to use correct 272K limit"; 3.26.6 makes GPT-5 respect the auto-compact setting.

More Cline errors

All 17 Cline errors

FAQ

What does "API Request Failed error: 400 Input tokens exceed the configured limit..." mean in Cline?

GPT-5's input limit is 272K tokens; Cline sent more than that.

How do I fix "API Request Failed error: 400 Input tokens exceed the configured limit..."?

Update Cline: 3.24.0 "Set gpt5 max tokens to 8_192 to fix 'context window exceeded' error"; 3.26.2 "Fix GPT-5 context window configuration for OpenAI/OpenRouter/Cline providers to use correct 272K limit"; 3.26.6 makes GPT-5 respect the auto-compact setting.

Is this Cline error fixed?

Status: Fixed in release. A release fixed this. The affected versions note says where the fix landed. Affected versions: Reported on 3.23.0; fixed by 3.26.2

Sources

Last verified against 4 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.