{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "description": "axp_… API key or axs_… session token",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "OpenAI-compatible and typed AXIOM inference over one endpoint. Authenticate with a farm API key (axp_…) or session (axs_…) as `Authorization: Bearer <key>`.",
    "title": "AXIOM Inference API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/health": {
      "get": {
        "responses": {
          "200": {
            "description": "ok"
          }
        },
        "security": [],
        "summary": "Liveness"
      }
    },
    "/v1/chat/completions": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "messages": {
                    "items": {
                      "properties": {
                        "content": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "model": {
                    "example": "axiom-intelligence",
                    "type": "string"
                  },
                  "stream": {
                    "type": "boolean"
                  },
                  "temperature": {
                    "type": "number"
                  }
                },
                "required": [
                  "model",
                  "messages"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "completion"
          },
          "401": {
            "description": "unauthorized"
          },
          "402": {
            "description": "insufficient credits"
          }
        },
        "summary": "OpenAI-compatible chat completion"
      }
    },
    "/v1/infer": {
      "post": {
        "responses": {
          "200": {
            "description": "typed result"
          }
        },
        "summary": "AXIOM Inference Protocol — typed task (chat, decide, classify, score, predict, rerank, guard)"
      }
    },
    "/v1/infer/models": {
      "get": {
        "responses": {
          "200": {
            "description": "models"
          }
        },
        "summary": "List registered inference-protocol models"
      }
    },
    "/v1/models": {
      "get": {
        "responses": {
          "200": {
            "description": "models"
          }
        },
        "summary": "List models with customer pricing"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.axiom.farm"
    }
  ]
}