LangChain vs OpenAI Agents Platform: pricing, features and which to choose

Plans, prices, deployment options, strengths and limits for LangChain vs OpenAI Agents Platform, taken from each company's pricing page, docs and changelog. Updated October 2026.

LangChainOpenAI Agents Platform
LangChain logo

LangChain

AI Agents

LangChain is an open-source framework for building agents with provider-agnostic model integrations, tools, middleware, and structured output. LangChain 1.0 provides a high-level agent interface built on LangGraph, while LangGraph supports more controlled workflows. The framework has no subscription charge, but model, hosting, and infrastructure costs remain separate. LangSmith provides optional hosted observability, evaluation, and deployment services.

OpenAI Agents Platform logo

OpenAI Agents Platform

AI Agents

OpenAI Agents Platform combines the managed Agents API, open-source Agents SDK, Responses API, built-in tools, and ChatKit for multi-step applications. The SDK has no subscription charge, while model tokens, tool calls, storage, and containers are billed separately. Current standard pricing includes gpt-5-nano at $0.05 per million input tokens and $0.40 per million output tokens.

Quick comparison

FeatureLangChainOpenAI Agents Platform
CategoryAI AgentsAI Agents
Main useAI agent frameworkAI agent workflows
Pricing modelFree plan + paid tiersPay per use
Free plan Yes Yes
Entry paid plan$39/seat/month (LangSmith Plus)From $0.05 per 1M input tokens (Standard model pricing)
PlatformsPython and JSWeb & API
Open source Yes Yes
Self-hosted Yes No
Public API Yes Yes
Profile updatedOctober 2026October 2026

Pricing plans

Every public plan, as listed on each company's pricing page.

LangChain

  • LangChain open-source framework$0

    The framework has no published subscription charge. Model-provider calls, hosting, storage, and other infrastructure costs remain separate.

  • LangSmith Developer$0/seat/month

    Includes 1 seat and 5,000 base traces per month. Additional trace usage is billed separately after the included allowance.

  • LangSmith Plus$39/seat/month

    Includes 10,000 base traces per month and unlimited seats. One free small serverless deployment is included, with additional usage metered.

  • LangSmith EnterpriseCustom

    Offers self-hosted and hybrid deployment options, custom SSO, ABAC and RBAC, support SLA, and custom seats and workspaces.

OpenAI Agents Platform

  • Agents SDKFree framework

    The SDK has no listed subscription charge, but model, tool, tracing, storage, and infrastructure usage can incur separate charges.

  • Agents APIUsage-based

    OpenAI runs the managed Codex runtime, while model tokens, tools, containers, and applicable storage are billed separately.

  • Responses APIUsage-based

    OpenAI does not charge a separate API fee, but tokens and selected tools use their published rates.

  • Standard model pricingFrom $0.05 per 1M input tokens

    The listed gpt-5-nano rate is $0.05 per million input tokens and $0.40 per million output tokens.

  • Web search$10 per 1,000 calls

    Search content tokens are billed at model rates, while non-reasoning preview search costs $25 per 1,000 calls with free search content tokens.

  • File search$0.10 per GB-day

    The first 1 GB of storage is free, and file-search calls cost $2.50 per 1,000 calls.

  • Hosted containersFrom $0.03 per session

    Pricing is $0.03 for 1 GB, $0.12 for 4 GB, $0.48 for 16 GB, or $1.92 for 64 GB per 20-minute session.

  • ChatKit storage$0.10 per GB-day

    ChatKit file and image uploads include 1 GB free per account per month, with daily storage charges afterward.

Strengths and limits

LangChain

  • LangChain 1.0 supports provider-agnostic model integrations and standard tool calling.
  • Agents can move from high-level APIs into LangGraph workflows.
  • Middleware provides hooks for customizing agent behavior.
  • The open-source framework has no subscription charge.
  • Model and infrastructure charges remain outside the framework.
  • Older functionality requires migration to langchain-classic.
  • Hosted observability and deployment use separate LangSmith pricing.

OpenAI Agents Platform

  • The Agents SDK provides agents, handoffs, guardrails, sessions, tracing, and MCP support.
  • The Agents API manages Codex-based orchestration, state, compaction, and sandbox execution.
  • OpenAI publishes separate prices for models, search, file search, containers, and storage.
  • The SDK supports application-controlled orchestration and compatible Chat Completions providers.
  • Costs can span model tokens, tool calls, storage, containers, and persisted application state.
  • The SDK is application code, while OpenAI hosted model services remain external dependencies.
  • Agent Builder and Evals have an announced November 30, 2026 discontinuation date.

Which should you choose?

Choose LangChain if

  • Developers building agents across multiple model providers.
  • Teams wanting a high-level tool-calling agent loop.
  • Applications that may later require LangGraph workflows.
  • Organizations wanting optional hosted tracing and evaluation.

Look elsewhere if

  • Teams seeking a fully managed agent product without application code.
  • Projects requiring one bundled model and infrastructure bill.
  • Legacy applications unwilling to address LangChain 1.0 migration changes.

Choose OpenAI Agents Platform if

  • Teams building OpenAI-native multi-step agents with tools and handoffs.
  • Developers needing a Python or TypeScript orchestration framework.
  • Applications requiring OpenAI hosted search, containers, or Code Interpreter.
  • Products needing traces, guardrails, sessions, or MCP connections.

Look elsewhere if

  • Organizations requiring a fully self-hosted OpenAI model and control plane.
  • Teams seeking one predictable subscription covering model and tool usage.
  • Workflows depending on Agent Builder or Evals after November 30, 2026.

LangChain logo LangChain in brief

LangChain began as Harrison Chase's Python side project in late 2022. Chase and Ankush Gola formed LangChain, the company, in early 2023. The company describes LangChain and LangGraph as open-source frameworks, while LangSmith is an independent commercial platform for observability, evaluation, deployment, and related agent services. LangChain and LangGraph reached version 1.0 on October 22, 2025. LangChain's company page says its frameworks have passed one billion open-source downloads, work with 35% of the Fortune 500, and support more than one billion LangSmith events each day. The company is headquartered in San Francisco and lists offices in New York, Boston, and Amsterdam. These company-published figures describe the broader LangChain organization rather than a measurement of the framework alone.

LangChain 1.0 concentrates on the core agent loop, standard tool calling, provider-agnostic model access, middleware, and standardized content blocks. A typical application supplies instructions, a model, and tools, then lets the agent call tools and continue until it produces a final response. Middleware adds hooks around the agent loop for tasks such as human approval, summarization, PII redaction, dynamic prompts, output controls, and custom behavior. Developers can begin with the high-level create_agent interface and move into custom LangGraph workflows when they need more control. The release also retains high-level model abstractions and provider integrations for applications involving structured output, retrieval, extraction, SQL question answering, and other language-model tasks. LangChain 1.0 introduces standardized content blocks for reasoning traces, citations, tool calls, and other complex provider responses.

LangChain requires developers to choose models, manage provider credentials, and design production architecture beyond the framework abstractions. Projects moving to LangChain 1.0 may need import changes because older chains, retrievers, indexing, hub features, and related functionality moved to langchain-classic. LangGraph is the closest related framework for teams needing lower-level control, persistence, durable execution, and human review. OpenAI Agents SDK is a separate code-first package whose documentation describes agents, tools, handoffs, sessions, tracing, and application-managed runtime control. LangChain 1.0 introduced create_agent as its primary agent abstraction, replacing recommendations for LangGraph’s deprecated create_react_agent. Choose LangChain when you want a provider-agnostic, code-first framework with a high-level starting point and a documented path into LangGraph for more customized workflows.

Read the full LangChain review

OpenAI Agents Platform logo OpenAI Agents Platform in brief

OpenAI Agents Platform is a group of agent-building runtimes and tools from OpenAI. The documentation separates the managed Agents API, the code-first Agents SDK, the lower-level Responses API, and ChatKit for embedded chat. OpenAI released the Responses API and Agents SDK on March 11, 2025, then introduced AgentKit on October 6, 2025. The Agents SDK is open source and supports Python, with current documentation also describing TypeScript and JavaScript usage. The Agents API runs a Codex runtime managed by OpenAI. The platform targets developers and enterprises building customer support, research, code, sales, and other multi-step applications. OpenAI does not publish a separate subscription price or separate privacy terms for the Agents SDK or Responses API. Model and tool consumption remains separately billable.

A typical SDK workflow begins with an agent containing instructions, tools, guardrails, and optional handoffs. The runner manages turns and tool execution, while agents can delegate work through handoffs or agents used as tools. Function tools expose application code, and MCP support connects remote tool servers. Sessions preserve working context, while human-in-the-loop mechanisms can pause execution for review. The Agents API instead stores session configuration, turns, and items while OpenAI runs the Codex runtime. It supports automatic context compaction, multi-agent orchestration, programmatic tool calling, MCP servers, and hosted or self-hosted sandboxes. Responses API users retain more control over history, response chaining, tool dispatch, and execution. These choices let teams select managed execution or application-controlled orchestration.

The principal limitation is accounting across model tokens, tools, storage, containers, and persisted state. The Agents API is managed, while the SDK runs inside the customer's application and does not provide a self-hosted OpenAI model service. OpenAI states that API inputs and outputs are not used for training by default, although abuse-monitoring logs and application state can have separate retention rules. OpenAI documents default abuse-monitoring retention of up to 30 days and says some stored resources remain until deleted. The SDK can connect to compatible model providers through Chat Completions-style endpoints, but built-in OpenAI services remain OpenAI offerings. Choose this platform for OpenAI-native runtimes and tools, while teams needing another provider's control plane should compare other agent frameworks.

Read the full OpenAI Agents Platform review

Frequently asked questions

How do LangChain vs OpenAI Agents Platform compare on price?

LangChain has a free option, and its first paid plan (LangSmith Plus) is listed at $39/seat/month. OpenAI Agents Platform has a free option, and its first paid plan (Standard model pricing) is listed at From $0.05 per 1M input tokens. Prices are from each company's pricing page and can change, so check before you buy.

Which has a free plan, LangChain vs OpenAI Agents Platform?

All of them. LangChain: The framework has no published subscription charge. Model-provider calls, hosting, storage, and other infrastructure costs remain separate. OpenAI Agents Platform: The SDK has no listed subscription charge, but model, tool, tracing, storage, and infrastructure usage can incur separate charges.

Can I self-host or integrate LangChain vs OpenAI Agents Platform?

LangChain and OpenAI Agents Platform are open source. LangChain can run on your own servers. LangChain and OpenAI Agents Platform offer a public API.

How much does LangChain cost?

The open-source LangChain framework has no published subscription price. Applications still pay separately for model calls, hosting, databases, and infrastructure. LangSmith, the commercial platform, offers Developer at $0 per seat monthly, Plus at $39 per seat monthly, and Enterprise at custom pricing. LangSmith usage beyond included allowances is billed separately.

Does LangChain have a free plan?

Yes. The open-source framework is available without a subscription charge. LangSmith also offers a Developer plan at $0 per seat monthly, including one seat and 5,000 base traces per month. Additional trace usage is billed separately. Model-provider charges and infrastructure costs remain separate from both the framework and LangSmith.

How much does OpenAI Agents Platform cost?

OpenAI does not list a separate subscription price for the Agents SDK or Responses API. Usage is billed through selected models and optional services. Standard gpt-5-nano pricing starts at $0.05 per million input tokens and $0.40 per million output tokens. Web search, file search, containers, and ChatKit storage have separate published charges.

Is there a free plan for OpenAI Agents Platform?

The Agents SDK is an open-source framework with no listed subscription fee, but OpenAI models and hosted tools can create usage charges. OpenAI lists 1 GB of free file-search storage and 1 GB of free ChatKit upload storage per account per month. OpenAI does not publish a general free model-usage allowance.

Related comparisons

Sources