{
  "openapi": "3.1.0",
  "info": {
    "title": "General Inference: local buyer API and public feeds",
    "version": "1.0.0",
    "x-updated-at": "2026-12-06T15:20:08-08:00",
    "description": "General Inference is a seller on the AntSeed network. There is no hosted inference endpoint at generalinference.org. Inference calls go to the AntSeed buyer proxy on the caller's own machine (after `antseed buyer start` and the pin command), which routes to the pinned peer. The feeds are static files on https://generalinference.org."
  },
  "x-note": "There is no hosted HTTPS inference endpoint at generalinference.org. The buyer runs on the caller's machine.",
  "x-pin": {
    "connect_command": "npm install -g @antseed/cli && antseed buyer start --peer e44566555a6bcd118832097445e49277db4ba675",
    "pin_command": "antseed buyer connection set --peer e44566555a6bcd118832097445e49277db4ba675",
    "check_command": "antseed buyer connection get",
    "unpin_command": "antseed buyer connection clear",
    "warning": "Pins are strict, with no failover: while the pin is set, every request goes to this peer, and if we are unavailable the request fails instead of moving to another seller."
  },
  "x-port": "8377 is the AntSeed CLI default buyer port on the caller's machine. Change it with: antseed buyer start --port <port>",
  "x-api-key": "The proxy requires no API key. Clients that need one may send the dummy string \"antseed\".",
  "servers": [
    {
      "url": "http://localhost:8377/v1",
      "description": "AntSeed buyer proxy on the caller's own machine (CLI default port)"
    }
  ],
  "paths": {
    "/chat/completions": {
      "post": {
        "summary": "OpenAI-format chat completion, routed to the pinned peer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "model",
                  "messages"
                ],
                "properties": {
                  "model": {
                    "type": "string",
                    "description": "Exact model id from https://generalinference.org/models.json, or peer@model for a single request.",
                    "examples": [
                      "gemma3:1b",
                      "openai-gpt-61-sol"
                    ]
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "role",
                        "content"
                      ],
                      "properties": {
                        "role": {
                          "type": "string"
                        },
                        "content": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "stream": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OpenAI-format chat completion"
          }
        }
      }
    },
    "/models": {
      "get": {
        "summary": "Models the local buyer can reach",
        "responses": {
          "200": {
            "description": "OpenAI-format model list"
          }
        }
      }
    },
    "/pricing.json": {
      "get": {
        "summary": "Current prices per 1,000,000 tokens, with as_of and stale_after_seconds",
        "servers": [
          {
            "url": "https://generalinference.org"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://generalinference.org/schemas/pricing.schema.json"
                }
              }
            }
          }
        }
      }
    },
    "/models.json": {
      "get": {
        "summary": "Listed models with exact ids, serving kind and health status",
        "servers": [
          {
            "url": "https://generalinference.org"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://generalinference.org/schemas/models.schema.json"
                }
              }
            }
          }
        }
      }
    },
    "/status.json": {
      "get": {
        "summary": "Build-time status snapshot",
        "servers": [
          {
            "url": "https://generalinference.org"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://generalinference.org/schemas/status.schema.json"
                }
              }
            }
          }
        }
      }
    }
  }
}
