Where does agent cost come from?
A task can include several model, retrieval, tool and external-service calls, plus infrastructure and telemetry.
- Input and output tokens
- Long Context and retrieval
- Tool calls and agent steps
- Retries and multi-agent calls
- Infrastructure and observability
Tokens are only part of the cost
Tokens are important, but a cheap call that fails or needs repetition is not necessarily economical.
OpenAI's enterprise rate card separates input, cached-input and output usage; an organization's agreement remains authoritative and this article does not provide fixed prices.
Long Context
Large Context raises cost and latency and can bury important signals. Some plans apply higher multipliers to long Context.
Include only the documents, history and tool definitions needed for the task.
Tool calls and multi-step execution
Every tool can add API, network, processing and follow-up model cost.
Define value, timeout, call limit and cache behavior for each tool.
Retries and loops
Unbounded retry turns failure into escalating cost. Runtime-enforced step and retry limits are necessary.
If no progress occurs, stop or escalate rather than consuming more Context.
Multi-agent systems
Delegation can add specialization but every handoff adds Context, coordination and evaluation cost.
A bounded single agent or deterministic workflow is often better for simple tasks.
Caching and Context management
Filter retrieval before building Context and use cached Context where the architecture permits. Caches need versions, TTLs and access boundaries.
Invalid or cross-role caches can damage both quality and security.
Model routing
Lightweight models can handle simple tasks while stronger models are reserved for difficult decisions or review.
Routing must be validated by evals so a lower call price does not raise task failure.
Budgets and monitoring
Set budgets by user, agent, task and time period. Detect increases in steps, latency or retries before the total budget is exhausted.
Google Cloud also recommends precise Context trimming, caching, hard iteration stops and tiered models.
Conclusion
Cost per successful task is the decision metric: total spend for a correct, useful outcome—not the cheapest isolated call.
Quality, latency, risk and cost belong on one operational view.
Frequently asked questions
Does a cheaper model always reduce cost?
No. Failure and retry can make a successful task more expensive.
How do we prevent loops?
Enforce step limits, retry limits, no-progress detection and escalation.
Which cost KPI matters most?
Cost per successful task, reviewed with quality and latency.
Sources
- Google Cloud20 questions for the Agentic Enterprise7 July 2026 · Official Blog
- OpenAIChatGPT Rate Card — Enterprise token-based pricingUpdated August 2026 · Official Pricing Documentation
- OpenAIEnterprise Signals12 August 2026 · Research / Enterprise Report