---
title: "Get Session Cost"
method: GET
path: "/sessions/{session_id}/cost"
tags: ["Sessions"]
---

# Get Session Cost

`GET /sessions/{session_id}/cost`

## Request

- Base URL: `https://api.browser-use.com/api/v4`
- URL: `https://api.browser-use.com/api/v4/sessions/{session_id}/cost`
- Auth: API key in header `X-Browser-Use-API-Key`

Everything this session has cost so far, split by source.

A run's `total_cost_usd` is its LLM (and web-search) charge only. Browser
time and proxy bandwidth are metered against the session's browser, which
outlives any one run — so this is the endpoint for the session's full cost.

These are recorded usage costs, not an invoice total: promotional waivers
and credits are applied downstream in billing, so a session run under a
promotion can report cost here that was never charged.

Costs keep moving after a run reports `finished`: LLM calls settle up to
about 90 seconds later, and the browser accrues time and proxy traffic
until it stops.

## Path parameters

- `session_id` string, uuid, required

## Response `200`

Successful Response

- SessionCostResponse: Everything a session cost, split by what it was spent on. Recorded usage, not an invoice total — promotional waivers and credits are applied downstream in billing. Browser time and proxy bandwidth are metered against the session's browser, which outlives any single run, so they have no per-run number — only `RunSummary.total_cost_usd`, the LLM (and web search) charge, does. All amounts are fixed-6-decimal strings for the same reason as `RunSummary.total_cost_usd`: JS clients lose precision on float.
  - `sessionId` string, uuid, required
  - `numRuns` integer, required
  - `llmCostUsd` string, required
  - `searchCostUsd` string, required
  - `browserCostUsd` string, required
  - `proxyCostUsd` string, required
  - `proxyUsedMb` string, required
  - `totalCostUsd` string, required

## Other responses

- `403`: Zero Data Retention is enabled on the project (V4 unsupported).
- `404`: Run, session, workspace, or profile not found.
- `422`: Validation Error

---

[API](https://skmtc.dev/browser-use/apis/browser-use-public-api-v4.md) · [All operations](https://skmtc.dev/browser-use/apis/browser-use-public-api-v4/llms.txt) · [OpenAPI document](https://skmtc.dev/browser-use/apis/browser-use-public-api-v4/revisions/cd7b1eee1102?raw)
