{
  "openapi": "3.1.0",
  "info": {
    "title": "Simulation Hypothesis engine API",
    "version": "2026.6",
    "description": "The site’s computing model as JSON. Numbers are log10 unless named otherwise. CC BY 4.0; credit “Ross Allan Dahl, Simulation Hypothesis (simulation-hypothesis.com)”.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://simulation-hypothesis.com"
    }
  ],
  "paths": {
    "/api/price": {
      "get": {
        "summary": "How much computing a world needs",
        "description": "Same parameters as a Sandbox link. Any you leave out use the baseline (Earth, atom floor, everyone alive, functional minds, linear time from 1900).",
        "parameters": [
          {
            "name": "sc",
            "in": "query",
            "required": false,
            "description": "Extent: brain, room, earth, solar, galaxy, universe",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fi",
            "in": "query",
            "required": false,
            "description": "Matter floor index, 0 (painted set) to 11 (quantum, fully entangled)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lb",
            "in": "query",
            "required": false,
            "description": "Lobby: single, multi, npc",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "co",
            "in": "query",
            "required": false,
            "description": "Inner-life cutoff, 0 (everything) to 11 (nobody)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mm",
            "in": "query",
            "required": false,
            "description": "Mind model: scripted, functional, biophysical, molecular, quantum",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ob",
            "in": "query",
            "required": false,
            "description": "Percent of unobserved matter computed, 0 to 100",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tm",
            "in": "query",
            "required": false,
            "description": "Time model: linear, cyclic, tree, manyworlds",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sy",
            "in": "query",
            "required": false,
            "description": "Start year",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The computing total, its 80% range, the inputs ranked by influence, and human-scale figures."
          }
        }
      }
    },
    "/api/budget": {
      "get": {
        "summary": "What a computer can run",
        "parameters": [
          {
            "name": "b",
            "in": "query",
            "required": true,
            "description": "Computing power, log10 FLOPS, 10 to 106",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "ob",
            "in": "query",
            "required": false,
            "description": "100 (everything computed) or 0 (only what is observed)",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                100
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "For each extent, the finest matter floor the computer can run, and how many minds alone it can run per mind model."
          }
        }
      }
    }
  }
}