New-Generation Large Models Reach a High-Risk Threshold for Self-Improvement: Cost, Control, and Risk in AI Agents
This article explains how AI agent systems change the way model costs should be measured, moving from per-token prices to the full cost of a task. It covers cost estimation, caching for long workflows, tiered model routing, and why self-improving capabilities require permission limits, iteration caps, result verification, and audit logs.
As large models shift from answering questions to planning tasks, calling tools, reading files, executing code, and revising their work based on results, the standards for judging model capability are changing. Earlier, the main question was whether a model could generate accurate text. Now the more important questions are whether a model can keep optimizing its strategy, whether that ability can move beyond controllable limits, and how companies can gain efficiency while managing cost and risk.
Recently, a new generation of high-capability models announced noticeable price changes. The input price is $8 per million tokens, the output price is $40 per million tokens, and the cached input price is $0.40 per million tokens. Compared with the previous generation, input and output prices each fell by 20%. Cached input fell from $1 to $0.40 per million tokens, a 60% reduction. Another model, positioned as a more cost-effective option, has an input price of $2 per million tokens and an output price of $10 per million tokens. Its overall pricing is unchanged.
These numbers may look like billing details, but they reflect a broader shift in how model services are priced. Pricing is moving from per-call billing to accounting for the entire task chain. For a simple question and answer, input and output token counts are fairly easy to estimate. An agent task, however, can include several rounds of planning, tool calls, file reads, code execution, error analysis, and retries. The final bill depends not only on the unit price but also on the total number of tokens the model needs to finish the task and on the number of calls it makes.
1. A Model’s Unit Price Is Not the Cost of a Task
For agent systems, the base cost of a task can be estimated with the following formula:
Task cost =input tokens × input price+ output tokens × output price+ cached tokens × cached price+ tool calls and external resource costs
Tool calls may not be billed directly by token, but they add overhead through context passing, result parsing, and retries. For example, a code repair task might go through these steps:
- Read the requirements and the project structure.
- Analyze the relevant files.
- Draft a modification plan.
- Call the execution environment to run tests.
- Read the error logs.
- Generate a new patch.
- Run the tests again.
- Summarize the changes.
If a model needs many round trips to complete a task, the cumulative token usage can grow quickly, even when the price per million tokens is low. In the other direction, a model with a higher unit price but stronger planning, fewer errors, and more compact output may produce a lower total cost for the complete task.
When companies evaluate models, they should therefore look beyond the price per million input tokens. They should also track:
- the average number of calls per task;
- the average input and output tokens per task;
- the error rate after tool calls;
- the share of tasks that need human intervention;
- the number of retries after a failed task;
- the end-to-end completion time;
- the acceptance rate of the final results.
Only by combining these metrics can a team calculate the real cost per task.
2. Caching Matters Most for Long-Running Workflows
In multi-step tasks, large amounts of context are reused repeatedly. Examples include repository documentation, system specifications, interface constraints, and past execution results. If every request is billed at the full input price, costs rise and the model has to process more context each time.
Lower cached input prices can produce clearer cost savings in long-context scenarios. Typical applications include:
- continuous analysis of the same large code repository;
- repeated processing of the same technical documentation;
- long-running automated operations workflows;
- enterprise knowledge assistants that repeatedly reference rules and configuration;
- multi-step data processing and review tasks.
Caching does not mean that every past piece of content should be kept indefinitely. Overly long or cluttered context can weaken the model’s attention and bring in outdated information. A more practical approach is to split context into stable and dynamic parts. The stable part includes system rules, project constraints, and fixed knowledge. The dynamic part includes the current task, the latest logs, and temporary results. Only stable content that is reused often should go into a caching strategy.
3. Use a Layered Architecture for Low-Cost and High-Capability Models
In one independent programming benchmark, the lower-priced model scored only 0.5 points below the higher-capability model, while its cost was about one-fifth of that model’s cost. This suggests that for some standardized programming tasks, lower-priced models can cover a large share of the workload.
However, benchmark scores do not directly predict production performance. Standard tests usually have clear inputs, fixed evaluation rules, and a relatively closed scope. Real enterprise environments often include factors such as:
- incomplete requirement descriptions;
- uneven quality in legacy code;
- complex dependencies;
- insufficient test coverage;
- restricted permissions and data access;
- wrong results that can cause business losses.
A safer architecture is therefore a layered model system:
1. Use cost-effective models for low-risk tasks
Examples include format conversion, simple summarization, routine code comments, basic queries, and structured information extraction. These tasks have clear rules, failures are easy to spot, and a lower-cost model is usually sufficient.
2. Use high-capability models for complex tasks
For cross-file refactoring, complex fault diagnosis, architecture design, and high-risk changes, a model with stronger reasoning ability can reduce repeated calls and the spread of errors.
3. Build escalation and fallback mechanisms
The system can start with a low-cost model and escalate to a high-capability model when any of the following occurs:
- multiple test failures;
- generated results that fail static checks;
- uncertainty about key constraints;
- tasks that involve sensitive data or core business logic;
- the need for coordinated execution across several systems.
This approach keeps average costs under control while providing higher reliability at critical points.
4. Why Self-Improvement Is Treated as a High-Risk Threshold
“Self-improvement” does not necessarily mean that a model can fully retrain itself without supervision. More often, it means the model can adjust its plan based on execution results, refine prompting strategies, change how it calls tools, and improve its task completion rate over several rounds of feedback.
This capability matters for agents because real tasks rarely succeed on the first attempt. A model needs to observe results, identify errors, revise its approach, and continue. However, when a model can automatically change its strategy or influence its own runtime environment, system risk rises.
The main risks include:
Goal drift
The model may focus too much on completing the task and ignore permission boundaries, data protection, or business rules.Error loops
If the feedback mechanism is weak, the model may keep iterating on a flawed approach. This increases the number of calls and can make costs spiral out of control.Permission expansion
To finish a task, an agent may try to request more files, system interfaces, or execution rights.Unexplainable results
After several rounds of automatic adjustment, the final solution may be hard to trace. Operators may not be able to tell how key decisions were made.Risk propagation
A wrong rule or incorrect context may carry into later tasks and cause a chain of effects.
For this reason, the stronger a system’s self-improvement ability, the more boundary controls it needs. Self-improvement should not be treated simply as a higher level of automation.
5. Security Controls for Enterprise Deployments
To keep agents within controlled limits, teams can apply the following governance measures:
Minimize permissions
Manage file reads, code execution, network access, and data writes as separate permissions. By default, grant only the minimum access needed for the current task, and prevent the model from expanding its own permissions.
Maintain a tool allowlist
Every callable tool should be registered and reviewed, and its parameter ranges should be limited. High-risk operations, such as deleting data, changing production configuration, or sending external requests, should require manual confirmation.
Set iteration limits
Set maximum call rounds, maximum token counts, and maximum runtime for each task. When a threshold is exceeded, pause the task and hand it to a human operator. This prevents error loops from causing uncontrolled costs and resource use.
Verify results
Code, configuration, and data processing output generated by a model should not be treated as trustworthy by default. Verify results through several layers, including static checks, automated tests, format validation, permission checks, and human approval.
Audit the full workflow
Record every model input and output, tool call, error message, retry reason, and final result. Audit logs support troubleshooting and later optimization of cost and security policies.
Isolate sensitive information
Mask or isolate personal data, keys, internal configuration, and confidential business information. Even when a model understands context well, it should not be assumed to have access to all enterprise data.
6. Evaluate Models by Value per Task, Not Only by Benchmark Scores
Technical teams can build an evaluation framework closer to production conditions. It places model performance, cost, and security on the same scale:
Value per task =number of tasks successfully completed÷combined total cost, total time, and risk losses
In practice, evaluations should use real enterprise task samples and observe how models perform under different levels of complexity, context lengths, and tool chains. Beyond accuracy, teams should track task completion rate, the rate of human takeover, average retry count, and the severity of errors.
For high-risk tasks, it is better to accept slower speed in exchange for verifiability and rollback capability. For low-risk, high-frequency tasks, teams can reduce costs through caching, batch processing, model routing, and context compression.
Conclusion
Lower prices for new-generation large models, especially lower cached input costs, create more room for long-running agents and enterprise automation. Price is not the only factor, though. Whether a model reduces repeated calls, recovers stably after errors, and keeps a self-adjustment process that can be audited will determine its real production value.
As models gain stronger self-improvement abilities, companies should upgrade their cost management, permission controls, task orchestration, and result verification at the same time. Competition among large models will involve more than capability and price. It will also depend on end-to-end task efficiency, the degree of risk control, and value per task.
