Learning resourcesReviewed · Browser Use

Browser Use V4: Update Session Cost Cap

Browser Use’s Update Session Cost Cap is an API reference for developers managing cloud browser agents, and earlier spending counts against each replacement budget. It documents a V4 request that changes an existing session’s total allowance without starting a run. Exact stopping behavior at the limit is not specified.

Researched 24 Nov 2026

In short.

Browser Use’s Update Session Cost Cap is an API reference for developers adjusting cloud browser agent budgets, but changing the limit does not reset spending already incurred. The endpoint accepts a session UUID and a total USD budget, works while a session is idle and returns the applied budget. Enforcement timing, handling of charges already in progress and request fees are unknown. No API calls were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is limited to the complete captured page at [https://docs.browser-use.com/cloud/api-v4/sessions/update-session-cost-cap.md], including its general notices and embedded OpenAPI schema. Linked documentation, pricing pages, SDK packages and other endpoints were not examined. General notices provide context but do not establish endpoint-specific enforcement guarantees. No requests were executed, and live behavior, charges and SDK compatibility remain unverified.

The overview

Identity

This is Browser Use’s reference for PATCH /sessions/{session_id}/cost-cap in its Cloud API V4. The embedded OpenAPI document identifies Browser Use Public API v4, version 4.0.0. The resource is available at [https://docs.browser-use.com/cloud/api-v4/sessions/update-session-cost-cap.md].

The operation changes the total budget for an existing session. Spending already recorded for that session continues to count against the replacement amount.

Assessment

The reference is useful for building a budget editor or another integration that changes an existing Browser Use session’s allowance. Its request and response schemas provide enough detail to construct a REST request.

It is insufficient on its own for promising an exact maximum charge. The page does not explain when budget enforcement happens, how outstanding charges are handled or what happens when a replacement budget is below spending already incurred.

Users

The main audience is developers already integrating Browser Use V4 sessions into an application. It may also help developers building controls for people who manage automation spending.

Beginners need some familiarity with HTTP requests, JSON, API keys and session identifiers. The page does not provide a walkthrough for obtaining a key or creating the session to be updated.

Capabilities

The endpoint replaces a session’s total USD budget without resetting accumulated spending or starting a run. Its request description explicitly covers updating a session while it is idle.

A documented successful response has HTTP status 200 and contains sessionId and maxCostUsd. Both response fields are strings, with sessionId formatted as a UUID. Removing a cap or resetting spending is not documented.

Using it

Requirements

The request requires an existing session UUID and an API key with sufficient access. Authentication uses the X-Browser-Use-API-Key header; the page’s general notices specify that it has no Bearer prefix.

The JSON body must contain maxCostUsd, and the schema disallows additional properties. The required API-key scope name, any minimum account tier and support in particular SDK releases are not established.

Mechanism

The session_id path parameter selects the existing session. The maxCostUsd body field replaces its total budget rather than adding money to the previous allowance. The schema accepts either a number greater than zero or a string matching its decimal-number pattern.

The reference documents 403 for insufficient scope or project restrictions, 404 for a resource that cannot be found, and 422 for validation errors. The validation-error schema can include the field location, message and error type.

Setup

Use the documented production endpoint [https://api.browser-use.com/api/v4/sessions/{session_id}/cost-cap], replacing {session_id} with the session UUID. Send an HTTPS PATCH request with the API-key header, a JSON content type and a body containing maxCostUsd.

On a documented 200 response, inspect sessionId and the applied maxCostUsd. This page supplies the REST schema but does not demonstrate an SDK method for this operation.

Example

Illustrative request, not executed: PATCH [https://api.browser-use.com/api/v4/sessions/00000000-0000-0000-0000-000000000000/cost-cap], with headers X-Browser-Use-API-Key: YOUR_API_KEY and Content-Type: application/json, and body {"maxCostUsd":"40.00"}. The all-zero UUID and API key are placeholders.

If that session had already spent $12, another $28 of counted charges would bring its total to the replacement $40 budget. This illustrates cumulative accounting; the page does not establish precisely when further work or charges would stop.

Assessment & evidence

Limitations

The reference does not explain updates during an active run, budgets below accumulated spending, enforcement delay, concurrent budget changes or charges already in progress. It also does not document a budget-exhaustion response or whether increasing a cap resumes interrupted work.

There is a validation distinction: numeric inputs explicitly must exceed zero, while the string alternative has no equivalent positivity constraint in the schema. Whether the server accepts zero or negative strings is unknown.

Reasoning

The explicit statement that spending so far counts against the new budget establishes cumulative accounting. Treating maxCostUsd as an additional allowance or a fresh budget for the next run would misread that description.

The endpoint’s name and purpose indicate a spending control, but its schema does not establish an exact financial guarantee. A strict maximum-charge promise needs additional evidence about enforcement and final accounting.

Alternatives

The same page mentions API-key monthly spending caps as a control with a broader time scope and warns that concurrent or already-running work can exceed them. It also describes project concurrency limits, which control capacity rather than the USD budget of one session.

Neither control is established here as an equivalent replacement for this endpoint. Comparable features from other providers are not assessed.

Evidence

The evidence is the complete captured documentation page, including its embedded OpenAPI schema and general documentation notices. Its source revision is sha256:55a3e8a5d27a894e216ce49c5efa5022eb1328da13d091defcdfcf1d5cf7924d.

The supplied material contains no execution logs, billing receipts or SDK implementation for this operation. No API calls were executed, so actual validation, budget enforcement and billing outcomes were not assessed.

Access & freshness

Costs

The page’s general notices describe Cloud as pay as you go. They do not state a fee for this PATCH request or define which cost components count toward the session budget. Request fees and total usage cost remain unknown.

The field description suggests $25 as a starting budget, but maxCostUsd is required and has no schema default. That suggestion does not establish a service fee. The separate warning that API-key monthly caps are soft limits does not establish whether this session cap has the same enforcement behavior.

Rights

The supplied page does not state a documentation licence or redistribution permission. Its Mintlify hosting attribution does not supply those rights. Browser Use service terms and any SDK licence are not included in the evidence.

Freshness

The supplied capture is dated 24 November 2026 at 11:35:42.619 UTC. No endpoint-specific publication or last-modified date is supplied.

The embedded OpenAPI version is 4.0.0. This identifies the reference’s declared API version; it does not establish an installed SDK version or independently confirm the deployed service’s behavior.

Actions

For an integration, use an explicit positive USD amount and inspect the returned sessionId and maxCostUsd. Confirm the required key scope and support in the SDK version you intend to use.

Before relying on a strict spending ceiling, resolve enforcement timing, outstanding charges, active-run updates and budgets below prior spending through fuller documentation or a controlled evaluation. Those behaviors remain unverified.

Evidence for this report

selected-page.txtselected · checked 2026-11-24