notebooks

Compute rates, presets, and the sizes the kernel config endpoint accepts. Static per region, so a client can fetch it once and price any shape a user picks.

get/api/projects/{project_id}/notebooks/kernel/compute_options/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/notebooks/kernel/compute_options/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Response

currencystring required

Currency of every price in this response. Always 'USD'.

cpu_rate_per_core_hournumber double required

Price of one CPU core for one hour, in USD.

memory_rate_per_gb_hournumber double required

Price of one GB of memory for one hour, in USD.

default_preset_keystring required

Preset a sandbox starts with when the notebook sets no compute config.

allowed_cpu_coresnumber[] required

CPU core counts the kernel config endpoint accepts.

allowed_memory_gbnumber[] required

Memory sizes in GB the kernel config endpoint accepts.

allowed_idle_timeout_secondsinteger[] required

Maximum sandbox lifetimes in seconds that the kernel config endpoint accepts.

Changes

No recorded changes to this operation across all 1 revision of this API.