{"uid":"cap_lXYgYKWZlWvb-0-An0369","slug":"x402-ai-gateway-code-explain-b1bc7c83","name":"x402 AI Gateway - Code Explain","description":"AI-powered API endpoints powered by Gemini 2.0 Flash. Pay with USDC on Base or Solana.","url":"https://x402-ai-gateway-rosy.vercel.app/api/code-explain?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["code"],"properties":{"code":{"type":"string"},"language":{"type":"string"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ACeqFqtdfUQroBhXvVqAq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Explains a given code snippet in plain language using Gemini 2.0 Flash, paid per-call with USDC on Base or Solana.","exampleAgentPrompt":"Can you explain what this Python 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":null,"resultDescription":"A plain-language explanation of the submitted code snippet, describing what it does, how it works, and any notable logic or patterns, generated by Gemini 2.0 Flash.","failureModes":["Missing required 'code' field returns validation error","Empty code string may return unhelpful or generic explanation","Unsupported or ambiguous language may reduce explanation quality","Payment failure (insufficient USDC balance or wrong network) blocks the call","Very long code snippets may hit token limits or time out"],"whenToPreferThis":"Choose this endpoint when you need a fast, AI-generated natural language explanation of a code snippet and are already operating in a crypto-native (x402) payment environment using USDC on Base or Solana. Ideal for developer tools, code review assistants, or educational applications where per-call micropayment billing is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-06-24T06:31:35.636Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T06:30:42.026Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-code-explain-b1bc7c83"}