# Browser Use — Wrapped API

> **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)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/browser-use/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

> Also available via public x402 on Base (no account needed): [x402/browser-use.md](https://beta.paywithlocus.com/x402/browser-use.md)

## Endpoints

### Run Task

Start an automated browser task with an AI agent.

**Estimated cost:** $0.01+

| 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://api.beta.paywithlocus.com/api/wrapped/browser-use/run-task \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"task":"<string>","llm":"<string>","maxSteps":"<number>"}'
```

### Get Task

Retrieve the full details and output of a task.

**Estimated cost:** $0.003

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

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/browser-use/get-task \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"taskId":"<string>"}'
```

### Get Task Status

Check the current status of a running task.

**Estimated cost:** $0.003

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

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/browser-use/get-task-status \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"taskId":"<string>"}'
```

### Stop Task

Stop a running browser task.

**Estimated cost:** $0.003

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

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/browser-use/stop-task \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"taskId":"<string>"}'
```
