{"openapi":"3.1.0","info":{"title":"SolEdge Compute","x-guidance":"Paid /api/v1 and /api/v1beta POST operations cost $0.002 USDC for multi-chain RPC and $0.03 USDC for LLM, search, and compute via x402 v2 on Solana mainnet: call without payment to receive 402 with PAYMENT-REQUIRED, sign the requirement, and retry with PAYMENT-SIGNATURE. Pyth and health routes are free. The separate prepaid API is described at /legacy-openapi.json.","version":"0.1.0","description":"Flat $0.002 USDC per RPC call and $0.03 USDC per AI/search call on Solana Mainnet (x402 v2, gasless fee-payer). Access OpenAI-compatible & Gemini LLM chat, typed agent decisions, live web/news search, and multi-chain JSON-RPC (Solana, Ethereum, Base, Arbitrum, Polygon) with zero API keys or sign-ups, plus free real-time Pyth market feeds.","contact":{"email":"timothyhuff25@gmail.com"}},"paths":{"/api/v1/chat/completions":{"post":{"operationId":"v1_chat_completions","summary":"Chat completion (OpenAI or Gemini models)","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","minItems":1,"items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"stream":{"const":false}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["choices"],"properties":{"id":{"type":"string"},"object":{"type":"string"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]}}},"finish_reason":{"type":["string","null"]}}}}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/decisions":{"post":{"operationId":"v1_decisions","summary":"Structured decision via chat completion","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","minItems":1,"items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"stream":{"const":false}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["choices"],"properties":{"id":{"type":"string"},"object":{"type":"string"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]}}},"finish_reason":{"type":["string","null"]}}}}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/compute":{"post":{"operationId":"v1_compute","summary":"Execute a native compute task","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task","input"],"properties":{"task":{"enum":["parse_html","transform_json","crypto_hash","math_eval"]},"input":{"type":"object"},"max_ms":{"type":"integer","minimum":1,"maximum":2000}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/rpc/{network}":{"post":{"operationId":"v1_rpc_network","summary":"Multi-chain JSON-RPC 2.0 passthrough","security":[{"x402":[]}],"parameters":[{"in":"path","name":"network","required":true,"schema":{"enum":["solana","ethereum","base","polygon","arbitrum"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","id"],"properties":{"jsonrpc":{"const":"2.0"},"method":{"type":"string"},"params":{"type":["object","array"]},"id":{"type":["string","number"]}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","result"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","number"]},"result":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/search":{"post":{"operationId":"v1_search","summary":"Live web or news search","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","minLength":1,"maxLength":400},"type":{"enum":["web","news"]}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","description":"Provider-specific search response","properties":{"web":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object"}}}},"results":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/health":{"get":{"operationId":"v1_health","summary":"Health check","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string"}}}}}},"502":{"description":"Upstream unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/pyth/list":{"get":{"operationId":"v1_pyth_list","summary":"List Pyth price feeds (free)","security":[],"parameters":[{"in":"query","name":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"502":{"description":"Upstream unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/pyth/price/{id}":{"get":{"operationId":"v1_pyth_price","summary":"Latest Pyth price (free)","security":[],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","pattern":"^(0x)?[a-fA-F0-9]{64}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"502":{"description":"Upstream unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/chat/completions":{"post":{"operationId":"v1beta_chat_completions","summary":"Chat completion (OpenAI or Gemini models)","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","minItems":1,"items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"stream":{"const":false}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["choices"],"properties":{"id":{"type":"string"},"object":{"type":"string"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]}}},"finish_reason":{"type":["string","null"]}}}}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/decisions":{"post":{"operationId":"v1beta_decisions","summary":"Structured decision via chat completion","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","minItems":1,"items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"stream":{"const":false}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["choices"],"properties":{"id":{"type":"string"},"object":{"type":"string"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]}}},"finish_reason":{"type":["string","null"]}}}}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/compute":{"post":{"operationId":"v1beta_compute","summary":"Execute a native compute task","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task","input"],"properties":{"task":{"enum":["parse_html","transform_json","crypto_hash","math_eval"]},"input":{"type":"object"},"max_ms":{"type":"integer","minimum":1,"maximum":2000}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/rpc/{network}":{"post":{"operationId":"v1beta_rpc_network","summary":"Multi-chain JSON-RPC 2.0 passthrough","security":[{"x402":[]}],"parameters":[{"in":"path","name":"network","required":true,"schema":{"enum":["solana","ethereum","base","polygon","arbitrum"]}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","id"],"properties":{"jsonrpc":{"const":"2.0"},"method":{"type":"string"},"params":{"type":["object","array"]},"id":{"type":["string","number"]}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","result"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","number"]},"result":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/search":{"post":{"operationId":"v1beta_search","summary":"Live web or news search","security":[{"x402":[]}],"parameters":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","minLength":1,"maxLength":400},"type":{"enum":["web","news"]}}}}}},"responses":{"200":{"description":"Completed and settled","content":{"application/json":{"schema":{"type":"object","description":"Provider-specific search response","properties":{"web":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object"}}}},"results":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"x402 v2 payment required; amounts are USDC atomic units","headers":{"PAYMENT-REQUIRED":{"description":"Base64 PaymentRequired object","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"error":{"type":"string"},"accepts":{"type":"array","minItems":1,"items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string"},"maxAmountRequired":{"type":"string"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}}}}}},"409":{"description":"Payment already used or in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/health":{"get":{"operationId":"v1beta_health","summary":"Health check","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string"}}}}}},"502":{"description":"Upstream unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/pyth/list":{"get":{"operationId":"v1beta_pyth_list","summary":"List Pyth price feeds (free)","security":[],"parameters":[{"in":"query","name":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"502":{"description":"Upstream unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1beta/pyth/price/{id}":{"get":{"operationId":"v1beta_pyth_price","summary":"Latest Pyth price (free)","security":[],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","pattern":"^(0x)?[a-fA-F0-9]{64}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"502":{"description":"Upstream unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"Base64-encoded x402 v2 payment payload"},"session":{"type":"http","scheme":"bearer","description":"Opaque token obtained through a signed wallet challenge."}},"headers":{"Multiplier":{"description":"Surge multiplier at reservation","schema":{"enum":[1,1.5,3]}}},"responses":{"Error":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"ComputeRequest":{"type":"object","required":["task","input"],"properties":{"max_ms":{"type":"integer","minimum":1,"maximum":2000,"default":2000}},"oneOf":[{"properties":{"task":{"const":"parse_html"},"input":{"$ref":"#/components/schemas/ParseHtmlInput"}}},{"properties":{"task":{"const":"transform_json"},"input":{"$ref":"#/components/schemas/TransformJsonInput"}}},{"properties":{"task":{"const":"crypto_hash"},"input":{"$ref":"#/components/schemas/CryptoHashInput"}}},{"properties":{"task":{"const":"math_eval"},"input":{"$ref":"#/components/schemas/MathEvalInput"}}}]},"ParseHtmlInput":{"type":"object","description":"Supply HTML or an HTTPS URL on the worker's allowlist.","properties":{"html":{"type":"string"},"url":{"type":"string","format":"uri"}},"anyOf":[{"required":["html"]},{"required":["url"]}]},"TransformJsonInput":{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"type":"object"},{"type":"array","items":{"type":"object"}}]},"filter":{"type":"object","description":"Exact top-level property matches"},"fields":{"type":"array","items":{"type":"string"}},"normalize":{"type":"boolean","description":"Trim projected string values"}}},"CryptoHashInput":{"type":"object","required":["algorithm","data"],"properties":{"algorithm":{"enum":["SHA-256","SHA-512","HMAC","Ed25519"]},"data":{"type":"string","description":"UTF-8 data"},"key":{"type":"string","description":"Hex HMAC key"},"public_key":{"type":"string","description":"Hex Ed25519 public key"},"signature":{"type":"string","description":"Hex Ed25519 signature"}}},"MathEvalInput":{"type":"object","required":["values"],"properties":{"values":{"type":"array","minItems":1,"maxItems":100000,"items":{"type":"number","minimum":-1e+100,"maximum":1e+100}},"percentiles":{"type":"array","items":{"type":"number","minimum":0,"maximum":100}}}},"ParseHtmlResult":{"type":"object","required":["text","links","meta"],"properties":{"text":{"type":"string"},"links":{"type":"array","items":{"type":"string"}},"meta":{"type":"object","additionalProperties":{"type":"string"}}}},"TransformJsonResult":{"description":"A projected object, array of objects, or null when the single object does not match the filter.","type":["object","array","null"]},"CryptoHashResult":{"type":"object","properties":{"digest":{"type":"string","description":"Hex digest for hashes and HMAC"},"valid":{"type":"boolean","description":"Ed25519 verification result"}},"oneOf":[{"required":["digest"]},{"required":["valid"]}]},"MathEvalResult":{"type":"object","required":["mean","median","min","max","standard_deviation","percentiles"],"properties":{"mean":{"type":"number"},"median":{"type":"number"},"min":{"type":"number"},"max":{"type":"number"},"standard_deviation":{"type":"number"},"percentiles":{"type":"object","additionalProperties":{"type":"number"}}}}}},"tags":[{"name":"ai","description":"AI inference and agent workflows"},{"name":"llm","description":"OpenAI-compatible and Gemini LLM completions"},{"name":"solana","description":"Solana Mainnet x402 v2 USDC payments and RPC"},{"name":"rpc","description":"Multi-chain JSON-RPC 2.0 passthrough"},{"name":"search","description":"Real-time web and news search"},{"name":"market-data","description":"Free Pyth real-time crypto, FX, and commodity prices"}]}