{"uid":"cap_jqS9BAwSqlIH1wihAZfXD","slug":"code-explainer-plain-english-via-x402-b5f4c0b9","name":"Code Explainer — Plain English via x402","description":"Explain code snippet in plain English (paste code in message).","url":"https://linked-aimed-reproduced-changing.trycloudflare.com/v1/coder/explain?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"usage":{"type":"object"},"choices":{"type":"array"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6KeW8JaTLJKRBSE7a8RCy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a code snippet and returns a plain-English explanation of what it does, paid per call via x402.","exampleAgentPrompt":"Can you explain what this code does in plain English? Here's the snippet: `def fib(n): return n if n <= 1 else fib(n-1) + fib(n-2)`","exampleUseCases":[{"title":"Onboarding developer understanding legacy code","prompt":"I just inherited this codebase and have no idea what this function does — can you explain it to me in plain English? Here it is: `function throttle(fn, delay) { let last = 0; return (...args) => { const now = Date.now(); if (now - last >= delay) { last = now; fn(...args); } }; }`"},{"title":"Non-technical PM reviewing pull request","prompt":"I'm not a developer but I need to understand what this change does before approving it. Can you explain this Python snippet in plain English? `with open('data.csv') as f: reader = csv.DictReader(f); rows = [r for r in reader if float(r['score']) > 0.8]`"},{"title":"Student debugging unfamiliar algorithm","prompt":"I found this sorting algorithm online and I don't understand how it works — can you explain it step by step in plain English? `def quicksort(arr): if len(arr) <= 1: return arr; pivot = arr[len(arr)//2]; return quicksort([x for x in arr if x < pivot]) + [pivot] + quicksort([x for x in arr if x > pivot])`"}],"resultDescription":"A natural language explanation of the provided code snippet describing what it does, how it works, and the logic flow — returned as a text response suitable for non-technical readers or developers seeking clarity.","failureModes":["Empty or missing code snippet causes unclear or generic response","Very long code snippets may be truncated or partially explained","Non-standard or obfuscated code may yield inaccurate explanations","Payment failure via x402 returns 402 Payment Required before processing","Malformed request body returns an error before explanation is generated"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use plain-English explanation of a code snippet without requiring a full LLM API subscription. Ideal for agents assisting non-technical users, code review pipelines, or developer onboarding workflows where cost per call ($0.02 USDC) is acceptable and you want a focused explanation rather than code generation or debugging.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:42:23.498Z","isFirstParty":false,"canonicalSlug":"code-explainer-plain-english-via-x402-b5f4c0b9"}