{"uid":"cap_3zxVjy9iRe4_6pxf9gR-V","slug":"chit402-paid-ai-inference-via-x402-f35fddc4","name":"Chit402 Paid AI Inference via x402","description":"Who paid which call — export, policy, evidence. Possession book for agent spend.","url":"https://api.chit402.com/v1/responses","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string","description":"Gross task value in USDC base units (6 decimals)"},"sender":{"type":"string","description":"0x address that owns/pays for the task"},"payment":{"type":"object","properties":{"rail":{"enum":["usdc"],"type":"string","description":"Payment rail; use \"usdc\""}}},"chain_id":{"type":"string","description":"Settlement chain; \"base\" for USDC settlement"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"description":"OpenAI-style chat messages array"},"model_id":{"type":"string","description":"Model id from GET /v1/models; xfuel/auto routes automatically"},"input_hash":{"type":"string","description":"keccak256 of your input (optional; for proof binding)"},"max_tokens":{"type":"integer","description":"Output token budget (default 500)"},"message_type":{"enum":["inference_request"],"type":"string","description":"Task type; only inference_request is supported via x402"}}},"responseSchema":{"type":"json","example":{"status":"accepted","task_id":"ai-task-12345","fee_amount":"250","net_amount":"49750","verify_url":"https://api.xfuel.app/receipt/ai-task-12345","payment_ref":"base:0x...","gross_amount":"50000","payment_rail":"usdc"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j6zsFowpNu0oRdbbLrv_5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits a paid AI inference request over the x402 USDC payment protocol, returning a receipted task ID and payment reference for treasury tracking.","exampleAgentPrompt":"Use my Base wallet 0xAbc...123 to send a paid inference request to Chit402 for up to 500 tokens using the xfuel/auto model — ask it 'What is the capital of France?' and give me back the task ID and receipt URL so I can log the spend.","exampleUseCases":[{"title":"Agent fleet spend tracking","prompt":"My autonomous agent at 0xDef...456 needs to run an AI call on Chit402 using xfuel/auto — have it ask 'Summarize this contract clause: indemnification applies to all third-party claims' with a 300-token budget, settle on Base in USDC, and return the receipt URL so I can add it to the treasury log."},{"title":"Auditable AI output for compliance","prompt":"Submit an inference request to Chit402 from wallet 0x789...abc for the message 'Generate a risk disclaimer for a DeFi product' using 400 max tokens on the xfuel/auto model, pay in USDC on Base, and give me the task ID and payment reference so we have evidence for our audit trail."},{"title":"Cost-plus AI inference for product pipeline","prompt":"I need to call Chit402's inference endpoint from wallet 0x111...222 with the message 'Write a one-paragraph product description for a Bluetooth speaker' — use xfuel/auto, cap at 500 tokens, pay in USDC on Base, and show me the fee amount and verify URL when it's done."}],"resultDescription":"Returns a JSON object with status ('accepted'), a unique task_id, the gross and net USDC amounts (in 6-decimal base units), the fee deducted, the payment rail used, a payment_ref (on-chain transaction reference on Base), and a verify_url pointing to a hosted receipt on xfuel.app for treasury verification.","failureModes":["Insufficient USDC balance or payment failure — payment not settled, task rejected","Invalid or unsupported model_id — returns error indicating model not found","Malformed messages array (missing role or content) — validation error returned","Unsupported chain_id or rail — only 'base' and 'usdc' are accepted","max_tokens exceeds model limits — request rejected or truncated","Invalid sender address format — request rejected with address parse error"],"whenToPreferThis":"Choose this endpoint when you need verifiable, receipted AI inference paid per-call in USDC on Base via the x402 protocol — especially for autonomous agent fleets that require treasury reconciliation, spend export, or compliance evidence. Prefer it over generic OpenAI-compatible endpoints when on-chain payment proof, cost-plus pricing transparency, and per-call receipt URLs are required for auditing or policy enforcement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:39:47.212Z","isFirstParty":false}