{"openapi": "3.1.0", "info": {"title": "Benchmark-Anything API", "version": "1.0.0", "description": "Live anti-fake-200 latency, schema reliability, and effective-cost-per-verified-hit benchmark engine across REST JSON, MCP JSON-RPC 2.0, Web Extraction, DoH DNS, and OpenAI-compatible BYOK endpoints. Zero BYOK key and benchmark trace resale.", "contact": {"email": "benchmark@fastmesh.dev", "url": "https://benchmark.fastmesh.dev"}}, "servers": [{"url": "https://benchmark.fastmesh.dev", "description": "Production HTTPS Gateway"}], "paths": {"/health": {"get": {"summary": "Service health and protocol telemetry", "responses": {"200": {"description": "Healthy"}}}}, "/openapi.json": {"get": {"summary": "OpenAPI 3.1 specification", "responses": {"200": {"description": "OpenAPI JSON"}}}}, "/v1/benchmark/run": {"post": {"summary": "Run multi-target benchmark and produce a SHA-256 Verified Benchmark Card", "description": "Strictly $0 billed (`charged_micros == 0`) on 422 invalid input, SSRF blocks, or when all targets yield 0 verified hits.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["targets"], "properties": {"tenant_id": {"type": "string", "default": "public_demo"}, "title": {"type": "string"}, "track": {"type": "string"}, "samples_per_target": {"type": "integer", "minimum": 1, "maximum": 25, "default": 3}, "concurrency": {"type": "integer", "minimum": 1, "maximum": 8, "default": 4}, "timeout_s": {"type": "number", "minimum": 1, "maximum": 15, "default": 8}, "no_cache": {"type": "boolean", "default": false}, "render_leaderboard": {"type": "boolean", "default": false}, "byok_headers": {"type": "object", "additionalProperties": {"type": "string"}}, "byok_api_key": {"type": "string"}, "targets": {"type": "array", "minItems": 1, "maxItems": 12, "items": {"type": "object", "required": ["protocol", "url"], "properties": {"id": {"type": "string"}, "name": {"type": "string"}, "protocol": {"type": "string", "enum": ["rest_json", "mcp_jsonrpc", "web_extract", "doh_dns", "openai_compat"]}, "url": {"type": "string", "format": "uri"}, "method": {"type": "string"}, "headers": {"type": "object"}, "body": {}, "expected_keys": {"type": "array", "items": {"type": "string"}}, "expected_text": {"type": "string"}, "listed_price_usd": {"type": "number", "minimum": 0}, "bills_on_failure": {"type": "boolean"}, "query_name": {"type": "string"}, "query_type": {"type": "string"}, "mcp_tool_name": {"type": "string"}, "mcp_tool_args": {"type": "object"}, "model": {"type": "string"}}}}}}}}}, "responses": {"200": {"description": "Benchmark completed with Verified Benchmark Card"}, "422": {"description": "Invalid input or SSRF blocked ($0 charged)"}}}}, "/v1/leaderboards": {"get": {"summary": "List persisted verified benchmark leaderboards and available tracks", "responses": {"200": {"description": "Leaderboard list"}}}}, "/v1/leaderboard/render": {"post": {"summary": "Compile a VerifiedBenchmarkCard into Best-X-2026 HTML, Markdown, and JSON-LD Dataset + FAQPage", "responses": {"200": {"description": "Compiled HTML, Markdown, and JSON-LD"}, "422": {"description": "Missing or invalid benchmark card"}}}}, "/webhooks/creem": {"post": {"summary": "Creem prepaid credit pack webhook receiver (HMAC-SHA256 verified, idempotent)", "responses": {"200": {"description": "Webhook processed or idempotently replayed"}, "401": {"description": "Invalid creem-signature"}}}}, "/mcp": {"post": {"summary": "MCP JSON-RPC 2.0 endpoint (initialize, tools/list, tools/call)", "responses": {"200": {"description": "JSON-RPC 2.0 response"}}}}}}