Skip to main content
This page describes how to manage billing for your LangSmith organization:

Set up billing for your account

Before using this guide, note the following:
To set up billing for your LangSmith organization, navigate to the Billing and Usage page under Settings. Depending on your organization’s settings, there are different setup guides:

Developer plan: set up billing on your personal organization

Personal organizations are limited to 5,000 free traces per month until a credit card is added. To add a card:
  1. Click Add card to remove trace limit.
  2. Add your credit card information.
  3. Once complete, you will no longer be rate limited to 5,000 traces, and you will be charged for any excess traces at rates specified on the pricing page.

Plus plan: set up billing on a shared organization

Team organizations are given an initial 10,000 free traces per month. Any excess traces will be charged at rates specified on the pricing page.
New organizations that you manually create are required to be on the Plus Plan. If you see a message about needing to upgrade to Plus to use this organization, follow these steps.
  1. Click Upgrade to Plus.
  2. Invite members to your organization, as desired.
  3. Enter your credit card information. Then, enter business information, invoice email, and tax ID. If this organization belongs to a business, check the This is a business checkbox and enter the information accordingly. For more information, refer to the Update your information section.

Track contract usage (Enterprise)

Contract usage tracking is available for Enterprise plan customers with prepaid commitments. You must have the organization:manage permission to access this feature. For details on viewing your prepaid contract consumption, refer to Contract usage.
For more details on the Enterprise plan, contact our sales team.

Update your information (Paid plans only)

To update business information for your LangSmith organization, head to the Billing and Usage page under Settings.

Invoice email

To update the email address for invoices, follow these steps:
  1. Navigate to the Plans and Billing tab.
  2. Locate the section beneath the payment method, where the current invoice email is displayed.
  3. Enter the new email address for invoices in the provided field.
  4. The new email address will be automatically saved.
You will receive all future invoices to the updated email address.

Business information and tax ID

In certain jurisdictions, LangSmith is required to collect sales tax. If you are a business, providing your tax ID may qualify you for a sales tax exemption.
To update your organization’s business information, follow these steps:
  1. Navigate to the Plans and Billing tab.
  2. Below the invoice email section, you will find a checkbox labeled Business.
  3. Check the Business checkbox if your organization belongs to a business.
  4. A business information section will appear, allowing you to enter or update the following details:
    • Business Name
    • Address
    • Tax ID for applicable jurisdictions
  5. A Tax ID field will appear for applicable jurisdictions after you select a country.
  6. After entering the necessary information, click the Save button to save your changes.
This ensures that your business information is up-to-date and accurate for billing and tax purposes.

Enforce spend limits

This section relies on how data retention and usage limits work. Read those sections first if you are not familiar with them.
Some of the features mentioned in this guide are not currently available on Enterprise plan due to its custom nature of billing. If you are on the Enterprise plan and have questions about cost optimization, contact your sales rep or support via support.langchain.com.

Understand your current usage

The first step of any optimization process is to understand current usage. For details on the usage graph, granular usage, invoices, and contract usage, refer to View usage.

Set a workspace spend limit

LangSmith measures usage per workspace.
  1. Navigate to Settings > Billing and Usage > Usage limits.
  2. Input a spend limit for your selected workspace. LangSmith will determine an appropriate number of base and extended trace limits to match that spend. The trace limits include the free trace allocation that comes with your plan. See details on the pricing page.
For organizations with multiple workspaces only: For simplicity, LangSmith incorporates the free traces into the cost calculation of the first workspace only. In actuality, the free traces can be “consumed” by any workspace. Therefore, although workspace-level spend limits are approximate for multi-workspace organizations, the organization-level spend limit is absolute.

Configure trace tier distribution

LangSmith has two trace tiers: base and extended. For the retention period of each tier on your hosting option, see Retention periods. Set the workspace’s default trace tier by selecting an option below the Default data retention label. New agent environments in the workspace use this tier. To also set it on every existing environment in the workspace, select the checkbox. In both cases, the change applies only to traces ingested after you save it. Traces already ingested keep their tier. If the default data retention is set to Base, you can optionally use the slider to distribute trace limits across base and extended traces. LangSmith automatically provides a suggestion for this distribution, but you can tailor this to your needs. For example, if you are running many automations or other features that may upgrade a trace to extended, you may want to increase your extended trace limits. For the full list of features that can upgrade a trace, see Data retention auto-upgrades.
The extended data retention limit can cause features other than tracing to stop working once reached. If you plan to use this feature, read more about its functionality and side effects.

Other methods of managing traces

Besides spend limits, the following settings control how long traces are kept and what they cost.

Customize extended retention period (Enterprise only)

Enterprise customers can customize the extended data retention period at the workspace level to meet compliance requirements. For the durations available on your hosting option, see Retention periods. To change the period, see Customize extended retention policy.

Change default retention for an environment

You set the default retention tier for each agent environment separately, choosing base or extended. To set the tier for a whole agent, set it on each environment. To customize the extended duration, use workspace-level configuration (Enterprise only). If extended retention is disabled for the workspace, new traces use base retention regardless of saved environment defaults. You cannot change an environment’s default from base to extended while the restriction is active. To change an environment’s default retention:
  1. In the agent switcher, select your agent, go to Tracing, and select the environment.
  2. Click Retention in the top bar.
  3. Select Base or Extended.
The change applies only to new traces. Existing traces keep their original tier and pricing.

Apply extended data retention to a percentage of traces

You may not want all traces to expire at the end of the base retention period. You can automatically extend the retention of traces that match some criteria by creating an automation rule. You might want to apply extended data retention to specific types of traces, such as:
  • 10% of all traces: For general analysis or analyzing trends long term.
  • Errored traces: To investigate and debug issues thoroughly.
  • Traces with specific metadata: For long-term examination of particular features or user flows.
To configure this:
  1. Select your agent, go to Tracing, and select the environment. Then select + New > New Automation.
  2. Name your rule and optionally apply filters or a sample rate. For more information on configuring filters, refer to filtering techniques.
When an automation rule with retention extension enabled matches a run, it upgrades the entire trace to extended data retention. These upgrades require the workspace to allow extended retention.
For example, this is the expected configuration to keep 10% of all traces for extended data retention: P2sampletraces If you want to keep a subset of traces for longer than the extended retention period for data collection purposes, you can create another run rule that sends some runs to a dataset of your choosing. A dataset allows you to store the trace inputs and outputs (e.g., as a key-value dataset), and will persist indefinitely, even after the trace gets deleted.
If you have questions about further managing your spend, please contact support via support.langchain.com.

LangSmith Agent Server billing

In addition to traces, LangSmith charges for deployed agents through LangSmith Agent Server. Deployments are billed on the resources they consume:
  • Compute: Requested vCPU and memory per running replica, measured in LangChain Standard Units (LSU). Autoscaling adds billable replicas. Serverless compute charges stop at scale-down, not when traffic stops. Dedicated runs continuously.
  • Database: Dedicated database charges are based on configured vCPU and memory, including while idle. Runtime autoscaling does not change the database charge. Database disk storage and the shared Serverless database are not billed.
Managed Redis is not billed on any deployment type or size. The following diagram shows which parts of each deployment type are billed. Blue parts are billed. Green parts are not billed: Usage is converted to LSU at the following rates: Usage is sampled every 5 minutes and totaled hourly. Each running billable container is charged for that interval based on requested resources, not actual utilization.

Compare sizes and hourly costs

The following tables show the hourly cost of each size on LangSmith Cloud in GCP. All costs are in LSU per hour. A Serverless deployment is charged only while it runs. A scaled-down Serverless deployment costs 0 LSU. Serverless deployments do not scale out, and their shared database is not billed: A Dedicated deployment is charged for its minimum runtime and its database at all times. This table assumes the database size matches the compute size:
The Dedicated minimum runtime is 2 API server replicas and 1 queue worker. Autoscaling adds API server or queue worker replicas. Each added replica costs the added replica rate for its size.
The following table shows the minimum runtime and the added replica rate for each Dedicated size: Dedicated database capacity on LangSmith Cloud in GCP is: Database capacity differs by cloud provider. Compute and database sizes can be set independently. Tracing and other product usage are separate charges. Free Serverless deployments are available only in the Small size. A free deployment is not billed for any container, at any Scale down after setting. Dedicated deployments are never free. To estimate the cost of a deployment, you can also use the deployment cost calculator on the pricing page.
Usage-based pricing replaced per-run and uptime pricing on October 1, 2026. Scale to zero requires the new pricing. For transition questions, contact support.
For high-volume deployment usage, contact our sales team to discuss custom pricing options.

Reduce deployment costs

Deployment charges are based on the compute and database resources that each deployment requests. To lower your deployment bill, run fewer deployments, use smaller sizes, and let idle deployments scale down:
  • Use Serverless with a short scale-down time: A Serverless deployment stops compute charges when it scales down. Set Scale down after to 1 hour instead of the default 1 week. With the default, a deployment that receives a request at least once a week never scales down. Serverless deployments have cold starts and run one replica. Serverless is not yet available for deployments on AWS or Azure, or for self-hosted and hybrid deployments.
  • Run multiple agents on one deployment: Charges apply to each deployment, not to each agent. Define multiple graphs in one langgraph.json so that your agents share one set of replicas and one database. This saves the most on Dedicated, where each deployment has at least 2 API server replicas, 1 queue worker, and its own database.
  • Use the smallest size that works: Each runtime replica and each database is charged by its size. On a Dedicated deployment, you can set the compute size and the database size separately. See Sizes.
  • Delete unused deployments: An idle Dedicated deployment is charged for its minimum replicas and its database. An idle Serverless deployment is charged until it scales down.
  • Limit preview deployments: Each preview deployment is a separate deployment and is charged like one. Lower Idle TTL and Max concurrent previews to limit how many preview deployments run, and for how long.
  • Remove unneeded wake-ups: A request to a scaled-down Serverless deployment starts it again, including automated health checks. Enabled cron jobs and scheduled runs start the deployment up to 10 minutes before they are due. Remove cron jobs and health checks that you do not need.
The following diagram compares three Dedicated deployments with one Dedicated deployment that runs three graphs: The following table shows the effect of two changes. Monthly costs use 720 hours:
  • Shorter scale-down time: A Serverless Small deployment receives requests for 2 hours each weekday, 22 days each month.
  • Multiple graphs: Three agents run on Dedicated Small deployments on GCP.
Autoscaling adds runtime cost to both Dedicated setups. LangSmith does not support changing the type of a deployment after creation. To move to Serverless, create a new Serverless deployment and copy data from the previous deployment with the Agent Server API. You can also contact support for help with the migration.