{"openapi":"3.1.0","info":{"title":"dev.fun wallet-paid inference","version":"1.0.0","description":"Keyless text chat on Monad. All amounts use six decimal places. Fixed settlement fee: USD 0.001."},"paths":{"/api/x402/v1/chat/completions":{"post":{"summary":"Chat with an x402 payment","parameters":[{"in":"header","name":"PAYMENT-SIGNATURE","required":false,"schema":{"type":"string"},"description":"Base64 x402 v2 payment; omit to obtain a quote."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","minItems":1,"items":{"type":"object"}},"max_tokens":{"type":"integer","minimum":1,"default":4096},"max_completion_tokens":{"type":"integer","minimum":1},"stream":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"OpenAI-shaped JSON or SSE output; payment confirmation may still be pending."},"400":{"description":"Invalid model, body, authorization shape or call limit."},"402":{"description":"Payment required or verification failed. An unpaid quote includes PAYMENT-REQUIRED with the same terms as the body."},"409":{"description":"Running, consumed or conflicting authorization. Check x-devfun-request-id."},"429":{"description":"IP or payer capacity reached."},"503":{"description":"Temporarily unavailable, execution ended without output, or payment risk circuit paused. Completed nondelivery records include a zero-charge payment receipt; admission timeouts require an original-authorization status lookup."}}}},"/api/x402/v1/models":{"get":{"summary":"Supported public models and retail prices","responses":{"200":{"description":"Model prices plus the fixed settlement fee."}}}},"/api/x402/v1/payments/status":{"post":{"summary":"Read payment status without executing a model","parameters":[{"in":"header","name":"PAYMENT-SIGNATURE","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Status of the original signed payment."},"404":{"description":"No matching accepted payment."}}}}}}