Agents API adds budget control and a pool of pre-warmed sandboxes

OpenAI's enterprise agent platform, the "Agents API," has gained two features. Michael Luo, who works on product at OpenAI according to Luo's own X profile, announced them on X at 5:09 a.m. Nov. 25 Japan time (Nov. 24 U.S. time), and OpenAI's official developer account (@OpenAIDevs) reposted the post at 5:28 a.m. Nov. 25 Japan time. The first is "budget control," which lets developers set a spending limit for each "session," a unit of agent work, and check how much has been spent. The second is a "pool" of sandboxes, the isolated environments where agents work, that OpenAI starts in advance and keeps ready.

🦃 This Thanksgiving, I'm thankful for the OpenAI team always shipping. We just launched 2 new things in the Agents API, right in time for Black Friday! 💸 Budget controls - Limit, monitor, and control your agent budgets on a per-session level with Agents API. Now you don’t have to worry about a single customer consuming all your tokens! 🔥 Pre-warmed pool of sandboxes - Before, you could pre-warm your own sandbox. But now OpenAI manages a pool of pre-warmed OpenAI hosted sandboxes for you, for those latency sensitive tasks. Happy shipping!

The Agents API gives outside developers access to the system OpenAI uses in its coding tool "Codex," and it launched in public beta on Sept. 10. There is no additional fee for the Agents API itself; developers pay for the tokens and tools their agents use.

Limits are set per session in U.S. cents

OpenAI's developer guide describes how to set a session budget. When creating a session, developers specify limit in spend_control in U.S. cents. The guide's example specifies 500, setting the limit at $5. To leave a session without a limit, developers omit the field or set it to null.

Session data always includes the limit and the recorded spend, rounded down to whole cents. The limit can be changed later, and changing it does not reset the recorded spend. In the guide's example, the limit is raised to $10.

When a session reaches its limit, its status becomes budget_reached, and the API stops accepting new input. Work stopped by the limit fails with the error session_budget_exceeded. Raising or removing the limit lets the session continue, and stopped work can resume automatically.

The limit is not a strict cap and can be exceeded

The guide describes budget control as a best-effort attempt to limit spending. Spend readings can lag, and work that has already started can continue to incur charges. It states that actual spend can exceed the limit and that work can continue if the API cannot check spend.

Budget control may also be unavailable for some projects, in which case both the limit and the recorded spend are returned as null. The guide does not say which projects cannot use it. Luo wrote "Now you don’t have to worry about a single customer consuming all your tokens!" but the guide cautions that actual spend can exceed the limit.

The pool does not appear in official documentation

Describing the second feature, Luo wrote "Before, you could pre-warm your own sandbox. But now OpenAI manages a pool of pre-warmed OpenAI hosted sandboxes for you," and said it is meant for latency-sensitive tasks.

The existing pre-warming feature is described in the developer guide. A developer creates a sandbox, waits for it to be ready and then attaches it to a session. The feature is meant for cases where low latency is essential, such as preparing the workspace while a user is still writing a request. Pre-warming is free until the sandbox is attached to a session, including container usage, and standard container pricing applies after it is attached. A pre-warmed sandbox that is not attached expires after 5 minutes.

The OpenAI-managed pool, however, did not appear in any of the pages checked on the morning of Nov. 25 Japan time: the pre-warming guide, the guides on OpenAI-hosted environments and the sandbox lifecycle, and the developer changelog. Luo's post also does not say how to use the pool, what it costs, how much it shortens wait times or who can use it.

Announced in a staffer's post, with no official notice found

The developer changelog's Nov. 24 entries cover items such as an update to "chat-latest," which points to the latest model in ChatGPT, and do not include the two features. The news list on openai.com also had no article about them. ORIENS could not confirm when budget control was added to the guide.

The Agents API added features including "Auto Review," in which a separate AI reviews an agent's risky actions, on Oct. 30 (Oct. 31 Japan time). On Nov. 20 (Nov. 21 Japan time), Luo announced support for "Daybreak," OpenAI's approval-based cyber-defense program.