{"openapi":"3.1.0","info":{"title":"fold · x402","version":"1.0.0","description":"Machine-readable market intelligence for onchain agents, served over x402.","x-guidance":"fold serves its own market analysis across 636 perpetual markets, priced per call in USDC over x402. Use GET /signal?symbol=BTC for a disciplined long/short/hold view with reasoning. Use GET /scan to screen the whole universe by 24h change, funding or volume. GET /structure, /indicators, /levels and /snapshot give the underlying Wyckoff structure, technicals, key levels and live market data for one symbol; /read combines them. GET /funding-scan finds crowded longs/shorts, /divergence finds RSI-vs-price disagreements, and /setups returns actionable structural setups across the market. Onchain token data (price, security, holders, trending, yield) is also served free at the same origin without payment.","contact":{"email":"dev@fold.computer"}},"servers":[{"url":"https://x402.fold.computer"}],"paths":{"/structure":{"get":{"operationId":"structureGet","summary":"fold Wyckoff structural analysis — trend, BOS/CHoCH, range, support/resistance, pressure across 1h+4h","tags":["fold engine"],"parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","example":"BTC"},"description":"Perp symbol, e.g. BTC, ETH, SOL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"symbol":"BTC"}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"symbol":{"type":"string","description":"Perp symbol, e.g. BTC, ETH, SOL","example":"BTC"}},"required":["symbol"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"trend, BOS/CHoCH, range, support/resistance, pressure across 1h+4h"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"trend, BOS/CHoCH, range, support/resistance, pressure across 1h+4h"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/indicators":{"get":{"operationId":"indicatorsGet","summary":"fold Technical indicators — RSI, ATR%, z-score, relative volume, regime","tags":["fold engine"],"parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","example":"BTC"},"description":"Perp symbol, e.g. BTC, ETH, SOL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"symbol":"BTC"}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"symbol":{"type":"string","description":"Perp symbol, e.g. BTC, ETH, SOL","example":"BTC"}},"required":["symbol"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"RSI, ATR%, z-score, relative volume, regime"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"RSI, ATR%, z-score, relative volume, regime"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/levels":{"get":{"operationId":"levelsGet","summary":"fold Key levels — nearest support/resistance, range top/bottom","tags":["fold engine"],"parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","example":"BTC"},"description":"Perp symbol, e.g. BTC, ETH, SOL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"symbol":"BTC"}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"symbol":{"type":"string","description":"Perp symbol, e.g. BTC, ETH, SOL","example":"BTC"}},"required":["symbol"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"nearest support/resistance, range top/bottom"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"nearest support/resistance, range top/bottom"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/snapshot":{"get":{"operationId":"snapshotGet","summary":"fold Market snapshot — price, 24h change, funding rate, quote volume","tags":["fold engine"],"parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","example":"BTC"},"description":"Perp symbol, e.g. BTC, ETH, SOL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"symbol":"BTC"}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"symbol":{"type":"string","description":"Perp symbol, e.g. BTC, ETH, SOL","example":"BTC"}},"required":["symbol"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"price, 24h change, funding rate, quote volume"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"price, 24h change, funding rate, quote volume"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/read":{"get":{"operationId":"readGet","summary":"fold Full market read — structure + indicators + levels + funding in one call","tags":["fold engine"],"parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","example":"BTC"},"description":"Perp symbol, e.g. BTC, ETH, SOL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.008000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"symbol":"BTC"}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"symbol":{"type":"string","description":"Perp symbol, e.g. BTC, ETH, SOL","example":"BTC"}},"required":["symbol"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"structure + indicators + levels + funding in one call"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"structure + indicators + levels + funding in one call"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/signal":{"get":{"operationId":"signalGet","summary":"fold Trading signal — long/short/hold with confidence, stop, target, R:R and reasoning","tags":["fold engine"],"parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","example":"BTC"},"description":"Perp symbol, e.g. BTC, ETH, SOL"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.020000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"symbol":"BTC"}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"symbol":{"type":"string","description":"Perp symbol, e.g. BTC, ETH, SOL","example":"BTC"}},"required":["symbol"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"long/short/hold with confidence, stop, target, R:R and reasoning"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"long/short/hold with confidence, stop, target, R:R and reasoning"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/scan":{"get":{"operationId":"scanGet","summary":"fold Universe scan — screen the entire perp universe; sort by change/funding/volume","tags":["fold engine"],"parameters":[{"name":"full","in":"query","required":false,"schema":{"type":"boolean"},"description":"Scan all 636 markets instead of top 50"},{"name":"minVol","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum 24h quote volume filter"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"full":{"type":"boolean","description":"Scan all 636 markets instead of top 50"},"minVol":{"type":"number","description":"Minimum 24h quote volume filter"}},"required":[]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"screen the entire perp universe; sort by change/funding/volume"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"screen the entire perp universe; sort by change/funding/volume"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/funding-scan":{"get":{"operationId":"fundingscanGet","summary":"fold Funding scan — most extreme funding — crowded longs and shorts","tags":["fold engine"],"parameters":[{"name":"full","in":"query","required":false,"schema":{"type":"boolean"},"description":"Scan all 636 markets instead of top 50"},{"name":"minVol","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum 24h quote volume filter"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"full":{"type":"boolean","description":"Scan all 636 markets instead of top 50"},"minVol":{"type":"number","description":"Minimum 24h quote volume filter"}},"required":[]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"most extreme funding — crowded longs and shorts"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"most extreme funding — crowded longs and shorts"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/divergence":{"get":{"operationId":"divergenceGet","summary":"fold Divergence scan — coins where RSI and price disagree — reversal candidates","tags":["fold engine"],"parameters":[{"name":"full","in":"query","required":false,"schema":{"type":"boolean"},"description":"Scan all 636 markets instead of top 50"},{"name":"minVol","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum 24h quote volume filter"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"full":{"type":"boolean","description":"Scan all 636 markets instead of top 50"},"minVol":{"type":"number","description":"Minimum 24h quote volume filter"}},"required":[]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"coins where RSI and price disagree — reversal candidates"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"coins where RSI and price disagree — reversal candidates"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/setups":{"get":{"operationId":"setupsGet","summary":"fold Structural setups — actionable long/short structures across the whole market","tags":["fold engine"],"parameters":[{"name":"full","in":"query","required":false,"schema":{"type":"boolean"},"description":"Scan all 636 markets instead of top 50"},{"name":"minVol","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum 24h quote volume filter"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"queryParams":{"type":"object","properties":{"full":{"type":"boolean","description":"Scan all 636 markets instead of top 50"},"minVol":{"type":"number","description":"Minimum 24h quote volume filter"}},"required":[]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"actionable long/short structures across the whole market"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"object","description":"actionable long/short structures across the whole market"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/gpt-5-5":{"post":{"operationId":"llmgpt55","summary":"fold LLM — OpenAI GPT-5.5 via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.50"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/gpt-5-5-pro":{"post":{"operationId":"llmgpt55pro","summary":"fold LLM — OpenAI GPT-5.5 Pro via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"1.00"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/claude-opus-4-8":{"post":{"operationId":"llmclaudeopus48","summary":"fold LLM — Anthropic Claude Opus 4.8 via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.50"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/claude-sonnet":{"post":{"operationId":"llmclaudesonnet","summary":"fold LLM — Anthropic Claude Sonnet via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.30"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/gemini-3-5-flash":{"post":{"operationId":"llmgemini35flash","summary":"fold LLM — Google Gemini 3.5 Flash via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.20"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/gemini-3-pro":{"post":{"operationId":"llmgemini3pro","summary":"fold LLM — Google Gemini 3 Pro via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.30"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/grok-4-3":{"post":{"operationId":"llmgrok43","summary":"fold LLM — xAI Grok 4.3 via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.30"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/qwen3-7-max":{"post":{"operationId":"llmqwen37max","summary":"fold LLM — Qwen3.7 Max via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.20"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm/qwen3-6-flash":{"post":{"operationId":"llmqwen36flash","summary":"fold LLM — Qwen3.6 Flash via fold, zero markup","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"0.10"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/prediction":{"post":{"operationId":"predictionMarkets","summary":"fold prediction markets — live odds, probabilities and volume from Polymarket. Search by topic or get top markets. What the crowd is betting on. Zero markup.","tags":["fold markets"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"query":"bitcoin","limit":10}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"query":{"type":"string","description":"topic to search markets, e.g. fed rate, bitcoin","example":"bitcoin"},"limit":{"type":"number","description":"1-30 markets","example":10}}}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"topic to search markets, e.g. fed rate, bitcoin","example":"bitcoin"},"limit":{"type":"number","description":"1-30 markets","example":10}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/rpc":{"post":{"operationId":"onchainRpc","summary":"fold onchain RPC — read 5 EVM chains (base, ethereum, arbitrum, optimism, polygon). Balances, contract calls, logs, receipts, blocks. Read-only, keyless, zero markup.","tags":["fold onchain"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"chain":"base","method":"eth_blockNumber","params":[]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"chain":{"type":"string","description":"base, ethereum, arbitrum, optimism, polygon","example":"base"},"method":{"type":"string","description":"read-only JSON-RPC method, e.g. eth_getBalance","example":"eth_getBalance"},"params":{"type":"array","description":"JSON-RPC params","example":["0x...","latest"]}},"required":["chain","method"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","description":"base, ethereum, arbitrum, optimism, polygon","example":"base"},"method":{"type":"string","description":"read-only JSON-RPC method, e.g. eth_getBalance","example":"eth_getBalance"},"params":{"type":"array","description":"JSON-RPC params","example":["0x...","latest"]}},"required":["chain","method"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/extract":{"post":{"operationId":"webExtract","summary":"fold web extract — turn any URL into clean text. Read whitepapers, docs, articles. Up to 5 URLs per call. Zero markup.","tags":["fold search"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"urls":["https://example.com/article"]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string"},"description":"URLs to extract (up to 5)","example":["https://example.com/article"]},"text":{"type":"boolean","description":"include full text (default true)"}},"required":["urls"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string"},"description":"URLs to extract (up to 5)","example":["https://example.com/article"]},"text":{"type":"boolean","description":"include full text (default true)"}},"required":["urls"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/search":{"post":{"operationId":"webSearch","summary":"fold web search — neural and news search over the live web. Filter by category (news, company, financial report), get titles, URLs, dates and extracted highlights. Trading-grade, zero markup.","tags":["fold search"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.007000"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"query":"bitcoin ETF news","category":"news","numResults":5}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"query":{"type":"string","description":"Search query, e.g. bitcoin ETF news","example":"bitcoin ETF news"},"category":{"type":"string","description":"news, company, research paper, financial report, etc.","example":"news"},"numResults":{"type":"number","description":"1-10 results","example":5},"text":{"type":"boolean","description":"include full page text"}},"required":["query"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Search query, e.g. bitcoin ETF news","example":"bitcoin ETF news"},"category":{"type":"string","description":"news, company, research paper, financial report, etc.","example":"news"},"numResults":{"type":"number","description":"1-10 results","example":5},"text":{"type":"boolean","description":"include full page text"}},"required":["query"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"results: title, url, publishedDate, highlights"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}},"/llm":{"post":{"operationId":"llmGateway","summary":"fold LLM gateway — 339 models (OpenAI, Anthropic, Google, Meta, xAI, Qwen, and more) via one OpenAI-compatible endpoint. Pick any model with the model param. Zero markup, pay only provider cost settled from real token usage.","tags":["fold llm"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.0005","max":"2.00"},"protocols":[{"x402":{}}]},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"model":"openai/gpt-5.5","messages":[{"role":"user","content":"hi"}]}},"output":{"type":"json","example":{"status":"success","data":{}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"model":{"type":"string","description":"OpenRouter model id, e.g. openai/gpt-5.5, anthropic/claude-opus-4.8. See GET /llm/models for all 339.","example":"openai/gpt-5.5"},"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["model","messages"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}},"required":["type"]}},"required":["input"]}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"OpenRouter model id, e.g. openai/gpt-5.5, anthropic/claude-opus-4.8. See GET /llm/models for all 339.","example":"openai/gpt-5.5"},"messages":{"type":"array","description":"OpenAI-format chat messages","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"},"temperature":{"type":"number"}},"required":["model","messages"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","description":"OpenAI-format completion + x402 cost info"}},"required":["status","data"]}}}},"402":{"description":"Payment Required"}}}}}}