OpenAI Agents API pricing: what building an agent actually costs in 2026

Rama Adi Nugraha
Written by

Rama Adi Nugraha

Katelin Teen
Reviewed by

Katelin Teen

Last edited September 11, 2026

Expert Verified
Illustration of the OpenAI Agents API pricing model with API tokens and tool costs

So what is the "OpenAI Agents API," exactly?

Worth untangling first, because "OpenAI Agents API" points at a few related things that shipped in stages.

It started in March 2025, when OpenAI launched the Responses API and the open-source Agents SDK together, along with the first built-in tools. The Responses API is the primitive: a superset of Chat Completions that models generate through and that every hosted tool plugs into, and the eventual replacement for the older Assistants API. The Agents SDK is the orchestration layer on top, handling the agent loop, handoffs, and guardrails in your own app.

Then in October 2025 came AgentKit, a visual layer for people who didn't want to write the loop by hand: Agent Builder (a drag-and-drop canvas), the Connector Registry, ChatKit (an embeddable chat UI), and expanded Evals. More recently, OpenAI added a managed Agents API runtime that runs the loop for you on its own Codex harness.

One important thing to know before you build on any of this: OpenAI is winding down Agent Builder and Evals. From November 30, 2026 they won't be available, and OpenAI now points you to the code-first Agents SDK or to Workspace Agents in ChatGPT instead. In the docs, Agent Builder and Evals already sit under a "Legacy APIs" heading. So if you're picking a surface today, the durable ones are the Responses API, the Agents SDK, and the managed Agents API, not the no-code canvas.

Here's the good news for your budget: none of these layers carry their own fee. OpenAI is explicit, in the launch post and again in the AgentKit announcement, that the Responses API and AgentKit tools are "not charged separately" and "included with standard API model pricing." You pay for the model calls they make, and for the tools those calls invoke. Which is exactly why the pricing question is really three questions.

The pricing model: there's no "agent" line item

Three meters (model tokens, hosted tool calls, containers and storage) stacking into one agent bill
Three meters (model tokens, hosted tool calls, containers and storage) stacking into one agent bill

Building an agent stacks three meters, and your bill is the sum of all three:

  1. Model tokens. Every turn of the loop is one or more model responses, and each one bills input and output tokens. This is usually the biggest line.
  2. Hosted tool calls. Web search, file search, and Code Interpreter are built-in tools that each add a surcharge on top of the tokens they consume.
  3. Containers and storage. Code Interpreter runs in a container that's billed by the minute, and file search keeps your documents in vector stores billed per GB per day.

The trap is thinking of an agent as "a model call with a price." It's not. A web-search-heavy agent pays $10 per 1,000 searches and the model tokens those search results consume when they're read back into the context. Get all three meters clear in your head and the pricing page stops being confusing.

What the models actually cost

Let's start with the biggest meter. These are the standard-processing rates from the OpenAI API pricing page, per 1M tokens, checked on September 11, 2026. "Long context" kicks in above 272,000 input tokens and runs at roughly double.

ModelInput (short)Cached inputOutput (short)Input (long)Output (long)
gpt-6-astra$10.00$1.00$50.00$20.00$75.00
gpt-5.6-sol$4.00$0.40$20.00$8.00$30.00
gpt-5.6-terra$2.00$0.20$12.00$4.00$18.00
gpt-5.6-luna$0.20$0.02$1.20$0.40$1.80

A few things worth calling out. First, gpt-5.6-sol is on promotional pricing through November 21, 2026, marked down from its regular $5.00 input / $30.00 output. Second, cached input is a tenth of the fresh rate, and prompt caching applies across agent workflows, which matters a lot when your agent re-sends a growing context on every turn. Third, models released on or after March 5, 2026 carry a 10% uplift on data-residency endpoints. And if you're building a voice agent, note that realtime audio is metered separately again: OpenAI's realtime API bills voice sessions by the minute on top of everything here.

If you're weighing this against other providers, our OpenAI API vs Anthropic API breakdown covers the same math for Claude, and it's worth noting Anthropic and Google don't charge a long-context tier at all, so the 272K cliff is an OpenAI-and-xAI thing. If you're shopping model-by-model for agent work, our roundup of the best AI agents is a good next read.

What the hosted tools cost

Bar chart of OpenAI hosted tool costs: web search, file search, storage, and Code Interpreter
Bar chart of OpenAI hosted tool costs: web search, file search, storage, and Code Interpreter

This is the meter people forget, and it's the one that makes agents different from a chatbot. The built-in tools charge per call, on top of the tokens they generate.

ToolWhat you payNote
Web search$10.00 / 1,000 callsReasoning models; search-result tokens billed at model rates
Web search (preview)$25.00 / 1,000 callsNon-reasoning models; search content tokens are free
File search$2.50 / 1,000 callsResponses API only
File storage$0.10 / GB / dayFirst 1 GB free
Code Interpreter$0.03–$1.92 / sessionBy container size: 1 GB / 4 GB / 16 GB / 64 GB
Computer useModel tokens onlyNo separate hosted-tool line item today

Two details save real money here. Web search has a return_token_budget knob that caps how many result tokens flow back into the model, and file search (which runs over embeddings in a vector store) lets you limit the number of retrieved results, which OpenAI's own docs say "can help reduce both token usage and latency." Since every retrieved chunk becomes model input tokens, trimming results trims two meters at once.

Computer use is the interesting exception. The current docs no longer center a dedicated per-call rate for it; the recommended path for gpt-6-astra is a code-execution loop where the model writes a script your own sandbox runs. So you pay model tokens per turn, plus whatever your execution environment costs, and there's no tidy hosted-tool figure to quote.

The loop is the multiplier

OpenAI agent run shown as a Triage Agent and CRM Agent making repeated POST /v1/responses calls with a handoff, as taken from OpenAI
OpenAI agent run shown as a Triage Agent and CRM Agent making repeated POST /v1/responses calls with a handoff, as taken from OpenAI

Here's the number that dwarfs everything above. An agent run is not one model call, it's a loop of them. OpenAI's own diagram makes it concrete: a Triage Agent calls POST /v1/responses, hits a guardrail, hands off to a CRM Agent, which calls the model again and then fires a tool. That's already several billable model calls for one task, and OpenAI's computer-use example caps its sample loop at 20 responses before it aborts.

Now stack context growth on top. Each tool call returns output (search results, a database row, a file listing) that gets fed back into the next call's prompt. So the loop doesn't just multiply calls, it inflates the token count of every later call. One developer put it more bluntly than any docs page:

Hacker News

"I was spending $200/day running agents with tool calls. The problem: tools return huge JSON (search results, DB queries, file listings). Each response bloats context. By turn 10, you're paying for 100k+ tokens on every LLM call."

This is why a per-token price tells you almost nothing about what an agent costs. The real unit is the whole run, retries and all:

Hacker News

"the cost isn't just 'how many tokens did this call use,' its 'how many tokens did this entire user action consume across all the agent loops, retries, tool calls, and embeddings.' most observability tools show you the LLM call as one flat span... or see that the agent looped 4 times because the first 3 outputs failed validation."

The lever you actually control here is reasoning effort. On reasoning models you set reasoning: { effort } from low to xhigh, and higher effort means more tokens and longer loops. Deep research runs, OpenAI notes, "can run for several minutes" tapping "hundreds of sources." Great for a research agent; expensive as a reflex.

Four ways to run an agent, four ways to get billed

Four OpenAI agent runtimes (Agents API, Agents SDK, Responses API, ChatKit) and who runs the loop
Four OpenAI agent runtimes (Agents API, Agents SDK, Responses API, ChatKit) and who runs the loop

Where the loop runs decides who racks up the calls, and OpenAI now offers four runtimes:

  • Agents API runs the loop for you on a managed Codex harness, with automatic context compaction, multi-agent orchestration, and an optional hosted sandbox. Convenient, and the compaction is a genuine cost help, but you're still paying for every model call the harness makes.
  • Agents SDK runs the loop inside your application. You own deployment, storage, and approvals; the runner handles the agent loop and handoffs. Most control, most of the token accounting is yours to watch.
  • Responses API is building from scratch: you call the model directly and wire up your own orchestration and history.
  • ChatKit is the embedded chat front-end you drop into your product.

None of these change the per-token or per-tool rates. They change who is responsible for how many times the loop fires, which in practice is the thing that moves your bill.

The no-code option, Agent Builder, is worth a screenshot because it makes the multi-agent shape visible, but remember it's on the way out.

OpenAI Agent Builder visual canvas showing a customer-service flow with guardrails, a classification agent, and handoffs, as taken from OpenAI
OpenAI Agent Builder visual canvas showing a customer-service flow with guardrails, a classification agent, and handoffs, as taken from OpenAI

That customer-service flow (start, jailbreak guardrail, classification agent, an if/else that routes to a return, retention, or information agent, then a hallucination guardrail) is a good picture of what a real support workflow needs. It's also a good picture of how many model calls one ticket can trigger. Every node that says "agent" is at least one more POST /v1/responses.

Service tiers: Batch, Flex, Standard, Fast

One more dial before the worked example. OpenAI runs four processing tiers, and they swing token cost by up to 4x:

  • Standard is the baseline.
  • Batch is 50% off, async over 24 hours. gpt-5.6-sol drops to $2 input / $10 output.
  • Flex matches Batch pricing for slower, occasionally-unavailable requests.
  • Fast mode (renamed from "Priority" on July 30, 2026) is roughly 2x Standard. gpt-5.6-sol on Fast is $8 input / $40 output.

For a live support agent you're almost always on Standard or Fast, because a customer is waiting. For overnight jobs (summarizing yesterday's tickets, backfilling a knowledge base) the Batch API is the obvious win. Tool-call prices don't appear to change by tier, so this dial only moves the token meter.

A worked example: what a support agent actually costs to run

Enough theory. The honest way to think about agent cost is to run your own numbers, because the loop length and token growth are wildly different between a one-shot FAQ bot and a multi-agent workflow that browses and updates a CRM. Plug in your own volume below.

Play with it and the pattern jumps out: the loop length and input-token growth swing the number far harder than which model you pick. Halve the calls per conversation and you roughly halve the bill. That's the real optimization surface, and it's also the part OpenAI's pricing page doesn't put a sticker on.

What people are actually saying about the cost

The sharpest critique of the built-in tools is that you're paying a premium for something that's a thin wrapper over the raw API. One developer rebuilt a paid "AI visibility" product to show the markup:

Hacker News

"the hosted AI-search-visibility tools are super expensive. They charge $200–$1000/mo for what is, fundamentally, a loop over the OpenAI Responses API and Anthropic Messages API with web_search enabled, plus citation parsing... a typical weekly run costs ~$0.40 in API spend."

That cuts both ways. Yes, the raw API can be dramatically cheaper than a packaged product if your use case is a simple weekly loop. But "a loop over the Responses API with web_search enabled, plus citation parsing" is also a real engineering project with a real maintenance tail, and for a lot of teams the packaged product exists precisely so nobody has to own that loop at 2am. The trick is knowing which side of that line your problem falls on.

Try eesel for support, and skip the loop math entirely

eesel AI activity dashboard showing resolved conversations, approvals, and skill runs
eesel AI activity dashboard showing resolved conversations, approvals, and skill runs

Here's the honest framing. The OpenAI Agents API is infrastructure. It's the raw material you assemble an agent from: tokens, tools, a loop you orchestrate, and an eval and monitoring setup you build yourself. That's the right choice when the agent is your product and you want control down to the token.

eesel is the other end of that trade: not infrastructure, but a ready-to-work teammate. You hire the AI support teammate, plug it into your helpdesk, and it arrives already knowing your company from your past tickets and help center. There's no loop for you to meter, because the pricing is flat: $0.40 per ticket handled, billed on the conversation, not on how many internal model calls or tool hops it took to resolve it. That last part is the whole point of the earlier loop discussion. The unpredictable meter is the vendor's problem, not yours.

And if it's the programmatic control that drew you to the Agents API, eesel keeps that too. There's a real public CLI (@eesel/cli) plus an MCP server, webhooks, and network access, so you can connect an integration, edit the agent's standing instructions, list and approve human-in-the-loop actions, and read the run-by-run activity log from a terminal or a script. The docs literally say "everything on this site can be done from the terminal," and coding agents like Claude Code and Cursor can drive it directly. You get the agent-friendly surface without building and babysitting the agent itself.

Before you commit to running a raw agent for customer service, run the number for your own volume in the estimator above, then decide whether the loop is a thing you want to own. If it isn't, start a free trial and let the teammate do the job.

Frequently Asked Questions

How much does the OpenAI Agents API cost?
There's no flat Agents API price. You pay for the underlying model tokens on every turn of the agent loop, plus per-call fees for hosted tools like web search and file search, plus container time for Code Interpreter. A modest support agent on gpt-5.6-sol commonly lands somewhere between a few hundred and a few thousand dollars a month depending on volume and how long the loop runs.
Is there a separate charge for using the Agents SDK or AgentKit?
No. OpenAI states the Responses API and AgentKit tools are "not charged separately" and "included with standard API model pricing." You still pay standard token rates for the model calls they make, and per-call rates for any built-in tools the agent uses.
What is the cheapest model for running an agent on the OpenAI API?
gpt-5.6-luna at $0.20 input / $1.20 output per 1M tokens is the cheapest capable option, with gpt-5.6-terra ($2 / $12) a step up. gpt-5.6-sol ($4 / $20, on promo through November 2026) is the flagship agentic model, and gpt-6-astra ($10 / $50) sits at the top. See the full OpenAI API rate card in the tables above.
Why is my OpenAI agent so much more expensive than a single API call?
Because an agent isn't a single call. Each task is a loop of model calls, and tool outputs pile back into the context, so by turn ten you're paying for a much larger prompt on every call. Add hosted-tool fees on top, and the real cost is the whole run, not one span. A flat per-ticket tool like eesel avoids that math entirely.
Is the OpenAI Agent Builder being discontinued?
Yes. OpenAI is winding down Agent Builder and Evals, and from November 30, 2026 they will no longer be available. OpenAI points developers to the code-first Agents SDK or to Workspace Agents in ChatGPT instead. ChatKit and the Connector Registry are not named in the wind-down.

Share this article

Rama Adi Nugraha

Article by

Rama Adi Nugraha

Rama is a software engineer at eesel AI with two years of experience writing about B2B SaaS, AI tools, and customer support technology. Based in Bali, Indonesia, he brings a developer's perspective to product comparisons — cutting through marketing copy to what the integrations and APIs actually do.

Related Posts

All posts →
Illustration of the OpenAI Agents API and the agent loop of reasoning and tool calls
Trending

OpenAI Agents API: what it is and how to build an agent in 2026

A plain-English guide to the OpenAI Agents API: how the agent loop works, the four runtimes, the hosted tools, and how to actually build and ship one.

Rama Adi NugrahaRama Adi NugrahaSep 11, 2026
A source handbag, a selected mask, and a blue edited handbag
Guides

OpenAI Image Edit API: a practical guide to safe image workflows

Learn what the OpenAI Image Edit API does, when to use the Image or Responses API, and how to test image-based support work without confusing an edit with a verified outcome.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025
One landscape illustration branching into three visual variations
Guides

OpenAI Image Variations API: what it does in 2026

Understand the legacy OpenAI Image Variations API, when current image edits are a better fit, and how to keep visual support content and teammate guidance under review.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025
OpenAI logo connected to six outlined squares
Guides

OpenAI Embeddings API: how semantic search actually works

Learn how the OpenAI Embeddings API supports semantic search and retrieval, what a support knowledge workflow still needs, and how to test it before relying on results.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025
JSON request files moving through an asynchronous process into output files
Guides

OpenAI Batch API reference: when asynchronous processing fits

Learn what the OpenAI Batch API does, how JSONL jobs, results, limits, and expiration work, and how to evaluate support workflows without confusing it with live automation.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025
Shadow, the AI interface for Mac, review cover illustration
Trending

Shadow review (2026): the AI interface for Mac

My hands-on Shadow review: the bot-free AI interface for Mac that transcribes meetings on-device, runs custom Skills from a shortcut, and costs $8 a month.

Alicia Kirana UtomoAlicia Kirana UtomoJul 8, 2026
Blue gradient graphic reading Realtime API GA and OpenAI
Guides

OpenAI Realtime API: a current guide to live voice support

Learn when the OpenAI Realtime API fits a live voice-support experience, how to choose a session and transport, and what to test before callers rely on it.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025
A person viewing connected user and assistant message threads
Guides

OpenAI Threads API: conversation state after Assistants

Learn why OpenAI conversation state now belongs in the Responses and Conversations APIs, what your application still owns, and how to test an eesel teammate safely.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025
A base network, curated examples, checklist, and refined network
Guides

OpenAI Fine-Tuning API: what to do as it winds down

Learn OpenAI's current fine-tuning status, how to decide between training and support configuration, and how to test a safer path before customer replies change.

Rama Adi NugrahaRama Adi NugrahaOct 12, 2025

Ready to hire your AI teammate?

Set up in minutes. No credit card required.

Get started free