Create and start a new task.
You can either:
Note: Without sessionSettings, a US proxy is enabled by default. Providing sessionSettings overrides defaults — proxy is only enabled if proxyCountryCode is set. For full control over session configuration (e.g. keep_alive), create a session first via POST /sessions with your desired settings, then pass that sessionId when creating tasks.
Request model for creating a task
The task prompt/instruction for the agent.
1 - 50000The LLM model to use for the agent.
browser-use-llm, browser-use-2.0, gpt-4.1, gpt-4.1-mini, o4-mini, o3, gemini-2.5-flash, gemini-2.5-pro, gemini-3-pro-preview, gemini-3-flash-preview, gemini-flash-latest, gemini-flash-lite-latest, claude-sonnet-4-20250514, claude-sonnet-4-5-20250929, claude-opus-4-5-20251101, gpt-4o, gpt-4o-mini, llama-4-maverick-17b-128e-instruct, claude-3-7-sonnet-20250219 The URL to start the task from.
Maximum number of steps the agent can take before stopping.
1 <= x <= 10000The stringified JSON schema for the structured output.
The ID of the session where the task will run.
The metadata for the task. Up to 10 key-value pairs.
The secrets for the task. Allowed domains are not required for secrets to be injected, but are recommended.
The allowed domains for the task.
The ID of the 1Password vault to use for the task. This is used to inject secrets into the task.
Session configuration for auto-created sessions. These settings only apply when no session_id is provided.
Tells the agent to highlight interactive elements on the page.
Whether agent flash mode is enabled.
Whether agent thinking mode is enabled.
Whether agent vision capabilities are enabled. Set to 'auto' to let the agent decide based on the model capabilities.
Optional extension to the agent system prompt.
2000Enable judge mode to evaluate task completion against ground truth.
Expected answer for judge evaluation.
10000The LLM model to use for judging. If not provided, uses the default judge LLM.
browser-use-llm, browser-use-2.0, gpt-4.1, gpt-4.1-mini, o4-mini, o3, gemini-2.5-flash, gemini-2.5-pro, gemini-3-pro-preview, gemini-3-flash-preview, gemini-flash-latest, gemini-flash-lite-latest, claude-sonnet-4-20250514, claude-sonnet-4-5-20250929, claude-opus-4-5-20251101, gpt-4o, gpt-4o-mini, llama-4-maverick-17b-128e-instruct, claude-3-7-sonnet-20250219 List of skill IDs to enable for this task. Use ['*'] to enable all available skills for the project.