{
  "x402Version": 2,
  "id": 13032,
  "slug": "13032",
  "resource": "https://chess402.vercel.app/api/cloud-eval",
  "description": "Stockfish cloud evaluation for a FEN position. Returns depth, evaluation, and principal variation(s) when Lichess has the position cached.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xfbd46201267609ad3c66bd1b99b7f1cc80b1852f",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
            "multiPv": 1
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "depth": 22,
            "fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
            "knodes": 13683,
            "pvs": [
              {
                "cp": 27,
                "moves": "e2e4 c7c5 g1f3 d7d6 d2d4 c5d4"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "description": "Cloud-eval request: FEN position to analyze plus options.",
                "properties": {
                  "fen": {
                    "description": "Standard FEN position string, e.g. 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1'",
                    "maxLength": 100,
                    "minLength": 15,
                    "type": "string"
                  },
                  "multiPv": {
                    "description": "Number of principal variations to return (1-5). Default 1.",
                    "maximum": 5,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "variant": {
                    "description": "Chess variant. Default 'standard'.",
                    "enum": [
                      "standard",
                      "chess960",
                      "crazyhouse",
                      "antichess",
                      "atomic",
                      "horde",
                      "kingOfTheHill",
                      "racingKings",
                      "threeCheck"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "fen"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": {},
                "description": "Cloud-eval response: depth, knodes, and principal variations.",
                "properties": {
                  "depth": {
                    "description": "Search depth in plies.",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "fen": {
                    "description": "Echoed FEN that was evaluated.",
                    "type": "string"
                  },
                  "knodes": {
                    "description": "Kilonodes searched.",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "pvs": {
                    "description": "Principal variations (one per multiPv).",
                    "items": {
                      "additionalProperties": {},
                      "properties": {
                        "cp": {
                          "description": "Evaluation in centipawns from the side-to-move POV.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "mate": {
                          "description": "Mate-in-N from the side-to-move POV, when applicable.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "moves": {
                          "description": "Space-separated UCI moves of the principal variation.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "moves"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "fen",
                  "pvs"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "chess402.vercel.app",
  "lastUpdated": "2026-09-08T23:28:05.635Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 5,
    "lastCalledAt": "2026-09-08T23:28:05.484Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "chess402.vercel.app",
    "manifest_name": "chess402.vercel.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}