# Browser Use

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API |
> |---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> AI-powered browser automation — run tasks in a cloud browser with LLM agents.

**Category:** Browser Automation | **Website:** [browser-use.com](https://browser-use.com) | **Docs:** [docs.cloud.browser-use.com](https://docs.cloud.browser-use.com)

## Access Methods

| Method | Base URL | Auth |
|--------|----------|------|
| **x402 (Base)** | `https://browser-use.x402.beta.paywithlocus.com/browser-use/` | HTTP 402 auto-payment |
| **Wrapped API** | `https://api.beta.paywithlocus.com/api/wrapped/browser-use/` | `Authorization: Bearer <LOCUS_API_KEY>` |

**OpenAPI discovery:** `GET https://browser-use.x402.beta.paywithlocus.com/openapi.json`

## Endpoints

### Run Task

Start an automated browser task with an AI agent.

**Estimated cost:** $0.01+

**Payment:** x402 `exact`

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `task` | string | Yes | Natural language description of the task |
| `llm` | string | No | Model to use (default: browser-use-2.0) |
| `maxSteps` | number | No | Max steps (default 100, max 200) |

```bash
curl -X POST https://browser-use.x402.beta.paywithlocus.com/browser-use/run-task \
  -H "Content-Type: application/json" \
  -H "x-locus-request-id: <UUID from the 402 response>" \
  -d '{"task":"<string>","llm":"<string>","maxSteps":"<number>"}'
```

### Get Task

Retrieve the full details and output of a task.

**Estimated cost:** $0.003

**Payment:** x402 `exact`

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `taskId` | string | Yes | Task ID |

```bash
curl -X POST https://browser-use.x402.beta.paywithlocus.com/browser-use/get-task \
  -H "Content-Type: application/json" \
  -H "x-locus-request-id: <UUID from the 402 response>" \
  -d '{"taskId":"<string>"}'
```

### Get Task Status

Check the current status of a running task.

**Estimated cost:** $0.003

**Payment:** x402 `exact`

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `taskId` | string | Yes | Task ID |

```bash
curl -X POST https://browser-use.x402.beta.paywithlocus.com/browser-use/get-task-status \
  -H "Content-Type: application/json" \
  -H "x-locus-request-id: <UUID from the 402 response>" \
  -d '{"taskId":"<string>"}'
```

### Stop Task

Stop a running browser task.

**Estimated cost:** $0.003

**Payment:** x402 `exact`

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `taskId` | string | Yes | Task ID to stop |

```bash
curl -X POST https://browser-use.x402.beta.paywithlocus.com/browser-use/stop-task \
  -H "Content-Type: application/json" \
  -H "x-locus-request-id: <UUID from the 402 response>" \
  -d '{"taskId":"<string>"}'
```
