Menu
The New Stack·September 11, 2026

Scaling AI Agents: Managing Capacity and Cost for Long-Running Workloads

OpenAI's new Agents API allows developers to run AI agents unattended for extended periods, introducing new challenges in managing compute capacity and costs. The article highlights how long-running AI agent tasks can quickly accumulate significant inference usage due to continuous model interaction and parallel processing, putting immense strain on underlying infrastructure. It underscores the architectural considerations for building scalable systems that can support these demanding AI workloads.

Read original on The New Stack

The Challenge of Long-Running AI Agent Workloads

The introduction of OpenAI's Agents API shifts the paradigm for AI application development, enabling agents to operate autonomously over extended periods, sometimes for days. This capability, while powerful, introduces significant system design challenges. Unlike typical API calls, long-running agents require continuous interaction with the underlying AI models, leading to dramatically increased inference consumption. As illustrated by OpenAI's internal experience, where researchers' agent usage soared to over $7,000 per day, the architectural implications of such persistent, resource-intensive workloads are profound.

Architectural Demands for Agent Orchestration

The Agents API handles the orchestration layer, allowing agents to persist state, compress context to overcome context window limits, and dynamically load tools. This reduces the burden on developers to build custom orchestration systems, but it also abstractly increases compute consumption. System designers must consider how to build or integrate with such an orchestration layer to efficiently manage agent lifecycle, state, and resource allocation, especially when subagents work in parallel.

💡

Capacity Planning for AI Inference

The article implicitly highlights the critical need for robust capacity planning in systems leveraging AI agents. Traditional capacity models based on user headcount or simple API call volumes may not be sufficient. Instead, designers must consider factors like agent runtime, frequency of model interactions, context window management, and parallelism to accurately estimate and scale compute resources.

Infrastructure vs. Model: The New AI Equation

The article echoes a sentiment from Cloudflare that the infrastructure supporting AI workloads will become as crucial as the models themselves. This implies that system architects designing with AI agents must prioritize scalable compute, efficient storage for agent state, robust networking, and sophisticated resource management. The pause in new ChatGPT Pro sign-ups due to strained capacity further underscores the immense infrastructure demands placed by even consumer-grade AI services, let alone long-running autonomous agents.

  • Cost Optimization: Implementing mechanisms for token usage monitoring, cost alerting, and potentially custom heuristics for stopping runaway agent processes.
  • Scalability & Elasticity: Designing infrastructure that can dynamically scale compute and memory resources based on fluctuating agent workload demands.
  • Observability: Tools for tracking agent progress, inference costs, and resource utilization across potentially hundreds or thousands of concurrent agents.
  • Distributed Execution: Architecting systems that can distribute agent tasks across multiple compute nodes and manage communication and state synchronization between them.
AI agentsLLM inferencescalabilitycapacity planningdistributed computingresource managementorchestrationcost optimization

Comments

Loading comments...