{"components":{"responses":{},"schemas":{"VpnSession":{"properties":{"app_logo":{"nullable":true,"type":"string"},"app_name":{"nullable":true,"type":"string"},"charge_amount":{"type":"integer"},"city":{"nullable":true,"type":"string"},"config":{"description":"What the client connects with: a config file or a link, for `http_proxy` the proxy's address and its login (HTTP Basic, letters and digits only, valid for this session)","nullable":true,"oneOf":[{"type":"string"},{"properties":{"ip":{"example":"203.0.113.7","type":"string"},"password":{"example":"tt1f70D8qUUknMdlHoIUyp3Q","type":"string"},"port":{"example":40000,"type":"integer"},"username":{"example":"a1b2c3d4","type":"string"}},"required":["ip","port","username","password"],"type":"object"}]},"country":{"nullable":true,"type":"string"},"country_iso":{"nullable":true,"type":"string"},"duration":{"type":"integer"},"node_number":{"nullable":true,"type":"string"},"progress":{"nullable":true,"type":"string"},"public_ip":{"nullable":true,"type":"string"},"rx":{"type":"integer"},"service":{"enum":["vpn"],"type":"string"},"started_at":{"nullable":true,"type":"integer"},"status":{"enum":["starting","ready"],"type":"string"},"subkind":{"nullable":true,"type":"string"},"tx":{"type":"integer"},"uuid":{"format":"uuid","type":"string"}},"required":["service","uuid","status"],"title":"VpnSession","type":"object"},"ComputeMachine":{"description":"Machine available for rent","properties":{"ai_score":{"description":"NVIDIA GPU performance counter","example":88432,"type":"integer"},"arch":{"description":"Hardware architecture","enum":["x86_64","aarch64"],"type":"string"},"base_price":{"description":"Price per hour of rent, micro-USD","example":100000,"type":"integer"},"blender_score":{"description":"GPU performance on Blender benchmark for the GPU vendor","example":17995,"type":"integer"},"city":{"description":"City where machine hosted","example":"North Bergen","type":"string"},"country":{"description":"Country where machine hosted","example":"United States","nullable":true,"type":"string"},"country_iso":{"description":"ISO 3166-1 alpha-2 code of the country where machine hosted","example":"US","nullable":true,"type":"string"},"cpu_cores":{"description":"Amount of CPU cores available on machine","example":32,"type":"integer"},"cpu_model_name":{"description":"CPU model name","example":"Intel(R) Xeon(R) CPU E5-1607 v4 @ 3.10GHz","type":"string"},"cuda_version":{"description":"CUDA version","example":"12.4","nullable":true,"type":"string"},"disk":{"description":"Free disk space, bytes","example":1148521938944,"type":"integer"},"disk_speed_mbs":{"description":"Disk speed in MB/s","example":1450,"type":"number"},"disk_type":{"description":"Disk type, null if unknown","enum":["nvme","ssd","hdd",null],"example":"nvme","nullable":true,"type":"string"},"free_ports":{"description":"Amount of free service ports on machine","example":16,"type":"integer"},"gpu_pt":{"description":"Is GPU passthrough available","type":"boolean"},"gpu_vendor":{"description":"GPU vendor","example":"nvidia","nullable":true,"type":"string"},"gpus":{"description":"GPUs installed on machine","items":{"$ref":"#/components/schemas/GpuNvidia"},"type":"array"},"is_hive_os":{"description":"Is HiveOS installed on node","type":"boolean"},"is_wsl":{"description":"Is node running in WSL","type":"boolean"},"memory":{"description":"Free memory, bytes","example":129108070400,"type":"integer"},"memory_speed":{"description":"Memory speed in MT/s","example":6400,"type":"integer"},"memory_type":{"description":"Memory type","example":"DDR5","type":"string"},"min_rent_minutes":{"description":"Minimum rent, minutes; 0 = none. A session stopped sooner is charged base and storage for this long","example":30,"type":"integer"},"net_down_mbps":{"description":"Network download speed, Mbit/s; 0 if not measured","example":940,"type":"integer"},"net_up_mbps":{"description":"Network upload speed, Mbit/s; 0 if not measured","example":920,"type":"integer"},"node_number":{"description":"Machine number: 8 Crockford base32 symbols and a check symbol","example":"7KQ4-M2XD-4","type":"string"},"os_version":{"description":"Operating system of the node; null if unknown","example":"Ubuntu 24.04","nullable":true,"type":"string"},"reliability":{"additionalProperties":true,"description":"Node reliability: `uptime`, percent of the time online over the last 30 days (since it first came online for a newer node), and session stability when known","type":"object"},"storage_price":{"description":"Price per GB of disk per hour, micro-USD","example":10000,"type":"integer"},"traffic_price":{"description":"Price per GB of traffic, micro-USD","example":10000,"type":"integer"},"virt":{"description":"Type of virtualization the node runs in; `none` on bare metal","example":"none","type":"string"}},"title":"ComputeMachine","type":"object"},"RenderBatchRequest":{"description":"Several render requests; `id` is chosen by the client and echoed in the result","items":{"additionalProperties":false,"properties":{"id":{"description":"Client-side request id","example":1},"node_number":{"description":"Node number from the listing; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","type":"string"}},"required":["id","node_number"],"type":"object"},"title":"RenderBatchRequest","type":"array"},"UserEnvs":{"additionalProperties":{"maxLength":4096,"type":"string"},"description":"User defined variables, up to 64, values up to 4 KiB","example":{"VARIABLE_1":"VALUE_1","VARIABLE_2":"VALUE_2"},"maxProperties":64,"title":"UserEnvs","type":"object"},"ServiceUuid":{"properties":{"uuid":{"description":"Unique identifier of session","example":"96e33710-ec12-11ed-8588-fa163e49e8aa","type":"string"}},"required":["uuid"],"title":"ServiceUuid","type":"object"},"GpuNvidia":{"properties":{"core_clock":{"description":"Core clock ceiling, MHz: the one the node owner locked, otherwise the card's maximum; null if unknown","example":2520,"nullable":true,"type":"integer"},"mem_clock":{"description":"Memory clock ceiling, MHz: the one the node owner locked, otherwise the card's maximum; null if unknown","example":10501,"nullable":true,"type":"integer"},"mem_total_mb":{"description":"Total memory in megabytes","example":24564,"type":"integer"},"model":{"description":"GPU model name","example":"NVIDIA GeForce RTX 4090","type":"string"},"pcie_link_gen":{"description":"PCI-E link generation","example":4,"type":"integer"},"pcie_link_width":{"description":"PCI-E link width","example":16,"type":"integer"},"power_limit":{"description":"Power limit, watts; null if the card does not report one","example":400,"nullable":true,"type":"integer"},"tuned":{"description":"Not at the card's defaults: the node owner changed the power limit or locked clocks","example":true,"type":"boolean"}},"title":"GpuNvidia","type":"object"},"RenderMachines":{"items":{"$ref":"#/components/schemas/RenderMachine"},"title":"RenderMachines","type":"array"},"Error":{"properties":{"message":{"description":"What went wrong","type":"string"}},"required":["message"],"title":"Error","type":"object"},"ComputeApp":{"properties":{"category":{"example":"Machine Learning","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"entrypoint":{"type":"string"},"envs":{"additionalProperties":true,"description":"Personal apps only","type":"object"},"extra":{"properties":{"logo":{"type":"string"},"min_disk_size":{"description":"GB","type":"integer"}},"type":"object"},"http_ports":{"description":"HTTP ports to expose","example":[8080,8888],"items":{"type":"integer"},"type":"array"},"image":{"example":"ubuntu:24.04","type":"string"},"name":{"example":"Ubuntu 24.04 LTS","type":"string"},"personal":{"description":"The account's own app, not an official one","type":"boolean"},"ports":{"description":"TCP/UDP ports to expose","example":[5000,6000],"items":{"type":"integer"},"type":"array"},"startup_script":{"description":"Personal apps only","nullable":true,"type":"string"},"uuid":{"description":"`app` of a compute service","format":"uuid","type":"string"}},"required":["uuid","name","image","personal"],"title":"ComputeApp","type":"object"},"ComputeSession":{"description":"A running compute session","properties":{"app_logo":{"nullable":true,"type":"string"},"app_name":{"nullable":true,"type":"string"},"base_price":{"description":"Price per hour of rent at start, micro-USD; null while starting","example":100000,"nullable":true,"type":"integer"},"charge_amount":{"description":"Charged so far, micro-USD","type":"integer"},"city":{"description":"City where the node is hosted; null if unknown","example":"North Bergen","nullable":true,"type":"string"},"country":{"description":"Country where the node is hosted; null while the session is starting","example":"United States","nullable":true,"type":"string"},"country_iso":{"description":"ISO 3166-1 alpha-2 country code","example":"US","nullable":true,"type":"string"},"duration":{"description":"Seconds since start","type":"integer"},"envs":{"$ref":"#/components/schemas/UserEnvs"},"fm":{"description":"Web file manager URL; null when not asked for, not started yet, or failed","nullable":true,"type":"string"},"min_rent_minutes":{"description":"Minimum rent at start, minutes; 0 = none. Stopped sooner, the session is charged base and storage for this long; null while starting","example":30,"nullable":true,"type":"integer"},"node_hw":{"description":"Node hardware at start; null while the session is starting","nullable":true,"properties":{"cpu":{"nullable":true,"type":"string"},"cpu_cores":{"nullable":true,"type":"integer"},"disk":{"description":"Rented disk, GB","nullable":true,"type":"integer"},"disk_speed_mbs":{"nullable":true,"type":"number"},"disk_type":{"description":"Disk type, null if unknown","enum":["nvme","ssd","hdd",null],"example":"nvme","nullable":true,"type":"string"},"gpu_vendor":{"nullable":true,"type":"string"},"gpus":{"items":{"properties":{"mem_total_mb":{"nullable":true,"type":"integer"},"model":{"nullable":true,"type":"string"}},"type":"object"},"type":"array"},"memory_speed":{"nullable":true,"type":"integer"},"memory_type":{"nullable":true,"type":"string"},"net_down_mbps":{"description":"Network download speed, Mbit/s","example":940,"nullable":true,"type":"integer"},"net_up_mbps":{"description":"Network upload speed, Mbit/s","example":920,"nullable":true,"type":"integer"},"total_memory":{"nullable":true,"type":"integer"}},"type":"object"},"node_number":{"example":"7KQ4-M2XD-4","nullable":true,"type":"string"},"ports":{"additionalProperties":{"type":"integer"},"description":"Container port => public port on the node","example":{"22":51801,"8000":51802},"type":"object"},"progress":{"description":"Current configuration step","example":"Service configured","nullable":true,"type":"string"},"public_ip":{"nullable":true,"type":"string"},"pull_percent":{"description":"Image pull progress, percent, while the image is being pulled: an estimate until every layer has started downloading. null otherwise","example":42,"maximum":100,"minimum":0,"nullable":true,"type":"integer"},"rx":{"description":"Bytes received","type":"integer"},"service":{"enum":["compute"],"type":"string"},"ssh":{"properties":{"direct":{"description":"Directly on the node","nullable":true,"properties":{"host":{"type":"string"},"port":{"type":"integer"},"user":{"description":"User to log in as: the image's USER, root when it sets none","example":"root","type":"string"}},"type":"object"},"proxy":{"description":"Through the proxy","nullable":true,"properties":{"host":{"type":"string"},"port":{"type":"integer"},"user":{"description":"User to log in as: the image's USER, root when it sets none","example":"root","type":"string"}},"type":"object"},"web":{"description":"Web terminal URL","nullable":true,"type":"string"}},"type":"object"},"started_at":{"description":"Unix time, milliseconds","example":1792001595847,"nullable":true,"type":"integer"},"status":{"description":"starting while the session is being configured","enum":["starting","ready"],"type":"string"},"storage_price":{"description":"Price per GB of disk per hour at start, micro-USD; null while starting","example":10000,"nullable":true,"type":"integer"},"traffic_price":{"description":"Price per GB of traffic at start, micro-USD; null while starting","example":10000,"nullable":true,"type":"integer"},"tx":{"description":"Bytes sent","type":"integer"},"urls":{"additionalProperties":{"type":"string"},"description":"HTTP port => public URL","type":"object"},"uuid":{"example":"96e33710-ec12-11ed-8588-fa163e49e8aa","type":"string"},"volume":{"description":"The persistent volume attached to the session; null when it has none","nullable":true,"properties":{"id":{"format":"uuid","type":"string"},"mount":{"description":"Mount point in the container","type":"string"}},"type":"object"}},"required":["service","uuid","status","duration"],"title":"ComputeSession","type":"object"},"Network":{"description":"The platform now","properties":{"at":{"description":"As of, unix seconds","example":1793500000,"type":"integer"},"nodes":{"properties":{"available":{"description":"Nodes that can be rented now","example":40,"type":"integer"},"countries":{"description":"Countries of the online nodes","example":14,"type":"integer"},"online":{"description":"Nodes online","example":57,"type":"integer"},"rented":{"description":"Nodes rented","example":12,"type":"integer"}},"type":"object"},"power":{"description":"Capacity of the online nodes","properties":{"cpu_cores":{"description":"CPU cores","example":912,"type":"integer"},"disk":{"description":"Disk, bytes","example":4054816514048,"type":"integer"},"gpus":{"description":"GPUs","example":64,"type":"integer"},"gpus_rented":{"description":"Of them on rented nodes; null where not known","example":40,"nullable":true,"type":"integer"},"memory":{"description":"RAM, bytes","example":341882941440,"type":"integer"},"tflops":{"description":"FP32 TFLOPS of the GPUs","example":3250.4,"type":"number"}},"type":"object"},"render":{"properties":{"frames_24h":{"description":"Frames rendered yesterday (UTC)","example":1200,"type":"integer"},"frames_by_week":{"description":"Frames rendered per week, the last 8 weeks, latest first","items":{"properties":{"frames":{"type":"integer"},"week":{"description":"Its Monday","format":"date","type":"string"}},"type":"object"},"type":"array"},"frames_total":{"description":"Frames rendered","example":6600000,"type":"integer"}},"type":"object"},"sessions":{"properties":{"last_24h":{"description":"Sessions started in the last 24 hours","example":300,"type":"integer"},"running":{"description":"Sessions running","example":15,"type":"integer"},"total":{"description":"Sessions ever started","example":120000,"type":"integer"}},"type":"object"},"users":{"properties":{"last_24h":{"description":"Of them registered in the last 24 hours","example":40,"type":"integer"},"total":{"description":"Confirmed users","example":25000,"type":"integer"}},"type":"object"},"vpn":{"properties":{"countries":{"description":"Their countries","example":11,"type":"integer"},"nodes":{"description":"Nodes VPN is offered on","example":30,"type":"integer"}},"type":"object"}},"required":["at","nodes","power","vpn","users","sessions","render"],"title":"Network","type":"object"},"ComputeApps":{"items":{"$ref":"#/components/schemas/ComputeApp"},"title":"ComputeApps","type":"array"},"VpnMachines":{"items":{"$ref":"#/components/schemas/VpnMachine"},"title":"VpnMachines","type":"array"},"NodePrices":{"additionalProperties":false,"description":"Node prices in micro-USD and the minimum rent in minutes, at least one of them","example":{"base":250000,"min_rent_minutes":30,"traffic":1000},"minProperties":1,"properties":{"base":{"description":"Price per hour","maximum":1000000000,"minimum":100,"type":"integer"},"min_rent_minutes":{"description":"Minimum rent of a compute session, minutes; 0 = off. A session its renter ends sooner is charged base and storage for this long; not when the node goes down or the session can't be configured","maximum":60,"minimum":0,"type":"integer"},"storage":{"description":"Storage price per hour","maximum":1000000000,"minimum":0,"type":"integer"},"traffic":{"description":"Traffic price per GB","maximum":1000000000,"minimum":100,"type":"integer"}},"title":"NodePrices","type":"object"},"AccountBalance":{"properties":{"balance":{"description":"Available balance in the smallest unit of `currency` (micro-USD: 1 USD is `10^decimals`): deposits less charges, less the usage running sessions have accrued but not charged yet. Negative while a session runs past what the account has.","example":12345678,"type":"integer"},"currency":{"enum":["USD"],"example":"USD","type":"string"},"decimals":{"description":"Decimal places of `balance`: `balance / 10^decimals` is the amount in `currency`","example":6,"type":"integer"}},"required":["balance","currency","decimals"],"title":"AccountBalance","type":"object"},"unauthorizedError":{"$ref":"#/components/schemas/Error"},"MiningUsage":{"description":"Mining sessions of a role over the last days, most used first, `other` last","properties":{"algorithms":{"items":{"properties":{"gpu_hours":{"description":"Hours times GPUs, 0 for the cpu role","type":"number"},"hours":{"description":"Session hours","type":"number"},"label":{"description":"Display name, when known","nullable":true,"type":"string"},"name":{"description":"Catalogue slug, or `other`","example":"lolminer","type":"string"},"started":{"description":"Sessions that started with it, or restarted into it","type":"integer"}},"type":"object"},"type":"array"},"at":{"description":"As of, unix seconds","nullable":true,"type":"integer"},"daily":{"properties":{"dates":{"items":{"format":"date","type":"string"},"type":"array"},"miners":{"additionalProperties":{"items":{"type":"number"},"type":"array"},"description":"A value of `measure` per date, by miner","type":"object"}},"type":"object"},"days":{"type":"integer"},"from":{"format":"date","type":"string"},"measure":{"description":"What the lists are ordered by and `daily` is in","enum":["gpu_hours","hours"],"type":"string"},"miners":{"items":{"properties":{"gpu_hours":{"description":"Hours times GPUs, 0 for the cpu role","type":"number"},"hours":{"description":"Session hours","type":"number"},"label":{"description":"Display name, when known","nullable":true,"type":"string"},"name":{"description":"Catalogue slug, or `other`","example":"lolminer","type":"string"},"started":{"description":"Sessions that started with it, or restarted into it","type":"integer"}},"type":"object"},"type":"array"},"pools":{"items":{"properties":{"coins":{"example":["ETC"],"items":{"type":"string"},"type":"array"},"gpu_hours":{"description":"Hours times GPUs, 0 for the cpu role","type":"number"},"hours":{"description":"Session hours","type":"number"},"label":{"description":"Display name, when known","nullable":true,"type":"string"},"name":{"description":"Catalogue slug, or `other`","example":"lolminer","type":"string"},"started":{"description":"Sessions that started with it, or restarted into it","type":"integer"}},"type":"object"},"type":"array"},"role":{"enum":["gpu","cpu"],"type":"string"},"to":{"format":"date","type":"string"},"total":{"properties":{"gpu_hours":{"description":"Hours times GPUs, 0 for the cpu role","type":"number"},"hours":{"description":"Session hours","type":"number"},"started":{"description":"Sessions that started with it, or restarted into it","type":"integer"}},"type":"object"}},"required":["role","days","from","to","measure","total","miners","algorithms","pools","daily"],"title":"MiningUsage","type":"object"},"HostingNode":{"description":"An online node of the account","properties":{"activity":{"nullable":true,"properties":{"kind":{"enum":["verification","benchmark"],"type":"string"},"started_at":{"description":"Unix seconds","nullable":true,"type":"integer"},"step":{"example":"disk","type":"string"}},"type":"object"},"ip":{"example":"203.0.113.7","nullable":true,"type":"string"},"location":{"properties":{"city":{"type":"string"},"country":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"}},"type":"object"},"maintenance":{"description":"In maintenance now: not offered for rent. Set with `PUT /hosting/nodes/{number}/maintenance`","type":"boolean"},"number":{"description":"Public node number, as renters see it and `/hosting/nodes/{number}` takes it","example":"7KQ4-M2XD-4","type":"string"},"online_at":{"description":"When the node last connected","format":"date-time","nullable":true,"type":"string"},"osn":{"description":"Node software version","nullable":true,"type":"string"},"prices":{"description":"Micro-USD: `base` and `storage` per hour, `traffic` per GB; `min_rent_minutes` is the minimum rent of a compute session, 0 = off","properties":{"base":{"type":"integer"},"min_rent_minutes":{"type":"integer"},"storage":{"type":"integer"},"traffic":{"type":"integer"}},"type":"object"},"services":{"additionalProperties":{"properties":{"offered":{"type":"boolean"},"protocols":{"additionalProperties":{"properties":{"details":{"description":"What the check found, for the owner","type":"string"},"offered":{"type":"boolean"},"reason":{"nullable":true,"type":"string"}},"type":"object"},"type":"object"},"reason":{"nullable":true,"type":"string"}},"type":"object"},"description":"What of the services the owner enabled the node is offered for, by service; `reason` says why not, e.g. `ports_closed`. `protocols`, of an offered VPN: the same per protocol that has an end-to-end check, e.g. `vpn_probe_failed`","nullable":true,"type":"object"},"status":{"description":"`idle` can take a service, `rented` runs one, `verification` and `benchmark` are busy with checks of the network (`activity` has the step)","enum":["idle","rented","verification","benchmark","unknown"],"type":"string"},"system":{"properties":{"cpu_cores":{"nullable":true,"type":"integer"},"cpu_load_percent":{"nullable":true,"type":"number"},"cpu_model_name":{"nullable":true,"type":"string"},"disk":{"description":"Bytes","nullable":true,"properties":{"free":{"type":"integer"},"size":{"type":"integer"},"used":{"type":"integer"},"used_percent":{"type":"number"}},"type":"object"},"gpus":{"description":"GPUs as the node reports them","items":{"additionalProperties":true,"type":"object"},"type":"array"},"memory":{"description":"Bytes","nullable":true,"properties":{"free":{"type":"integer"},"size":{"type":"integer"},"used":{"type":"integer"},"used_percent":{"type":"number"}},"type":"object"},"os_version":{"example":"Ubuntu 24.04","nullable":true,"type":"string"}},"type":"object"},"uptime":{"description":"Seconds since the machine booted; the online share is `uptime_percent`","nullable":true,"type":"integer"},"uptime_percent":{"description":"Percent of the time the node was online over the last 30 days, or since it first came online if that is later; 97 and more shows as 100","example":99.2,"nullable":true,"type":"number"},"verified":{"description":"Passed verification; null when it is not known yet","nullable":true,"type":"boolean"}},"required":["number","status","system","location","prices"],"title":"HostingNode","type":"object"},"ComputeBatchRequest":{"description":"Several rental requests; `id` is chosen by the client and echoed in the result","items":{"additionalProperties":false,"properties":{"app":{"description":"Application UUID","example":"8cff9a6f-4b7d-42cd-8f74-e92148c6781c","format":"uuid","type":"string"},"args":{"description":"Arguments for the entrypoint, the image's own or `entrypoint`; replaces the image's CMD. Up to 4 KiB, one line, split like `entrypoint`. Empty or absent: the image's CMD, unless `entrypoint` is set.","example":"--model meta-llama/Llama-3.1-8B-Instruct --max-model-len 8192","maxLength":4096,"type":"string"},"disk_size":{"default":1,"description":"Disk size to allocate in GB","example":4,"minimum":1,"type":"integer"},"entrypoint":{"description":"Replaces the image's ENTRYPOINT, up to 4 KiB, one line. The image's CMD is dropped with it, so without `args` this is the whole command the container runs. Empty or absent: the image's own ENTRYPOINT. Split into arguments like a shell command line: quotes and backslashes group and escape, but nothing is expanded (`$VAR`, `*`, `&&` are passed as is; use `sh -c '...'` for those).","example":"python app.py --name \"my app\"","maxLength":4096,"type":"string"},"envs":{"$ref":"#/components/schemas/UserEnvs"},"fm":{"description":"Start a web file manager (FileBrowser Quantum); its URL is `fm` in the session. It runs as the image's USER over that user's home, or as root over the whole container filesystem when the image sets no USER. Works in any image, with or without `ssh`. No login: whoever has the URL has the files. If it cannot be started the session goes on without it and its system log says why. Not available for VM apps. Absent: the app's setting, off without an app.","example":true,"type":"boolean"},"http_ports":{"description":"List of HTTP ports to expose, 0 is ignored; 7681 and 7682 are reserved","items":{"maximum":65535,"minimum":0,"type":"integer"},"maxItems":10,"type":"array"},"id":{"description":"Client-side request id","example":1},"image":{"description":"Image name","example":"ubuntu:24.04","maxLength":512,"type":"string"},"node_number":{"description":"Machine number from the listing; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","type":"string"},"ports":{"description":"List of TCP/UDP ports to expose, 0 and 22 (ssh is always exposed) are ignored","items":{"maximum":65535,"minimum":0,"type":"integer"},"type":"array"},"ssh":{"description":"Set up access to the container: a web terminal, and SSH through the proxy and directly to the node when the account has an SSH key. Both log in as the image's USER (with sudo), root when the image sets none; `user` in the session's `ssh` endpoints says which. Takes extra time at start: packages are installed in the container, which needs bash and apt-get, dnf, yum or zypper, or apk (Alpine, bash is installed too). If the setup fails the session is stopped and its system log says why. Absent: the app's setting, off without an app.","example":true,"type":"boolean"},"startup_script":{"description":"Script run inside the container as root once it is up, in the background, up to 64 KiB: with bash when the image has it, with sh otherwise. Its output goes to `/var/log/onstart.log` (`/tmp/onstart.log` when `/var/log` is not writable); the session's system log tells whether it started. It runs alongside the container's command, not before it: preparation the command depends on belongs in `entrypoint`.","example":"apt-get update && apt-get install -y htop","maxLength":65536,"type":"string"},"volume":{"additionalProperties":false,"description":"A persistent volume of the account to mount into the container. Its data outlives the session and is there again in the next one it is attached to. A volume is attached to one session at a time; a new volume is formatted (ext4) on its first attach. If it cannot be attached the session does not start and its system log says why. Not available for VM apps.","properties":{"id":{"description":"The volume","format":"uuid","type":"string"},"mount":{"description":"Where to mount it in the container: an absolute path outside the system directories. `/data` when absent.","example":"/data","type":"string"}},"required":["id"],"type":"object"}},"required":["id","node_number","image"],"type":"object"},"title":"ComputeBatchRequest","type":"array"},"GpuHistory":{"additionalProperties":{"properties":{"available_price":{"description":"Listing prices, micro-USD per GPU-hour","properties":{"p10":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p25":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p50":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p75":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p90":{"items":{"nullable":true,"type":"integer"},"type":"array"}},"type":"object"},"rented_price":{"description":"What renters paid, micro-USD per GPU-hour","properties":{"p10":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p25":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p50":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p75":{"items":{"nullable":true,"type":"integer"},"type":"array"},"p90":{"items":{"nullable":true,"type":"integer"},"type":"array"}},"type":"object"},"supply_demand":{"properties":{"available":{"items":{"type":"number"},"type":"array"},"rented":{"items":{"type":"number"},"type":"array"},"total":{"items":{"type":"number"},"type":"array"}},"type":"object"},"tflops":{"nullable":true,"type":"number"},"timestamps":{"description":"Start of each step, unix seconds","items":{"type":"integer"},"type":"array"}},"type":"object"},"description":"The GPU market over time, by model: parallel arrays, a value per timestamp, each the average over its step","title":"GpuHistory","type":"object"},"ComputeMachines":{"items":{"$ref":"#/components/schemas/ComputeMachine"},"title":"ComputeMachines","type":"array"},"BatchResult":{"description":"Results in request order","items":{"properties":{"id":{"description":"Client-side request id","example":1},"reason":{"description":"Error when failed","example":"Insufficient balance","type":"string"},"status":{"description":"0 - started, 1 - failed","enum":[0,1],"type":"integer"},"uuid":{"description":"Session uuid when started","type":"string"}},"required":["id","status"],"type":"object"},"title":"BatchResult","type":"array"},"GpuCurrent":{"description":"The GPU market now, per model. Counted in GPUs: a node of four cards counts four, rented together","properties":{"at":{"description":"As of, unix seconds","nullable":true,"type":"integer"},"gpus":{"description":"Most GPUs first","items":{"properties":{"ai_score":{"description":"Median AI score of one GPU, 0: none measured","type":"integer"},"available":{"description":"GPUs that can be rented now","type":"integer"},"available_price":{"description":"Listing prices of the available GPUs","example":{"p10":300000,"p25":350000,"p50":400000,"p75":450000,"p90":520000},"properties":{"p10":{"nullable":true,"type":"integer"},"p25":{"nullable":true,"type":"integer"},"p50":{"nullable":true,"type":"integer"},"p75":{"nullable":true,"type":"integer"},"p90":{"nullable":true,"type":"integer"}},"type":"object"},"memory_mb":{"description":"Video memory of one GPU, MiB: the size most GPUs of the model have (variants of a model differ). Null when none reported it","example":24564,"nullable":true,"type":"integer"},"model":{"example":"NVIDIA GeForce RTX 4090","type":"string"},"rented":{"description":"GPUs rented","type":"integer"},"rented_price":{"description":"What renters pay for the rented GPUs","example":{"p10":300000,"p25":350000,"p50":400000,"p75":450000,"p90":520000},"properties":{"p10":{"nullable":true,"type":"integer"},"p25":{"nullable":true,"type":"integer"},"p50":{"nullable":true,"type":"integer"},"p75":{"nullable":true,"type":"integer"},"p90":{"nullable":true,"type":"integer"}},"type":"object"},"tflops":{"description":"FP32 TFLOPS of one GPU","nullable":true,"type":"number"},"tflops_per_dollar":{"description":"TFLOPS per dollar of an hour at the median available price","nullable":true,"type":"number"},"total":{"description":"GPUs online","type":"integer"},"usage":{"description":"Percent of the GPUs rented","type":"number"},"usage_30d":{"description":"The same over the last 30 days","nullable":true,"type":"number"}},"type":"object"},"type":"array"}},"required":["at","gpus"],"title":"GpuCurrent","type":"object"},"NetworkHistory":{"description":"The platform over time: parallel arrays, a value per timestamp, each the average over its step. Steps with no data are left out","properties":{"countries":{"description":"Countries of the online nodes","items":{"nullable":true,"type":"number"},"type":"array"},"gpus":{"description":"GPUs online","items":{"nullable":true,"type":"number"},"type":"array"},"gpus_rented":{"description":"GPUs on rented nodes; null where not known","items":{"nullable":true,"type":"number"},"type":"array"},"nodes_available":{"description":"Nodes that could be rented","items":{"nullable":true,"type":"number"},"type":"array"},"nodes_online":{"description":"Nodes online","items":{"nullable":true,"type":"number"},"type":"array"},"nodes_rented":{"description":"Nodes rented","items":{"nullable":true,"type":"number"},"type":"array"},"sessions_24h":{"description":"Sessions started in the 24 hours before","items":{"nullable":true,"type":"number"},"type":"array"},"sessions_running":{"description":"Sessions running","items":{"nullable":true,"type":"number"},"type":"array"},"tflops":{"description":"FP32 TFLOPS of the GPUs online","items":{"nullable":true,"type":"number"},"type":"array"},"timestamps":{"description":"Start of each step, unix seconds","items":{"type":"integer"},"type":"array"},"users":{"description":"Confirmed users","items":{"nullable":true,"type":"number"},"type":"array"},"vpn_nodes":{"description":"Nodes VPN is offered on","items":{"nullable":true,"type":"number"},"type":"array"}},"required":["timestamps","nodes_online","gpus","gpus_rented","tflops","sessions_running"],"title":"NetworkHistory","type":"object"},"RenderMachine":{"description":"Node available for render: an NVIDIA GPU with a Blender score","properties":{"base_price":{"description":"Price per hour of rent, micro-USD; render is billed by time only","example":100000,"type":"integer"},"blender_score":{"description":"GPU performance on Blender benchmark: the OptiX score, the CUDA one when there is none","example":17995,"type":"integer"},"city":{"description":"City where machine hosted","example":"North Bergen","type":"string"},"country":{"description":"Country where machine hosted","example":"United States","nullable":true,"type":"string"},"cpu_cores":{"description":"Amount of CPU cores available on machine","example":32,"type":"integer"},"cpu_model_name":{"description":"CPU model name","example":"Intel(R) Xeon(R) CPU E5-1607 v4 @ 3.10GHz","type":"string"},"cuda_version":{"description":"CUDA version","example":"12.4","nullable":true,"type":"string"},"disk":{"description":"Free disk space, bytes","example":1148521938944,"type":"integer"},"gpu_vendor":{"description":"GPU vendor","example":"nvidia","nullable":true,"type":"string"},"gpus":{"description":"GPUs installed on machine","items":{"$ref":"#/components/schemas/GpuNvidia"},"type":"array"},"memory":{"description":"Free memory, bytes","example":129108070400,"type":"integer"},"min_rent_minutes":{"description":"Minimum rent, minutes; 0 = none. A session stopped sooner is charged base and storage for this long","example":30,"type":"integer"},"net_down_mbps":{"description":"Network download speed, Mbit/s; 0 if not measured","example":940,"type":"integer"},"net_up_mbps":{"description":"Network upload speed, Mbit/s; 0 if not measured","example":920,"type":"integer"},"node_number":{"description":"Machine number: 8 Crockford base32 symbols and a check symbol","example":"7KQ4-M2XD-4","type":"string"},"reliability":{"additionalProperties":true,"description":"Node reliability: `uptime`, percent of the time online over the last 30 days (since it first came online for a newer node), and session stability when known","type":"object"}},"title":"RenderMachine","type":"object"},"ComputeRequest":{"additionalProperties":false,"description":"Unknown fields are refused with 400.","properties":{"app":{"description":"Application UUID","example":"8cff9a6f-4b7d-42cd-8f74-e92148c6781c","format":"uuid","type":"string"},"args":{"description":"Arguments for the entrypoint, the image's own or `entrypoint`; replaces the image's CMD. Up to 4 KiB, one line, split like `entrypoint`. Empty or absent: the image's CMD, unless `entrypoint` is set.","example":"--model meta-llama/Llama-3.1-8B-Instruct --max-model-len 8192","maxLength":4096,"type":"string"},"disk_size":{"default":1,"description":"Disk size to allocate in GB","example":4,"minimum":1,"type":"integer"},"entrypoint":{"description":"Replaces the image's ENTRYPOINT, up to 4 KiB, one line. The image's CMD is dropped with it, so without `args` this is the whole command the container runs. Empty or absent: the image's own ENTRYPOINT. Split into arguments like a shell command line: quotes and backslashes group and escape, but nothing is expanded (`$VAR`, `*`, `&&` are passed as is; use `sh -c '...'` for those).","example":"python app.py --name \"my app\"","maxLength":4096,"type":"string"},"envs":{"$ref":"#/components/schemas/UserEnvs"},"fm":{"description":"Start a web file manager (FileBrowser Quantum); its URL is `fm` in the session. It runs as the image's USER over that user's home, or as root over the whole container filesystem when the image sets no USER. Works in any image, with or without `ssh`. No login: whoever has the URL has the files. If it cannot be started the session goes on without it and its system log says why. Not available for VM apps. Absent: the app's setting, off without an app.","example":true,"type":"boolean"},"http_ports":{"description":"List of HTTP ports to expose, 0 is ignored; 7681 and 7682 are reserved","items":{"maximum":65535,"minimum":0,"type":"integer"},"maxItems":10,"type":"array"},"image":{"description":"Image name","example":"ubuntu:24.04","maxLength":512,"type":"string"},"node_number":{"description":"Machine number from the listing; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","type":"string"},"ports":{"description":"List of TCP/UDP ports to expose, 0 and 22 (ssh is always exposed) are ignored","items":{"maximum":65535,"minimum":0,"type":"integer"},"type":"array"},"ssh":{"description":"Set up access to the container: a web terminal, and SSH through the proxy and directly to the node when the account has an SSH key. Both log in as the image's USER (with sudo), root when the image sets none; `user` in the session's `ssh` endpoints says which. Takes extra time at start: packages are installed in the container, which needs bash and apt-get, dnf, yum or zypper, or apk (Alpine, bash is installed too). If the setup fails the session is stopped and its system log says why. Absent: the app's setting, off without an app.","example":true,"type":"boolean"},"startup_script":{"description":"Script run inside the container as root once it is up, in the background, up to 64 KiB: with bash when the image has it, with sh otherwise. Its output goes to `/var/log/onstart.log` (`/tmp/onstart.log` when `/var/log` is not writable); the session's system log tells whether it started. It runs alongside the container's command, not before it: preparation the command depends on belongs in `entrypoint`.","example":"apt-get update && apt-get install -y htop","maxLength":65536,"type":"string"},"volume":{"additionalProperties":false,"description":"A persistent volume of the account to mount into the container. Its data outlives the session and is there again in the next one it is attached to. A volume is attached to one session at a time; a new volume is formatted (ext4) on its first attach. If it cannot be attached the session does not start and its system log says why. Not available for VM apps.","properties":{"id":{"description":"The volume","format":"uuid","type":"string"},"mount":{"description":"Where to mount it in the container: an absolute path outside the system directories. `/data` when absent.","example":"/data","type":"string"}},"required":["id"],"type":"object"}},"required":["node_number","image"],"title":"ComputeRequest","type":"object"},"VpnMachine":{"additionalProperties":false,"description":"Unknown fields are refused with 400.","properties":{"city":{"type":"string"},"country":{"nullable":true,"type":"string"},"country_iso":{"nullable":true,"type":"string"},"latitude":{"nullable":true,"type":"number"},"longitude":{"nullable":true,"type":"number"},"net_down_mbps":{"type":"number"},"net_up_mbps":{"type":"number"},"node_number":{"example":"7KQ4-M2XD-4","type":"string"},"protocols":{"description":"Protocols that passed the end-to-end check on this node, at least one","items":{"enum":["wg","reality","awg","http_proxy"],"type":"string"},"type":"array"},"residential":{"description":"The node's address is believed to be assigned to a residence","type":"boolean"},"traffic_price":{"description":"micro-USD per GB","type":"integer"}},"required":["node_number","traffic_price","protocols"],"title":"VpnMachine","type":"object"},"VpnRequest":{"additionalProperties":false,"description":"Unknown fields are refused with 400.","properties":{"node_number":{"example":"7KQ4-M2XD-4","type":"string"},"subkind":{"description":"Protocol; the node must have passed its end-to-end check for it (`protocols` in the listing). `v2ray`, `ss` and `openvpn` are no longer offered.","enum":["wg","http_proxy","reality","awg"],"type":"string"}},"required":["node_number","subkind"],"title":"VpnRequest","type":"object"},"ComputeRestartRequest":{"additionalProperties":false,"description":"New parameters of a session, replacing the ones it was started with; an empty object keeps them. The node, the image and the app cannot be changed. Unknown fields are refused with 400.","properties":{"args":{"description":"Arguments for the entrypoint, the image's own or `entrypoint`; replaces the image's CMD. Up to 4 KiB, one line, split like `entrypoint`. Empty or absent: the image's CMD, unless `entrypoint` is set.","example":"--model meta-llama/Llama-3.1-8B-Instruct --max-model-len 8192","maxLength":4096,"type":"string"},"disk_size":{"default":1,"description":"Disk size to allocate in GB","example":4,"minimum":1,"type":"integer"},"entrypoint":{"description":"Replaces the image's ENTRYPOINT, up to 4 KiB, one line. The image's CMD is dropped with it, so without `args` this is the whole command the container runs. Empty or absent: the image's own ENTRYPOINT. Split into arguments like a shell command line: quotes and backslashes group and escape, but nothing is expanded (`$VAR`, `*`, `&&` are passed as is; use `sh -c '...'` for those).","example":"python app.py --name \"my app\"","maxLength":4096,"type":"string"},"envs":{"$ref":"#/components/schemas/UserEnvs"},"fm":{"description":"Start a web file manager (FileBrowser Quantum); its URL is `fm` in the session. It runs as the image's USER over that user's home, or as root over the whole container filesystem when the image sets no USER. Works in any image, with or without `ssh`. No login: whoever has the URL has the files. If it cannot be started the session goes on without it and its system log says why. Not available for VM apps. Absent: the app's setting, off without an app.","example":true,"type":"boolean"},"http_ports":{"description":"List of HTTP ports to expose, 0 is ignored; 7681 and 7682 are reserved","items":{"maximum":65535,"minimum":0,"type":"integer"},"maxItems":10,"type":"array"},"ports":{"description":"List of TCP/UDP ports to expose, 0 and 22 (ssh is always exposed) are ignored","items":{"maximum":65535,"minimum":0,"type":"integer"},"type":"array"},"ssh":{"description":"Set up access to the container: a web terminal, and SSH through the proxy and directly to the node when the account has an SSH key. Both log in as the image's USER (with sudo), root when the image sets none; `user` in the session's `ssh` endpoints says which. Takes extra time at start: packages are installed in the container, which needs bash and apt-get, dnf, yum or zypper, or apk (Alpine, bash is installed too). If the setup fails the session is stopped and its system log says why. Absent: the app's setting, off without an app.","example":true,"type":"boolean"},"startup_script":{"description":"Script run inside the container as root once it is up, in the background, up to 64 KiB: with bash when the image has it, with sh otherwise. Its output goes to `/var/log/onstart.log` (`/tmp/onstart.log` when `/var/log` is not writable); the session's system log tells whether it started. It runs alongside the container's command, not before it: preparation the command depends on belongs in `entrypoint`.","example":"apt-get update && apt-get install -y htop","maxLength":65536,"type":"string"},"volume":{"additionalProperties":false,"description":"A persistent volume of the account to mount into the container. Its data outlives the session and is there again in the next one it is attached to. A volume is attached to one session at a time; a new volume is formatted (ext4) on its first attach. If it cannot be attached the session does not start and its system log says why. Not available for VM apps.","properties":{"id":{"description":"The volume","format":"uuid","type":"string"},"mount":{"description":"Where to mount it in the container: an absolute path outside the system directories. `/data` when absent.","example":"/data","type":"string"}},"required":["id"],"type":"object"}},"title":"ComputeRestartRequest","type":"object"},"GpuLocation":{"description":"GPUs of a model in a city","properties":{"city":{"example":"Berlin","type":"string"},"country":{"example":"Germany","type":"string"},"gpus":{"type":"integer"},"latitude":{"nullable":true,"type":"number"},"longitude":{"nullable":true,"type":"number"},"model":{"example":"NVIDIA GeForce RTX 4090","type":"string"},"rented":{"type":"integer"},"verified":{"description":"Of them on verified nodes","type":"integer"}},"title":"GpuLocation","type":"object"},"RenderSession":{"description":"A running render session","properties":{"app_logo":{"nullable":true,"type":"string"},"app_name":{"nullable":true,"type":"string"},"base_price":{"description":"Price per hour of rent at start, micro-USD; null while starting","example":100000,"nullable":true,"type":"integer"},"charge_amount":{"description":"Charged so far, micro-USD","type":"integer"},"duration":{"description":"Seconds since start","type":"integer"},"node_hw":{"description":"Node hardware at start; null while the session is starting","nullable":true,"properties":{"cpu_cores":{"nullable":true,"type":"integer"},"gpus":{"items":{"properties":{"mem_total_mb":{"nullable":true,"type":"integer"},"model":{"nullable":true,"type":"string"}},"type":"object"},"type":"array"},"total_memory":{"description":"Bytes","nullable":true,"type":"integer"}},"type":"object"},"node_number":{"example":"7KQ4-M2XD-4","nullable":true,"type":"string"},"progress":{"description":"Current configuration step","example":"Service configured","nullable":true,"type":"string"},"pull_percent":{"description":"Image pull progress, percent, while the image is being pulled; null otherwise","example":42,"maximum":100,"minimum":0,"nullable":true,"type":"integer"},"service":{"enum":["render"],"type":"string"},"started_at":{"description":"Unix time, milliseconds","example":1792001595847,"nullable":true,"type":"integer"},"status":{"description":"starting while the session is being configured","enum":["starting","ready"],"type":"string"},"uuid":{"example":"96e33710-ec12-11ed-8588-fa163e49e8aa","type":"string"}},"required":["service","uuid","status","duration"],"title":"RenderSession","type":"object"},"SessionLogs":{"properties":{"container":{"description":"Latest container output, up to 1 MiB from the end; null when the node cannot be reached","nullable":true,"type":"string"},"container_truncated":{"description":"The output was cut to its last 1 MiB, starting at a whole line","type":"boolean"},"system":{"description":"Platform events of the session, oldest first","items":{"properties":{"msg":{"example":"Pull ubuntu:24.04","type":"string"},"ts":{"description":"Unix time, milliseconds","example":1792001595847,"nullable":true,"type":"integer"}},"type":"object"},"type":"array"}},"required":["system","container","container_truncated"],"title":"SessionLogs","type":"object"},"RenderRequest":{"additionalProperties":false,"description":"The node runs the render node for the account until stopped. Fields of the previous API (`node_id`, `disk_size`, `subkind`, `envs`, `multi-gpu-worker`) and unknown fields are refused with 400.","properties":{"node_number":{"description":"Node number from the listing; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","type":"string"}},"required":["node_number"],"title":"RenderRequest","type":"object"}},"securitySchemes":{"bearerAuth":{"scheme":"bearer","type":"http"}}},"info":{"description":"### Identifiers\n\nPaths name sessions by `{uuid}` and nodes by `{number}`.\n\n**`uuid`: a service session.** A UUID, `96e33710-ec12-11ed-8588-fa163e49e8aa`, any case.\nIt is returned as `uuid` when a service starts (`POST /services/compute`, `POST /services/render`,\n`POST /services/vpn`) and listed by `GET /sessions`. It names one session (one start of a service)\nand is taken by `/services/{uuid}/info`, `/logs`, `/stop` and `/services/compute/{uuid}/restart`.\nOnly sessions of the account behind the token are found: another account's session is 404,\nthe same as one that does not exist or has ended.\nThe `app` of a compute service is a UUID too, but of an application from `GET /compute/apps`,\nnot of a session.\n\n**`number`: a node.** The public node number, `7KQ4-M2XD-4`: 8 Crockford base32 symbols and\na check symbol that catches a typo. Case, dashes and spaces are ignored, `O` reads as `0`,\n`I` and `L` as `1`, so `7kq4m2xd4` is the same node. A malformed number or a wrong check symbol\nis 400. Renters see it as `node_number` in the machine listings (`GET /services/compute`,\n`/services/render`, `/services/vpn`) and pass it to start a service there. Node owners get it\nfrom `GET /hosting/nodes`, and `/hosting/nodes/{number}` finds only the account's own online\nnodes: any other number is 404. A number stays with the node for its whole life.\n\n### Rate limits\n\n- Without a token: 60 requests per 60 s, per IP\n- With a token: 300 requests per 60 s, per account\n- Starting or restarting a service (`POST /services/compute`, `POST /services/render`, `POST /services/compute/{uuid}/restart`): 10 requests per 60 s, per account\n\nEvery response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds).\nOver the limit the API answers 429 with `Retry-After`.\n\n### Amounts\n\nPrices, charges and balances are integers in micro-USD: 1 = $0.000001, 1 USD = 1000000.\n","title":"API Reference","version":"1.0"},"openapi":"3.0.0","paths":{"/accounts/balance":{"get":{"callbacks":{},"deprecated":false,"description":"Available balance of the account. A charge or a deposit may show up with a short delay.","operationId":"account_balance","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBalance"}}},"description":"Balance"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Account balance","tags":["Account"]}},"/compute/apps":{"get":{"callbacks":{},"deprecated":false,"description":"Official apps and the account's own apps.","operationId":"compute_apps","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeApps"}}},"description":"Apps"},"401":{"content":{"application/json":{"example":{"message":"Invalid bearer token"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{},{"bearerAuth":[]}],"summary":"Apps to start a compute service from","tags":["Compute"]}},"/hosting/nodes":{"get":{"callbacks":{},"deprecated":false,"description":"Online nodes of the account. A node that is down is not listed.","operationId":"hosting_nodes","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/HostingNode"},"type":"array"}}},"description":"Nodes"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"List online nodes","tags":["Hosting"]}},"/hosting/nodes/{number}":{"get":{"callbacks":{},"deprecated":false,"description":"One online node of the account. A node that is down, does not exist or belongs to another account is 404.","operationId":"hosting_node","parameters":[{"description":"Node number from `GET /hosting/nodes`; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","in":"path","name":"number","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingNode"}}},"description":"Node"},"400":{"content":{"application/json":{"example":{"message":"Invalid node number"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid node number"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Node not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Node not found"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Get a node","tags":["Hosting"]}},"/hosting/nodes/{number}/maintenance":{"delete":{"callbacks":{},"deprecated":false,"description":"Offers the node for rent again. Repeating it changes nothing.","operationId":"hosting_node_maintenance_off","parameters":[{"description":"Node number from `GET /hosting/nodes`; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","in":"path","name":"number","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Node is out of maintenance"},"400":{"content":{"application/json":{"example":{"message":"Invalid node number"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid node number"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Node not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Node not found"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Take node out of maintenance","tags":["Hosting"]},"put":{"callbacks":{},"deprecated":false,"description":"Takes the node off rent until maintenance is turned off: it is not offered for new rentals, running sessions go on and their renters are notified. Works for a node that is offline too. Repeating it changes nothing.","operationId":"hosting_node_maintenance_on","parameters":[{"description":"Node number from `GET /hosting/nodes`; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","in":"path","name":"number","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Node is in maintenance"},"400":{"content":{"application/json":{"example":{"message":"Invalid node number"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid node number"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Node not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Node not found"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Put node in maintenance","tags":["Hosting"]}},"/hosting/nodes/{number}/prices":{"patch":{"callbacks":{},"deprecated":false,"description":"Sets only the prices given, the others stay as they are. Prices are in micro-USD: `base` and `storage` per hour, `traffic` per GB. `min_rent_minutes` is the minimum rent of a compute session, 0..60 minutes, 0 = off.","operationId":"hosting_node_prices","parameters":[{"description":"Node number from `GET /hosting/nodes`; case, dashes and spaces are ignored, O reads as 0, I and L as 1","example":"7KQ4-M2XD-4","in":"path","name":"number","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodePrices"}}},"required":true},"responses":{"204":{"description":"Prices are set"},"400":{"content":{"application/json":{"examples":{"Invalid node number":{"value":{"message":"Invalid node number"}},"Malformed JSON body":{"value":{"message":"Malformed JSON body"}},"base must be an integer between 100 and 1000000000":{"value":{"message":"base must be an integer between 100 and 1000000000"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid node number or prices"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Node not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Node not found"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Set node prices","tags":["Hosting"]}},"/network":{"get":{"callbacks":{},"deprecated":false,"description":"Nodes, capacity, users, sessions and rendered frames of the platform now.","operationId":"network_info","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Network"}}},"description":"Network information"},"503":{"content":{"application/json":{"example":{"message":"Network information is unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[],"summary":"Network information","tags":["Network"]}},"/network/history":{"get":{"callbacks":{},"deprecated":false,"description":"Nodes, GPUs, TFLOPS, users and sessions of the platform over time, a point per `step`: the average over it.","operationId":"network_history","parameters":[{"description":"Unix seconds; a day before `end` by default","in":"query","name":"start","required":false,"schema":{"minimum":0,"type":"integer"}},{"description":"Unix seconds; now by default","in":"query","name":"end","required":false,"schema":{"minimum":0,"type":"integer"}},{"description":"Seconds between points, at least 300; at most 2000 points","in":"query","name":"step","required":false,"schema":{"default":3600,"minimum":300,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkHistory"}}},"description":"Network over time"},"400":{"content":{"application/json":{"examples":{"Too many points: use a larger step":{"value":{"message":"Too many points: use a larger step"}},"start must be before end":{"value":{"message":"start must be before end"}},"step must be at least 300 seconds":{"value":{"message":"step must be at least 300 seconds"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid parameters"},"503":{"content":{"application/json":{"example":{"message":"Network information is unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[],"summary":"Network over time","tags":["Network"]}},"/services/compute":{"get":{"callbacks":{},"deprecated":false,"description":"Authentication is optional.","operationId":"compute_machines","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeMachines"}}},"description":"Machines"},"401":{"content":{"application/json":{"example":{"message":"Invalid bearer token"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{},{"bearerAuth":[]}],"summary":"Get available machines for rent","tags":["Compute"]},"post":{"callbacks":{},"deprecated":false,"description":"Accepts a single request or a batch (array) of requests.","operationId":"compute_start","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ComputeRequest"},{"$ref":"#/components/schemas/ComputeBatchRequest"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}},"description":"Batch results"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUuid"}}},"description":"Service started"},"400":{"content":{"application/json":{"examples":{"Insufficient balance":{"value":{"message":"Insufficient balance"}},"Malformed JSON body":{"value":{"message":"Malformed JSON body"}},"Node not available":{"value":{"message":"Node not available"}},"image is required":{"value":{"message":"image is required"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request or requirements not met"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Start compute service","tags":["Compute"]}},"/services/compute/{uuid}/restart":{"post":{"callbacks":{},"deprecated":false,"description":"Recreates the session's container on the same node, which stays rented meanwhile. The body is a start request without `node_number`, `image` and `app`, which the session keeps, and replaces the rest of the session's parameters; an empty body or `{}` recreates the container with the parameters it was started with. The session keeps its uuid and its prices. The session is charged as usual while it restarts: the time, and the traffic its old container counted. If the new parameters cannot be set up, the session stops. A session can be restarted once in 5 minutes and 6 times an hour (429 with `Retry-After` otherwise). Asynchronous: 202 means the restart is under way, the session info shows its progress.","operationId":"compute_restart","parameters":[{"description":"Session uuid","example":"96e33710-ec12-11ed-8588-fa163e49e8aa","in":"path","name":"uuid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRestartRequest"}}},"required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUuid"}}},"description":"Session is restarting"},"400":{"content":{"application/json":{"examples":{"Invalid session uuid":{"value":{"message":"Invalid session uuid"}},"Malformed JSON body":{"value":{"message":"Malformed JSON body"}},"Request body must be a JSON object":{"value":{"message":"Request body must be a JSON object"}},"image cannot be changed by a restart":{"value":{"message":"image cannot be changed by a restart"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request or requirements not met"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Session not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Session not found"},"409":{"content":{"application/json":{"example":{"message":"Session is still starting or restarting"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Session is still starting or restarting"},"429":{"content":{"application/json":{"examples":{"Session was restarted too recently, retry in 30 seconds":{"value":{"message":"Session was restarted too recently, retry in 30 seconds"}},"Too many requests":{"value":{"message":"Too many requests"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests, or the session was restarted too recently"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Restart compute service","tags":["Compute"]}},"/services/render":{"get":{"callbacks":{},"deprecated":false,"description":"Nodes with an NVIDIA GPU and a Blender score. Authentication is optional.","operationId":"render_machines","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderMachines"}}},"description":"Nodes"},"401":{"content":{"application/json":{"example":{"message":"Invalid bearer token"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{},{"bearerAuth":[]}],"summary":"Get available render nodes","tags":["Render"]},"post":{"callbacks":{},"deprecated":false,"description":"Accepts a single request or a batch (array) of requests. The session is billed by the hour (`base_price`) until stopped with `POST /services/{uuid}/stop`.","operationId":"render_start","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RenderRequest"},{"$ref":"#/components/schemas/RenderBatchRequest"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}},"description":"Batch results"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUuid"}}},"description":"Service started"},"400":{"content":{"application/json":{"examples":{"Insufficient balance":{"value":{"message":"Insufficient balance"}},"Malformed JSON body":{"value":{"message":"Malformed JSON body"}},"Node not available":{"value":{"message":"Node not available"}},"node_number is required":{"value":{"message":"node_number is required"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request or requirements not met"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Start render service","tags":["Render"]}},"/services/vpn":{"get":{"callbacks":{},"deprecated":false,"description":"Authentication is optional.","operationId":"vpn_machines","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnMachines"}}},"description":"Nodes"},"401":{"content":{"application/json":{"example":{"message":"Invalid bearer token"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{},{"bearerAuth":[]}],"summary":"Get nodes offered for VPN","tags":["VPN"]},"post":{"callbacks":{},"deprecated":false,"description":"Billed by traffic until stopped with `POST /services/{uuid}/stop`. The client's config is `config` of `GET /services/{uuid}/info`, once the session is ready.","operationId":"vpn_start","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VpnRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUuid"}}},"description":"Service started"},"400":{"content":{"application/json":{"examples":{"Insufficient balance":{"value":{"message":"Insufficient balance"}},"Malformed JSON body":{"value":{"message":"Malformed JSON body"}},"Node not available":{"value":{"message":"Node not available"}},"Node's VPN did not pass the connection check":{"value":{"message":"Node's VPN did not pass the connection check"}},"node_number is required":{"value":{"message":"node_number is required"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request or requirements not met"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Start VPN service","tags":["VPN"]}},"/services/{uuid}/info":{"get":{"callbacks":{},"deprecated":false,"description":"Running sessions only: a stopped one is 404. Told apart by `service`.","operationId":"service_info","parameters":[{"description":"Session uuid","example":"96e33710-ec12-11ed-8588-fa163e49e8aa","in":"path","name":"uuid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ComputeSession"},{"$ref":"#/components/schemas/RenderSession"},{"$ref":"#/components/schemas/VpnSession"}]}}},"description":"Session"},"400":{"content":{"application/json":{"example":{"message":"Invalid session uuid"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid session uuid"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Session not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Session not found"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Get running session","tags":["Services"]}},"/services/{uuid}/logs":{"get":{"callbacks":{},"deprecated":false,"description":"The system log and the latest container output, up to 1 MiB from the end.  Running compute sessions only: a stopped one is 404.","operationId":"service_logs","parameters":[{"description":"Session uuid","example":"96e33710-ec12-11ed-8588-fa163e49e8aa","in":"path","name":"uuid","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Number of the latest container log lines","in":"query","name":"tail","required":false,"schema":{"default":200,"maximum":1000,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionLogs"}}},"description":"Logs"},"400":{"content":{"application/json":{"examples":{"Invalid session uuid":{"value":{"message":"Invalid session uuid"}},"tail must be 1..1000":{"value":{"message":"tail must be 1..1000"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid session uuid or tail"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Session not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Session not found"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Get running session logs","tags":["Services"]}},"/services/{uuid}/stop":{"post":{"callbacks":{},"deprecated":false,"description":"Asynchronous: 202 means the session is stopping. Stopping a session that is already stopping is 202 again.","operationId":"service_stop","parameters":[{"description":"Session uuid","example":"96e33710-ec12-11ed-8588-fa163e49e8aa","in":"path","name":"uuid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUuid"}}},"description":"Session is stopping"},"400":{"content":{"application/json":{"example":{"message":"Invalid session uuid"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid session uuid"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"404":{"content":{"application/json":{"example":{"message":"Session not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Session not found"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"Stop service session","tags":["Services"]}},"/sessions":{"get":{"callbacks":{},"deprecated":false,"description":"Running sessions of the account, oldest first; each as `GET /services/{uuid}/info` gives it, told apart by `service`. Stopped sessions are not listed. Compute and render sessions only for now.","operationId":"service_list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"oneOf":[{"$ref":"#/components/schemas/ComputeSession"},{"$ref":"#/components/schemas/RenderSession"},{"$ref":"#/components/schemas/VpnSession"}]},"type":"array"}}},"description":"Sessions"},"401":{"content":{"application/json":{"examples":{"Invalid bearer token":{"value":{"message":"Invalid bearer token"}},"Missing bearer token":{"value":{"message":"Missing bearer token"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or invalid bearer token"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Service is temporarily unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Backend is unavailable"}},"security":[{"bearerAuth":[]}],"summary":"List running sessions","tags":["Services"]}},"/stats/gpu/current":{"get":{"callbacks":{},"deprecated":false,"description":"Supply, demand and prices of GPUs on the platform now, per model. Prices are per GPU-hour, of the rented GPUs and of those on offer, and only of nodes whose GPUs are all of one model.","operationId":"stats_gpu_current","parameters":[{"description":"GPUs of verified nodes (`yes`), of the others (`no`) or all","in":"query","name":"verified","required":false,"schema":{"default":"all","enum":["all","yes","no"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GpuCurrent"}}},"description":"GPU market"},"400":{"content":{"application/json":{"example":{"message":"verified must be one of yes, no, all"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid parameter"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Statistics are unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Statistics are unavailable"}},"security":[],"summary":"GPU market now","tags":["Statistics"]}},"/stats/gpu/history":{"get":{"callbacks":{},"deprecated":false,"description":"Supply, demand and price percentiles per GPU model over time, a point per `step`.","operationId":"stats_gpu_history","parameters":[{"description":"Comma-separated GPU models, or `all`","example":"NVIDIA GeForce RTX 4090,NVIDIA GeForce RTX 3090","in":"query","name":"gpu_name","required":false,"schema":{"default":"all","type":"string"}},{"description":"GPUs of verified nodes (`yes`), of the others (`no`) or all","in":"query","name":"verified","required":false,"schema":{"default":"all","enum":["all","yes","no"],"type":"string"}},{"description":"Unix seconds; a day before `end` by default","in":"query","name":"start","required":false,"schema":{"minimum":0,"type":"integer"}},{"description":"Unix seconds; now by default","in":"query","name":"end","required":false,"schema":{"minimum":0,"type":"integer"}},{"description":"Seconds between points, at least 300; at most 2000 points","in":"query","name":"step","required":false,"schema":{"default":3600,"minimum":300,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GpuHistory"}}},"description":"GPU market over time"},"400":{"content":{"application/json":{"examples":{"Too many points: use a larger step":{"value":{"message":"Too many points: use a larger step"}},"start must be before end":{"value":{"message":"start must be before end"}},"step must be at least 300 seconds":{"value":{"message":"step must be at least 300 seconds"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid parameters"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Statistics are unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Statistics are unavailable"}},"security":[],"summary":"GPU market over time","tags":["Statistics"]}},"/stats/gpu/locations":{"get":{"callbacks":{},"deprecated":false,"description":"GPUs by city and model. Aggregated by city: single nodes are not shown.","operationId":"stats_gpu_locations","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GpuLocation"},"type":"array"}}},"description":"Locations"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Statistics are unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Statistics are unavailable"}},"security":[],"summary":"GPU locations","tags":["Statistics"]}},"/stats/mining":{"get":{"callbacks":{},"deprecated":false,"description":"Mining sessions of the last `days` (today included, UTC) in a role: per miner, algorithm and pool, by GPU-hours (the gpu role) or hours (cpu), and the miners per day. Pools not listed on the platform, unknown algorithms and anything used too rarely are counted under `other`.","operationId":"stats_mining","parameters":[{"description":"GPU miners or the CPU miner","in":"query","name":"role","required":false,"schema":{"default":"gpu","enum":["gpu","cpu"],"type":"string"}},{"description":"Days back, today included","in":"query","name":"days","required":false,"schema":{"default":30,"maximum":365,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MiningUsage"}}},"description":"Mining"},"400":{"content":{"application/json":{"examples":{"days must be 1 to 365":{"value":{"message":"days must be 1 to 365"}},"role must be one of gpu, cpu":{"value":{"message":"role must be one of gpu, cpu"}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid parameter"},"429":{"content":{"application/json":{"example":{"message":"Too many requests"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests"},"503":{"content":{"application/json":{"example":{"message":"Statistics are unavailable"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Statistics are unavailable"}},"security":[],"summary":"Mining on the platform","tags":["Statistics"]}}},"security":[],"servers":[{"url":"https://api.octa.space","variables":{}}],"tags":[{"description":"Public network statistics","name":"Network"},{"description":"GPU market and mining of the platform","name":"Statistics"},{"description":"Machines for rent and starting compute services","name":"Compute"},{"description":"Render nodes and starting render services","name":"Render"},{"description":"Nodes offered for VPN and starting VPN services","name":"VPN"},{"description":"Running service sessions","name":"Services"},{"description":"Nodes of the account","name":"Hosting"},{"description":"The account behind the token","name":"Account"}]}