Ask HN: How are people forecasting AI API costs for agent workflows?
Barathkanna Wednesday, March 11, 2026I’ve been experimenting with agent-based features and one thing that surprised me is how hard it is to estimate API costs.
A single user action can trigger anywhere from a few to dozens of LLM calls (tool use, retries, reasoning steps), and with token-based pricing the cost can vary a lot.
How are builders here planning for this when pricing their SaaS?
Are you just padding margins, limiting usage, or building internal cost tracking? Also curious, would a service that offers predictable pricing for AI APIs (like a fixed subscription cost) actually be useful for people building agentic workflows?
5
19