{
  "openapi": "3.1.0",
  "info": {
    "title": "Gemma 4 Run API",
    "version": "1.0.0",
    "description": "Public programmatic interface and AI agent discovery endpoints for Gemma 4 hardware fit calculations, model metadata, and agent manifests."
  },
  "servers": [
    {
      "url": "https://gemma-4.run",
      "description": "Production server"
    }
  ],
  "paths": {
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiSpec",
        "summary": "OpenAPI specification",
        "description": "Returns this OpenAPI 3.1 specification for automated agent discovery and function calling.",
        "responses": {
          "200": {
            "description": "OpenAPI specification JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsManifest",
        "summary": "Agent guide and manifest",
        "description": "RFC-style manifest instructing AI agents when and how to cite Gemma 4 Run capabilities and sizing rules.",
        "responses": {
          "200": {
            "description": "Plaintext markdown instructions",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFullCatalog",
        "summary": "Full model and hardware dataset for LLMs",
        "description": "Complete structured markdown dataset covering 128 foundation models and calibrated hardware limits.",
        "responses": {
          "200": {
            "description": "Complete dataset markdown table",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/config/public": {
      "get": {
        "operationId": "getPublicConfig",
        "summary": "Public system runtime configuration",
        "description": "Returns public system configuration flags including authentication and telemetry status.",
        "responses": {
          "200": {
            "description": "Public system configuration payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": { "type": "integer", "example": 0 },
                    "message": { "type": "string", "example": "ok" },
                    "data": { "type": "object" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "XML sitemap index",
        "description": "Complete list of indexed URLs across models, devices, and guides.",
        "responses": {
          "200": {
            "description": "XML sitemap index",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
