agents/apiTHE ENCYCLOPEDIA
Production

Agents API pricing & cost planning

Understand model tokens, tool charges, hosted compute, and application infrastructure costs.

Model usage
Tool usage
Hosted compute
Your infrastructure
Total task cost

There is more than one cost component

The Agents API overview points to the selected model’s API rates, standard OpenAI tool rates, and standard hosted container rates. Your own infrastructure and third-party tools can add separate costs. Read current official pricing for the exact model and tool configuration.

Estimate per successful task

Measure input and output tokens across turns, tool calls, and sandbox usage. Divide observed spend by successfully completed tasks. Retries and subagents can change this figure substantially even when the end-user prompt looks identical.

Reduce unnecessary work

Use a suitable model, bounded tasks, narrow tool outputs, and only the environment capabilities required. Compare cache behavior and repeated context overhead using real usage records. Do not assume adding concurrency lowers total cost.

Budget with explicit assumptions

The calculator on this site is a token-only estimate with rates you supply. It excludes tools, containers, third-party services, taxes, and application hosting. It is an arithmetic planning aid, not a billing quote.

Estimate token cost

Enter rates from the official pricing page. Excludes tools, containers, hosting, and taxes.

Enter both model rates to calculate.

Read the official reference

Check the source for current API fields, account requirements, and service limits.

OpenAI: overview Current model and tool pricing

23 matching topics

What is the OpenAI Agents API?FoundationsAgents API vs Agents SDK vs Responses APIComparisonsAgents API quickstartGetting startedSessions, turns & durable stateCore conceptsHosted vs self-hosted sandboxesInfrastructureConnect MCP servers to Agents APITools & integrationsFunction calling & application toolsTools & integrationsMulti-agent orchestrationCore conceptsStreaming, webhooks & event handlingIntegration guidesFiles, outputs & published artifactsCore conceptsVaults & MCP authenticationTools & integrationsAgent security & credential boundariesProductionTracing, usage & debuggingProductionAgents API pricing & cost planningProductionOpenAI Agents API with PythonGetting startedAgents API with TypeScript & Next.jsIntegration guidesWhat is the OpenAI Agents SDK?FoundationsResponses API in the agent stackFoundationsAgent Skills & SKILL.mdTools & integrationsProgrammatic Tool CallingTools & integrationsRAG, file search & vector storesTools & integrationsWeb search & source citationsTools & integrationsChatKit & Agent BuilderIntegration guides
K to open Esc to close