Skip to main content
POST

Price

No charge of its own. The session is billed when it closes, at $0.84 per hour once a prompt has run. See Pricing.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

Body

application/json
code
string
Required string length: 1 - 200000
prompt
string
Required string length: 1 - 10000
language
enum<string>
default:node
Available options:
node,
python,
bash
timeout
integer
Required range: 1 <= x <= 300

Response

What the run printed and returned.

success
any
required
creditsUsed
integer
required
costUsd
number
required

What this call cost, in dollars.

requestId
string
required
output
string

What the code printed.

stdout
string
result
string

The value the code returned, as text.

stderr
string
exitCode
integer
killed
boolean

true when the code ran out of time.

truncated
boolean
error
string
steps
string[]
page
object
cdpUrl
string

Connect a CDP client such as Playwright here.

liveViewUrl
string

Watch the session. Sent with streamWebView.

interactiveLiveViewUrl
string

Watch and control the session. Sent with streamWebView.