{"openapi":"3.0.3","info":{"title":"DeepSeek-on-x402","version":"1.0.0","description":"Pay-per-call LLM API. Send any prompt, receive a DeepSeek v4 Flash response (adaptive thinking). Cost: 0.01 USDC per request on Base. Price: 0.01 USDC per request on Base. Pay via x402: the endpoint returns HTTP 402 with a payment-required header; pay and resend with x-payment."},"servers":[{"url":"https://x402-ai-api.botty4541.workers.dev"}],"paths":{"/service/chat":{"get":{"summary":"Paid LLM call","parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"DeepSeek reply (paid)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"payer":{"type":"string"},"transaction":{"type":"string"},"result":{"type":"object","properties":{"reply":{"type":"string"},"model":{"type":"string"},"promptTokens":{"type":"integer"},"completionTokens":{"type":"integer"},"reasoningTokens":{"type":"integer"}},"required":["reply","model"]}},"required":["ok","payer","transaction","result"]}}}},"402":{"description":"Payment required (x402). Pay and resend with x-payment header."}}},"post":{"summary":"Paid LLM call","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string"}},"required":["prompt"]}}}},"responses":{"200":{"description":"DeepSeek reply (paid)","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"payer":{"type":"string"},"transaction":{"type":"string"},"result":{"type":"object","properties":{"reply":{"type":"string"},"model":{"type":"string"},"promptTokens":{"type":"integer"},"completionTokens":{"type":"integer"},"reasoningTokens":{"type":"integer"}},"required":["reply","model"]}},"required":["ok","payer","transaction","result"]}}}},"402":{"description":"Payment required (x402). Pay and resend with x-payment header."}}}}}}