JavaScript
import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
await client.agents.grokComputerUse.start({
task: 'Find the price of the product',
maxSteps: 20
});from hyperbrowser import Hyperbrowser
from hyperbrowser.models import StartGrokComputerUseTaskParams
client = Hyperbrowser(api_key='your-api-key')
client.agents.grok_computer_use.start(StartGrokComputerUseTaskParams(
task='Find the price of the product',
max_steps=20
))curl --request POST \
--url https://api.hyperbrowser.ai/api/task/grok-computer-use \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"task": "go to example.com"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperbrowser.ai/api/task/grok-computer-use",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'task' => 'go to example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyperbrowser.ai/api/task/grok-computer-use"
payload := strings.NewReader("{\n \"task\": \"go to example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hyperbrowser.ai/api/task/grok-computer-use")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"task\": \"go to example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperbrowser.ai/api/task/grok-computer-use")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task\": \"go to example.com\"\n}"
response = http.request(request)
puts response.read_body{
"jobId": "<string>",
"liveUrl": "<string>"
}{
"message": "<string>"
}Grok Computer Use
Start a grok computer use task
POST
/
api
/
task
/
grok-computer-use
JavaScript
import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
await client.agents.grokComputerUse.start({
task: 'Find the price of the product',
maxSteps: 20
});from hyperbrowser import Hyperbrowser
from hyperbrowser.models import StartGrokComputerUseTaskParams
client = Hyperbrowser(api_key='your-api-key')
client.agents.grok_computer_use.start(StartGrokComputerUseTaskParams(
task='Find the price of the product',
max_steps=20
))curl --request POST \
--url https://api.hyperbrowser.ai/api/task/grok-computer-use \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"task": "go to example.com"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperbrowser.ai/api/task/grok-computer-use",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'task' => 'go to example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyperbrowser.ai/api/task/grok-computer-use"
payload := strings.NewReader("{\n \"task\": \"go to example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hyperbrowser.ai/api/task/grok-computer-use")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"task\": \"go to example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperbrowser.ai/api/task/grok-computer-use")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task\": \"go to example.com\"\n}"
response = http.request(request)
puts response.read_body{
"jobId": "<string>",
"liveUrl": "<string>"
}{
"message": "<string>"
}Authorizations
Body
application/json
Available options:
grok-4.5 Available options:
low, medium, high Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I