{
  "openapi": "3.1.0",
  "info": {
    "title": "Lantern Works public API",
    "summary": "Public JSON feeds on thelanternworks.com and the hosted MCP worker.",
    "description": "Machine-readable description of the public Lantern Works HTTP API. The JSON feeds on this site are static files: GET only, no API key. The hosted MCP server is on a separate origin and is streamable HTTP (POST JSON-RPC to /mcp). This document only lists endpoints that exist and respond. It is not a promise of query parameters, request bodies, or fields beyond what the published files and the /api/ page already state. Price and deal data is CC BY 4.0; credit Lantern Works.",
    "version": "1.0.0",
    "license": {
      "name": "CC BY 4.0 (data); MIT (generators and MCP package)",
      "url": "https://thelanternworks.com/methodology/#license"
    }
  },
  "externalDocs": {
    "description": "Human-readable API documentation",
    "url": "https://thelanternworks.com/api/"
  },
  "servers": [
    {
      "url": "https://thelanternworks.com",
      "description": "Public static JSON feeds and docs on the site."
    }
  ],
  "paths": {
    "/api/v1/gpu-prices.json": {
      "get": {
        "summary": "Complete GPU price feed. Top-level fields include feed_updated_at, license, methodology, ranking, hours_per_month (730), rates, unpriced and held_stale.",
        "security": [],
        "responses": {
          "200": {
            "description": "Complete GPU price feed. Top-level fields include feed_updated_at, license, methodology, ranking, hours_per_month (730), rates, unpriced and held_stale.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Complete GPU price feed. Top-level fields include feed_updated_at, license, methodology, ranking, hours_per_month (730), rates, unpriced and held_stale.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "license": {},
                    "feed_updated_at": {},
                    "hours_per_month": {},
                    "ranking": {},
                    "methodology": {},
                    "rates": {},
                    "unpriced": {},
                    "held_stale": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu-price-changes.json": {
      "get": {
        "summary": "Rates that went down, up, newly tracked or dropped between the last two daily snapshots.",
        "security": [],
        "responses": {
          "200": {
            "description": "Rates that went down, up, newly tracked or dropped between the last two daily snapshots.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Rates that went down, up, newly tracked or dropped between the last two daily snapshots.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "license": {},
                    "date": {},
                    "previous_date": {},
                    "changes": {},
                    "counts": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu-price-changes.xml": {
      "get": {
        "summary": "RSS of /api/v1/gpu-price-changes.json.",
        "security": [],
        "responses": {
          "200": {
            "description": "RSS of /api/v1/gpu-price-changes.json.",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "description": "RSS of /api/v1/gpu-price-changes.json."
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu-price-digest.json": {
      "get": {
        "summary": "Digest of the biggest daily and 7-day tracked price moves.",
        "security": [],
        "responses": {
          "200": {
            "description": "Digest of the biggest daily and 7-day tracked price moves.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Digest of the biggest daily and 7-day tracked price moves.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "license": {},
                    "daily": {},
                    "weekly": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu-price-digest.xml": {
      "get": {
        "summary": "RSS of /api/v1/gpu-price-digest.json.",
        "security": [],
        "responses": {
          "200": {
            "description": "RSS of /api/v1/gpu-price-digest.json.",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "description": "RSS of /api/v1/gpu-price-digest.json."
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu-prices/history.json": {
      "get": {
        "summary": "Daily price history.",
        "security": [],
        "responses": {
          "200": {
            "description": "Daily price history.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Daily price history.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "license": {},
                    "first_snapshot": {},
                    "last_snapshot": {},
                    "series": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/index.json": {
      "get": {
        "summary": "Small per-model index. Each model has a feed at /api/v1/gpu/{model}.json.",
        "security": [],
        "responses": {
          "200": {
            "description": "Small per-model index. Each model has a feed at /api/v1/gpu/{model}.json.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Small per-model index. Each model has a feed at /api/v1/gpu/{model}.json.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "license": {},
                    "feed_updated_at": {},
                    "models": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/deals.json": {
      "get": {
        "summary": "Deal feed.",
        "security": [],
        "responses": {
          "200": {
            "description": "Deal feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Deal feed.",
                  "additionalProperties": true,
                  "properties": {
                    "schema_version": {},
                    "feed_version": {},
                    "updated_at": {},
                    "query": {},
                    "deals": {},
                    "license": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/deals.json": {
      "get": {
        "summary": "Legacy alias of /api/v1/deals.json. After deploy the published bytes are the api/v1 copy.",
        "security": [],
        "responses": {
          "200": {
            "description": "Legacy alias of /api/v1/deals.json. After deploy the published bytes are the api/v1 copy.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Legacy alias of /api/v1/deals.json. After deploy the published bytes are the api/v1 copy.",
                  "additionalProperties": true,
                  "properties": {
                    "schema_version": {},
                    "feed_version": {},
                    "updated_at": {},
                    "query": {},
                    "deals": {},
                    "license": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/stack-pricing.json": {
      "get": {
        "summary": "Cited plan prices for stack cost estimates.",
        "security": [],
        "responses": {
          "200": {
            "description": "Cited plan prices for stack cost estimates.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Cited plan prices for stack cost estimates.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "license": {},
                    "feed_updated_at": {},
                    "needs": {},
                    "offers": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/coverage.json": {
      "get": {
        "summary": "GPU model × vendor coverage matrix.",
        "security": [],
        "responses": {
          "200": {
            "description": "GPU model × vendor coverage matrix.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "GPU model × vendor coverage matrix.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "license": {},
                    "feed_updated_at": {},
                    "vendors": {},
                    "models": {},
                    "counts": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu-price-index.json": {
      "get": {
        "summary": "Historical GPU price index used on the GPU index pages.",
        "security": [],
        "responses": {
          "200": {
            "description": "Historical GPU price index used on the GPU index pages.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Historical GPU price index used on the GPU index pages.",
                  "additionalProperties": true,
                  "properties": {
                    "name": {},
                    "version": {},
                    "license": {},
                    "unit": {},
                    "history": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu-price-index.csv": {
      "get": {
        "summary": "CSV of /api/v1/gpu-price-index.json.",
        "security": [],
        "responses": {
          "200": {
            "description": "CSV of /api/v1/gpu-price-index.json.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "description": "CSV of /api/v1/gpu-price-index.json."
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/receipts.json": {
      "get": {
        "summary": "Receipt records linked from the receipts page.",
        "security": [],
        "responses": {
          "200": {
            "description": "Receipt records linked from the receipts page.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Receipt records linked from the receipts page.",
                  "additionalProperties": true,
                  "properties": {
                    "schema_version": {},
                    "schema": {},
                    "publication": {},
                    "counts": {},
                    "tests": {}
                  }
                }
              }
            }
          }
        },
        "description": "Receipt records linked from the receipts page. Also served by the hosted worker at the same path."
      },
      "servers": [
        {
          "url": "https://thelanternworks.com",
          "description": "Static file on the site."
        },
        {
          "url": "https://lantern-works-mcp.lantern-works.workers.dev",
          "description": "Same receipts index on the hosted worker."
        }
      ]
    },
    "/api/v1/receipts-proof-pack.json": {
      "get": {
        "summary": "Receipts proof pack linked from the receipts page.",
        "security": [],
        "responses": {
          "200": {
            "description": "Receipts proof pack linked from the receipts page.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Receipts proof pack linked from the receipts page.",
                  "additionalProperties": true,
                  "properties": {
                    "assembled_at": {},
                    "cases": {},
                    "pack": {},
                    "policy": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/schema.json": {
      "get": {
        "summary": "JSON Schema for the deals feed.",
        "security": [],
        "responses": {
          "200": {
            "description": "JSON Schema for the deals feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "JSON Schema for the deals feed.",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/agent.json": {
      "get": {
        "summary": "Lantern Works agent discovery document (schema lantern-works-agent-discovery/1). Not an A2A Agent Card.",
        "security": [],
        "responses": {
          "200": {
            "description": "Lantern Works agent discovery document (schema lantern-works-agent-discovery/1). Not an A2A Agent Card.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Lantern Works agent discovery document (schema lantern-works-agent-discovery/1). Not an A2A Agent Card.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "name": {},
                    "mcp": {},
                    "feeds": {},
                    "tools": {},
                    "decision_rules": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "This OpenAPI 3.1 description.",
        "security": [],
        "responses": {
          "200": {
            "description": "This OpenAPI 3.1 description.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "This OpenAPI 3.1 description.",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/ai-catalog.json": {
      "get": {
        "summary": "AI Catalog (specVersion 0.9, release candidate for v1.0) listing the MCP Server Card and the existing /agent.json discovery document.",
        "security": [],
        "responses": {
          "200": {
            "description": "AI Catalog (specVersion 0.9, release candidate for v1.0) listing the MCP Server Card and the existing /agent.json discovery document.",
            "content": {
              "application/ai-catalog+json": {
                "schema": {
                  "type": "object",
                  "description": "AI Catalog (specVersion 0.9, release candidate for v1.0) listing the MCP Server Card and the existing /agent.json discovery document.",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/mcp/server-card.json": {
      "get": {
        "summary": "MCP Server Card (SEP-2127) for the hosted streamable-HTTP endpoint. Tools are not listed here; they come from the live MCP session.",
        "security": [],
        "responses": {
          "200": {
            "description": "MCP Server Card (SEP-2127) for the hosted streamable-HTTP endpoint. Tools are not listed here; they come from the live MCP session.",
            "content": {
              "application/mcp-server-card+json": {
                "schema": {
                  "type": "object",
                  "description": "MCP Server Card (SEP-2127) for the hosted streamable-HTTP endpoint. Tools are not listed here; they come from the live MCP session.",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/{model}.json": {
      "get": {
        "summary": "Per-model GPU price feed (one file per slug listed in /api/v1/gpu/index.json).",
        "security": [],
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "a10",
                "a100",
                "a10g",
                "a40",
                "b200",
                "b300",
                "gb300",
                "gh200",
                "h100",
                "h100-nvl",
                "h200",
                "h200-nvl",
                "l4",
                "l40",
                "l40s",
                "mi300x",
                "mi325x",
                "mi355x",
                "quadro-rtx-6000",
                "rtx-3090",
                "rtx-4090",
                "rtx-5090",
                "rtx-6000-ada",
                "rtx-a4000",
                "rtx-a5000",
                "rtx-a6000",
                "rtx-pro-4000",
                "rtx-pro-4500",
                "rtx-pro-5000",
                "rtx-pro-6000",
                "t4",
                "v100"
              ]
            },
            "description": "Model slug from /api/v1/gpu/index.json (for example h100)."
          }
        ],
        "responses": {
          "200": {
            "description": "Per-model GPU price feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Per-model GPU price feed.",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/": {
      "servers": [
        {
          "url": "https://lantern-works-mcp.lantern-works.workers.dev",
          "description": "Hosted MCP worker (different origin from the site)."
        }
      ],
      "get": {
        "summary": "Plain-text description of the hosted MCP endpoint.",
        "security": [],
        "responses": {
          "200": {
            "description": "Plain-text description of the hosted MCP endpoint.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/version": {
      "servers": [
        {
          "url": "https://lantern-works-mcp.lantern-works.workers.dev",
          "description": "Hosted MCP worker (different origin from the site)."
        }
      ],
      "get": {
        "summary": "Hosted MCP package version and the git commit the worker was built from.",
        "security": [],
        "responses": {
          "200": {
            "description": "JSON object with version and build.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "version",
                    "build"
                  ],
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "build": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "servers": [
        {
          "url": "https://lantern-works-mcp.lantern-works.workers.dev",
          "description": "Hosted MCP worker (different origin from the site)."
        }
      ],
      "post": {
        "summary": "Hosted MCP endpoint: POST JSON-RPC (streamable HTTP). No API key for public tools.",
        "description": "GET returns 405 and states that server-sent event streams are not offered. Optional query parameter ref is a caller attribution tag used in public counts; it is not authentication.",
        "security": [],
        "parameters": [
          {
            "name": "ref",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional caller attribution tag for public counts. Not authentication."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "MCP JSON-RPC request body.",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response (streamable HTTP).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "405": {
            "description": "Returned for GET: SSE streams are not offered; use POST.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "Not supported. Returns 405; SSE streams are not offered.",
        "security": [],
        "responses": {
          "405": {
            "description": "Plain-text message telling the caller to use POST.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/stats": {
      "servers": [
        {
          "url": "https://lantern-works-mcp.lantern-works.workers.dev",
          "description": "Hosted MCP worker (different origin from the site)."
        }
      ],
      "get": {
        "summary": "HTML page of anonymous public hosted-MCP call counts.",
        "security": [],
        "responses": {
          "200": {
            "description": "HTML page of anonymous public hosted-MCP call counts.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/stats.json": {
      "servers": [
        {
          "url": "https://lantern-works-mcp.lantern-works.workers.dev",
          "description": "Hosted MCP worker (different origin from the site)."
        }
      ],
      "get": {
        "summary": "Anonymous aggregate hosted-MCP call counts per UTC day, tool and ref (schema lantern-works-hosted-mcp-stats/1). Different from the site's /stats.json.",
        "security": [],
        "responses": {
          "200": {
            "description": "Anonymous aggregate hosted-MCP call counts per UTC day, tool and ref (schema lantern-works-hosted-mcp-stats/1). Different from the site's /stats.json.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Hosted MCP public counts.",
                  "additionalProperties": true,
                  "properties": {
                    "schema": {},
                    "note": {},
                    "rows": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/receipts/": {
      "servers": [
        {
          "url": "https://lantern-works-mcp.lantern-works.workers.dev",
          "description": "Hosted MCP worker (different origin from the site)."
        }
      ],
      "get": {
        "summary": "Redirects to https://thelanternworks.com/receipts/.",
        "security": [],
        "responses": {
          "302": {
            "description": "Location: https://thelanternworks.com/receipts/ (query string preserved when present)."
          }
        }
      }
    }
  },
  "security": [],
  "tags": [
    {
      "name": "feeds",
      "description": "Static JSON, XML and CSV files on the site."
    },
    {
      "name": "hosted-mcp",
      "description": "Hosted worker at lantern-works-mcp.lantern-works.workers.dev."
    }
  ]
}
