Skip to main content
POST
Start Python execution

Authorizations

Authorization
string
header
required

Pass an API key (prefixed lk_) or a JWT access token as a bearer token. Generate API keys in the dashboard at https://dashboard.lyceum.technology/api-keys.

Body

application/json

Request model for streaming code execution

code
string
required
nbcode
integer
default:0
timeout
integer
default:60
Required range: 1 <= x <= 600
requirements_content
string | null
prior_imports
string[] | null
kernel_state
string | null
import_files
string | null
file_name
string | null
execution_type
string
default:gpu.l40s
Pattern: ^[a-zA-Z0-9_.]+$
user_callback_urls
string[] | null

URLs to call with job completion info

Response

Successful Response

Response model with direct streaming URL

execution_id
string
required
status
string
required
streaming_url
string
required