{"openapi":"3.1.0","info":{"title":"x402donghang paid AI and live crypto tools","version":"1.1.0","description":"Pay-per-call live crypto radar with X/web sources and CoinGecko market data, plus Grok chat, crypto brief, and URL/text summarize. x402 USDC on Base and Solana mainnet. No API key signup.","x-guidance":"Use POST /x402/v1/crypto-radar when current evidence matters: it searches recent X and web sources and returns cited structured signals. Use /crypto-brief only when supplying your own context. /summarize handles URL/text compression. Unpaid requests return HTTP 402 with PAYMENT-REQUIRED; pay USDC via x402 then retry.","contact":{"name":"x402donghang","url":"https://x402donghang.duckdns.org/x402/health","email":"tangdonghang123@gmail.com"}},"servers":[{"url":"https://x402donghang.duckdns.org","description":"production"}],"paths":{"/x402/v1/chat/completions":{"post":{"operationId":"chatCompletions","summary":"Grok 4.5 High chat (OpenAI-compatible)","description":"OpenAI-compatible chat completions. Listed model grok-4.5-high. Streaming supported. $0.01 USDC per request.","tags":["Chat"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["messages"],"properties":{"model":{"type":"string","description":"Use \"grok-4.5-high\" (ignored if omitted; server pins listed model)"},"messages":{"type":"array","description":"OpenAI-compatible chat messages","items":{"type":"object","properties":{"role":{"type":"string","description":"system | user | assistant"},"content":{"type":"string"}},"required":["role","content"]}},"stream":{"type":"boolean","description":"SSE streaming when true"},"max_tokens":{"type":"integer","minimum":1},"temperature":{"type":"number"}}},"example":{"model":"grok-4.5-high","messages":[{"role":"user","content":"Hello"}],"stream":false,"max_tokens":256}}}},"responses":{"200":{"description":"OpenAI-compatible chat.completion (or SSE if stream=true)"},"402":{"description":"Payment Required"}}}},"/x402/v1/chat/completions/sample":{"get":{"operationId":"chatSample","summary":"Free hourly-cached Grok chat sample","tags":["Chat","Demo"],"security":[],"responses":{"200":{"description":"Fixed-prompt live model sample"},"503":{"description":"Sample temporarily unavailable"}}}},"/x402/v1/crypto-brief":{"post":{"operationId":"cryptoBrief","summary":"Chinese crypto market brief (structured JSON)","description":"Chinese crypto brief for agents. Input symbol (+ optional context). Output bias/thesis/bullets/risks/actions. $0.03 USDC per call. Not financial advice.","tags":["Tools"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string","minLength":1,"description":"Ticker e.g. BTC / ETH / SOL / HYPE"},"context":{"type":"string","description":"Optional market notes, news blurb, or on-chain snapshot"},"focus":{"type":"string","description":"Optional focus: spot | perp | macro | news"},"locale":{"type":"string","description":"Default zh (Chinese brief)"}}},"example":{"symbol":"BTC","context":"funding 转正，现货稳，合约多头拥挤","locale":"zh"}}}},"responses":{"200":{"description":"Structured JSON brief (bias, thesis, bullets, risks, actions)"},"402":{"description":"Payment Required"}}}},"/x402/v1/crypto-brief/sample":{"get":{"operationId":"cryptoBriefSample","summary":"Free hourly-cached structured crypto brief sample","tags":["Crypto","Demo"],"security":[],"responses":{"200":{"description":"Fixed BTC context brief sample"},"503":{"description":"Sample temporarily unavailable"}}}},"/x402/v1/crypto-radar":{"post":{"operationId":"cryptoRadar","summary":"Live crypto X + web narrative radar with sources","description":"Real-time crypto narrative and sentiment research for agents. Searches X and the public web, adds a CoinGecko price snapshot, filters citations to observed source URLs, and returns structured signals/risks/watch items. $0.03 USDC per call. Not financial advice.","tags":["Live Research","Crypto"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string","minLength":1,"maxLength":20,"description":"Crypto ticker, e.g. BTC, ETH, SOL, HYPE, XRP, DOGE"},"window":{"type":"string","enum":["1h","6h","24h","7d"],"description":"Freshness window; default 6h"},"locale":{"type":"string","enum":["en","zh"],"description":"Output language; default en"},"focus":{"type":"string","maxLength":300,"description":"Optional focus such as ETF flows, exploits, regulation, or exchange flows"}}},"example":{"symbol":"BTC","window":"6h","locale":"en","focus":"ETF flows, regulation, exploits, exchange flows"}}}},"responses":{"200":{"description":"Live structured radar with market snapshot and source URLs"},"402":{"description":"Payment Required"},"502":{"description":"Live search or market upstream unavailable"}}}},"/x402/v1/crypto-radar/sample":{"get":{"operationId":"cryptoRadarSample","summary":"Free hourly-cached BTC crypto radar sample","description":"Free fixed BTC/6h demonstration of the paid crypto-radar output. Cached for one hour; use the paid endpoint for arbitrary tickers, windows, language, focus, and fresh execution.","tags":["Live Research","Demo"],"security":[],"responses":{"200":{"description":"Cached sample radar JSON"},"503":{"description":"Sample generation temporarily unavailable"}}}},"/x402/v1/summarize":{"post":{"operationId":"summarize","summary":"Chinese URL/text summary (structured JSON)","description":"Chinese summary for a public URL or raw text. Returns summary + key_points + actions. $0.02 USDC per call. Lightweight fetch, no headless browser.","tags":["Tools"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.020000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL to fetch and summarize (optional if text given)"},"text":{"type":"string","description":"Raw text to summarize (optional if url given)"},"max_chars":{"type":"number","description":"Target summary length in Chinese chars, default 500, max 1200"},"locale":{"type":"string","description":"Default zh"}},"description":"Provide at least one of url or text"},"example":{"text":"这里是一段需要摘要的中文或英文正文……","max_chars":500}}}},"responses":{"200":{"description":"Structured JSON summary (summary, key_points, actions)"},"402":{"description":"Payment Required"}}}},"/x402/v1/summarize/sample":{"get":{"operationId":"summarizeSample","summary":"Free hourly-cached structured summary sample","tags":["Tools","Demo"],"security":[],"responses":{"200":{"description":"Fixed-text summary sample"},"503":{"description":"Sample temporarily unavailable"}}}},"/x402/v1/samples":{"get":{"operationId":"listFreeSamples","summary":"List all free trial endpoints","tags":["Meta","Demo"],"security":[],"responses":{"200":{"description":"Free sample catalog"}}}},"/x402/health":{"get":{"operationId":"health","summary":"Free health / product list","description":"Unpaid liveness and product catalog (path, price, display name).","tags":["Meta"],"security":[],"responses":{"200":{"description":"Health JSON with products[]"}}}}}}