OpenRouter released measured data showing it can cut costs by up to about 92 percent depending on how AI agents are operated. [Photo: ChatGPT]

Test results showed that efficiently managing an AI agent’s prompts and work history can cut operating costs by up to 92 percent. Maintaining a “prompt cache” that reuses existing input data proved key, rather than simply reducing token usage.

Gigazine, a Japanese media outlet, reported on Dec. 3 that AI model integration platform OpenRouter released test results on Dec. 1 comparing AI agents’ token use and costs.

OpenRouter created a hypothetical coding work history of about 1 million characters, comprising 260,000 tokens. It then sent 40 requests per session to the GPT-6 Luna model and compared costs and accuracy based on prompt structure.

The biggest factor was consistency at the beginning of the prompt. When it inserted a different time at the very start of the system prompt each time, the cache usage rate fell to 0 percent. When it fixed the opening section instead, the rate rose to 95 percent, and costs differed by about 7.8 times even with the same token use.

How it managed results from external tool executions also mattered. OpenRouter applied a method that kept only the first and last 800 characters of long execution results and omitted the middle. As a result, input tokens fell 36 percent and the cache usage rate stayed at 95 percent. Per-session cost was $0.054, about 92 percent cheaper than $0.658 under a basic setting without caching.

By contrast, when it re-compressed previous execution results each time it requested them, input tokens fell 60 percent, but costs increased about 3.1 times as caching was invalidated.

For long-running work, splitting older history and summarising it proved effective. Input for the final request fell to 63,000 tokens from 260,000 tokens. But repeatedly re-summarising existing summaries caused information loss and sharply reduced accuracy.

OpenRouter also presented lowering AI reasoning intensity for simple tasks as a way to reduce costs. It added that because the test was conducted under a specific model and pricing structure, actual savings may vary depending on the service environment.

Keyword

#OpenRouter #Gigazine #GPT-6 Luna #prompt cache
Copyright © DigitalToday. All rights reserved. Unauthorized reproduction and redistribution are prohibited.