Skip to main content
POST
Create Run

Authorizations

X-Browser-Use-API-Key
string
header
required

Body

application/json
task
string
required

What the agent should do in this run.

Minimum string length: 1
outputSchema
Outputschema · object | null

Optional JSON Schema for the final output (API runs only).

model
enum<string>

When omitted, US projects created on or after 16 November 2026 use BU 4.0 (High reasoning when modelParams is also omitted). Web app users without a saved model choice start on BU 4.0. Older US projects retain their previous default; EU and Bedrock-only defaults are unchanged. See https://docs.browser-use.com/cloud/agent/models for defaults and availability. bu-ultrafast and bu-fast are ultrafast presets; they take no modelParams.

Available options:
mimo-v2.6-pro,
mimo-v2.6-flash,
deepseek-v4.1-flash,
glm-5.2,
grok-4.5,
grok-4.6,
glm-5.3-flash,
kimi-k3,
minimax-m3,
claude-opus-4.7,
claude-opus-4.8,
claude-opus-5,
claude-opus-5-5,
claude-fable-5,
claude-sonnet-5,
claude-sonnet-5-5,
gpt-5.5,
gpt-5.6,
gpt-6-astra,
gpt-6-sol,
gpt-6.1-sol,
gpt-6.1-terra,
gpt-6-luna,
gpt-5.6-sol,
gpt-5.6-terra,
gpt-5.6-luna,
gemini-3.6-flash,
gemini-3.5-flash,
gemini-3.1-pro,
gemini-3-flash,
bu-ultrafast,
bu-fast,
bu-4.0-mini,
bu-4.0,
bu-4.0-pro
modelParams
Modelparams · object | null

Optional provider-native request parameters for the selected model, written with the provider's own field names and values and forwarded unchanged (e.g. {"reasoning": {"effort": "high"}} for OpenAI, {"thinking": {"type": "adaptive"}} for Anthropic, {"thinkingConfig": {"thinkingLevel": "high"}} for Google). Supported paths and values are per-model; an unsupported path, value, or a model that accepts no parameters at all is rejected with 422. Omitting this field applies the model's default parameters (gpt-6-luna defaults to {"reasoning": {"effort": "high"}}); passing {} opts out of that default and leaves the provider's own defaults in place. On OpenAI models, {"service_tier": "priority"} (alias "fast") requests Fast processing at a higher token price; sent alone it keeps the model's default parameters. Beta: {"context": {"keepScreenshots": "2", "trimAtTokens": "80000", "compactAtTokens": "125000"}} controls what the agent keeps in context for the run: trimAtTokens clears old screenshots and tool output in one batch at that mark (keepScreenshots, which needs it, sets how many recent screenshots stay), and compactAtTokens compacts earlier. Values are strings from short per-model lists; like service_tier it keeps the model's default parameters.

sessionId
string<uuid> | null

Continue this session; omit to start a new session.

workspaceId
string<uuid> | null

Files workspace to use. Omitted on a new session creates one; omitted on a follow-up reuses the session's workspace.

browserSettings
RunBrowserSettings · object | null

Browser settings. Omitted or null on a follow-up keeps the session's browser. For CAPTCHA options, see CAPTCHA handling.

keepAlive
integer | null

Seconds the session's browser stays open after its last run, so a follow-up run reuses the same page, never past the browser's 4 h lifetime. Default 120. Follow-up runs inherit the session's value; send a new value to change it or null to restore the default. Kept time is billed as browser time. Ignored (always 120) for free-tier and Zero Data Retention projects.

Required range: 120 <= x <= 14400
agentmail
boolean
default:false

If true, provisions a persistent temporary email inbox (via AgentMail) for the run workspace. The agent receives the email address in its context and can send, receive, read, and reply to email. Set false to disable AgentMail for this run.

Stripe Link connection (from GET /stripe-link) this run may pay with. A follow-up POST /runs must send it again; queued messages (POST /sessions/{session_id}/queue) keep the previous run's connection.

attachedFileIds
string<uuid>[] | null

Upload ids from POST /workspaces/{workspace_id}/files/upload to show the agent in this run only. Ids that cannot be confirmed are reported, not fatal.

Maximum array length: 20
secretBindings
SecretBinding · object[] | null

Credentials this run may use without ever seeing them. The agent can ask the server to type a binding by alias on one of its allowed domains; it cannot read the value. Bindings are not persisted past the run.

Maximum array length: 20
opVaultId
string | null

A 1Password vault id whose items become typed secrets for this run. The project's connected 1Password integration is resolved server-side; no per-item ids are needed.

Maximum string length: 64
opVaultAllowedDomains
string[] | null

Hosts every credential from opVaultId may be typed into, e.g. ["amazon.com"]. Omit to derive each item's hosts from its own 1Password website entries; items with no website are then skipped and reported in skippedVaultItems. A host covers its subdomains, so 1Password's ExactDomain autofill setting is not honored either way.

judge
RunJudgeSettings · object | null

LLM judge of the finished run; send {} for defaults. Omitted or null runs no judge.

maxCostUsd

This budget limits model and search charges in USD. New API sessions default to $25. Use $25 as a starting budget unless the user specifies another amount. Follow-ups keep the current budget when you omit this field. An explicit value replaces the current budget. Account credits do not lower this budget.

Required range: x > 0

Response

Successful Response

id
string<uuid>
required
status
enum<string>
required
Available options:
queued,
dispatching,
running,
completed,
failed,
cancelled
model
string
required
sessionId
string<uuid>
required
workspaceId
string<uuid>
required
eventsUrl
string
required
missingFileIds
string<uuid>[]
skippedVaultItems
string[]

Titles of opVaultId items that hold a credential but no 1Password website, so deriving their domains left them with nowhere to be typed. The run still starts without them; add a website to the item or pass opVaultAllowedDomains.