12 Nov 2026·6 min read

The 2048-character problem

One of our engines rejects any prompt over roughly 2,048 characters. Our composer routinely produces 3,000. Here is how we made the two agree.

A composer that adds eleven layers of detail is a nice idea until you hand it to an engine that silently caps your prompt. Then every request fails, and the error message tells you nothing.

The failure

A prompt that matched a scene, an income class, an environment and a set of props came out at 3,031 characters. The engine wanted under 2,048. The result was not a shorter image — it was no image.

Truncating a prompt is easy. Truncating it without deleting the thing that made it good is the actual problem. — the design constraint

The naive fix, and why it is wrong

Slice the string to 2,048 characters. Now you have cut a sentence in half, and more importantly you have cut it from the end — which is exactly where the face layer and the anti-render tail live.

You keep the props. You lose the skin texture. The image gets worse in the one way that matters most.

Priority trimming

Every layer carries a priority number. When the total exceeds the budget, whole layers are dropped from the least important end — never a partial sentence.

0  subject          always kept
1  faces            always kept
2  anti-AI tail     always kept
3  scene detail
4  signage
5  income class
6  light
7  crowd
8  style prose
9  environment
10 props            dropped first

So the order of sacrifice is props, then environment, then style prose, then crowd. Faces and the anti-render tail are last out.

Budgets per engine

EnginePrompt capWhy
Kovik Engine C2,000Hard rejection above ~2,048
Kovik Engine S2,000Conservative
Kovik Engine A9,000Generous
The lesson

Compose once at the largest budget. Trim per engine at send time. Never trim in the composer, because the composer does not know which engine will end up serving the request.

The result: a 3,031-character composition becomes a 1,889-character prompt for the tight engine, still containing the subject, the face layer and the anti-render tail. Nothing is cut mid-sentence, and nothing important is lost.

EngineeringPrompt budget