Api Endpoint

chess402.vercel.app

Stockfish cloud evaluation for a FEN position. Returns depth, evaluation, and principal variation(s) when Lichess has the position cached.

Open interactive test console

Offering

Provider
chess402.vercel.app
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
General Utilities
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://chess402.vercel.app/api/cloud-eval
MIME type
Not provided
First seen
2026-10-16T01:58:03.323Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0xfbd46201267609ad3c66bd1b99b7f1cc80b1852f"
  }
]

Observed health

Status
Healthy
Latest latency
70 ms
Average latency
178 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "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 schema

{
  "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"
}