{"openapi":"3.1.0","info":{"title":"Chess Best Move API","description":"Chess Best Move API","version":"1.0.0"},"servers":[{"url":"https://api.ruliad.xyz"}],"tags":[{"name":"Best Move"}],"paths":{"/api/best-move":{"post":{"operationId":"best-move","summary":"Get the best move for a given FEN position","tags":["Best Move"],"x-payment-info":{"pricingMode":"fixed","price":"0.01","protocols":["x402"]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fen":{"type":"string"},"depth":{"default":10,"type":"number"}},"required":["fen"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"evaluation":{"anyOf":[{"type":"number"},{"type":"null"}]},"bestmove":{"type":"string"},"mate":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["success","evaluation","bestmove","mate"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}}}}