Skip to main content
POST
/
api
/
v2
/
external
/
execution
/
streaming
/
start
Start Streaming Execution
curl --request POST \
  --url https://api.lyceum.technology/api/v2/external/execution/streaming/start \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "timeout": 60,
  "requirements": "<string>",
  "prior_imports": [
    "<string>"
  ],
  "kernel_state": "<string>",
  "file_name": "<string>",
  "execution_type": "cpu"
}
'
{
  "execution_id": "<string>",
  "status": "<string>",
  "streaming_url": "<string>",
  "pythia_decision": "<string>"
}

Body

application/json

Request model for streaming code execution

code
string
required
timeout
integer
default:60
Required range: 1 <= x <= 600
requirements
string | null
prior_imports
string[] | null
kernel_state
string | null
file_name
string | null
execution_type
string
default:cpu

Response

Successful Response

Response from starting a Python execution. Contains execution_id for tracking and streaming_url for real-time output logs.

execution_id
string
required
status
string
required
streaming_url
string
required
pythia_decision
string | null