Skip to content
Hayonix

API reference · Schema

SandboxSizes

  • The items

    Show 8 fields of data
    • objectstringrequired

      Always `sandbox_size`: the type of this object

      One ofsandbox_size

    • codestringrequired

      Machine-readable code

    • display_namestringrequired

      Name to show people

    • vcpusintegerrequired

      Virtual CPUs

    • memory_gbintegerrequired

      Memory in GB

    • disk_gbintegerrequired

      Disk space for the workspace and everything else written, in GB

    • priceobjectrequired

      Current price of this size

      Show 2 fields of price
      • per_secondstringrequired

        Price per second of running, nano-USD (what is billed)

        pattern ^-?[0-9]+$

      • per_hourstringrequired

        The same price per hour (per_second × 3600), nano-USD

        pattern ^-?[0-9]+$

    • defaultbooleanrequired

      Used when a sandbox is created without `size`

  • next_cursorany JSON | nullrequired

    Always null: every size is listed

  • limitsSandboxLimitsrequired
    Show 11 fields of limits
    • lifetime_secondsobjectrequired

      How long a sandbox lives unless extended

      Show 3 fields of lifetime_seconds
      • defaultnumberrequired

        Used when you do not set it, in seconds

      • minnumberrequired

        Smallest allowed, in seconds

      • maxnumberrequired

        Largest allowed, in seconds

    • idle_timeout_secondsobjectrequired

      How long a sandbox may go without a run or a file operation before it ends

      Show 3 fields of idle_timeout_seconds
      • defaultnumberrequired

        Used when you do not set it, in seconds

      • minnumberrequired

        Smallest allowed, in seconds

      • maxnumberrequired

        Largest allowed, in seconds

    • run_timeout_secondsobjectrequired

      Time limit of one run

      Show 3 fields of run_timeout_seconds
      • defaultnumberrequired

        Used when you do not set it, in seconds

      • minnumberrequired

        Smallest allowed, in seconds

      • maxnumberrequired

        Largest allowed, in seconds

    • run_max_output_bytesobjectrequired

      Cap on one run’s stdout plus stderr; the run is cut off past it

      Show 3 fields of run_max_output_bytes
      • defaultnumberrequired

        Used when you do not set it, in bytes

      • minnumberrequired

        Smallest allowed, in bytes

      • maxnumberrequired

        Largest allowed, in bytes

    • max_code_bytesnumberrequired

      Largest `code` of one run, in bytes

    • max_stdin_bytesnumberrequired

      Largest `stdin` of one run, in bytes

    • max_concurrent_runsnumberrequired

      Runs one sandbox accepts at once (Python runs queue for its one interpreter)

    • recorded_output_bytesnumberrequired

      Bytes of each of stdout and stderr kept with a run’s record (the response to the run itself has all of it)

    • run_retention_daysnumberrequired

      Days run records are kept after their sandbox ends

    • max_file_bytesnumberrequired

      Largest file you can upload, in bytes

    • max_live_per_projectnumberrequired

      Sandboxes one project can have at once that have not ended (the organization’s `sandboxes` quota applies too)

  • languagesarray of stringrequired

    Values accepted as a run’s `language`

Example
{
  "data": [
    {
      "object": "sandbox_size",
      "code": "string",
      "display_name": "string",
      "vcpus": 1,
      "memory_gb": 1,
      "disk_gb": 1,
      "price": {
        "per_second": "1500000000",
        "per_hour": "1500000000"
      },
      "default": true
    }
  ],
  "next_cursor": {},
  "limits": {
    "lifetime_seconds": {
      "default": 1.5,
      "min": 1.5,
      "max": 1.5
    },
    "idle_timeout_seconds": {
      "default": 1.5,
      "min": 1.5,
      "max": 1.5
    },
    "run_timeout_seconds": {
      "default": 1.5,
      "min": 1.5,
      "max": 1.5
    },
    "run_max_output_bytes": {
      "default": 1.5,
      "min": 1.5,
      "max": 1.5
    },
    "max_code_bytes": 1.5,
    "max_stdin_bytes": 1.5,
    "max_concurrent_runs": 1.5,
    "recorded_output_bytes": 1.5,
    "run_retention_days": 1.5,
    "max_file_bytes": 1.5,
    "max_live_per_project": 1.5
  },
  "languages": [
    "string"
  ]
}

Used by