{"uid":"cap_q0vc-fMDLsWGzCDz1QX6F","slug":"chit402-chat-completions-0564ca4d","name":"Chit402 Chat Completions","description":"Treasury desk and possession book for agent spend. Who paid which call — export, policy, evidence. POST /v1/chat/completions is the x402 USDC door on Base and Solana. Returns signed receipt + public verify_url. Paying this host is real mainnet USDC.","url":"https://api.chit402.com/v1/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model id from GET /v1/models; xfuel/auto routes automatically"},"stream":{"type":"boolean"},"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"},"max_tokens":{"type":"integer","description":"Output token budget"},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-abc123","model":"xfuel/auto","usage":{"total_tokens":15,"prompt_tokens":10,"completion_tokens":5},"xfuel":{"verify_url":"https://api.xfuel.app/receipt/xfuel-abc123"},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"created":1700000000}},"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_STEAihgtnLUq_9_yva5TW","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":"Runs OpenAI-compatible chat completions paid per-call with real USDC on Base or Solana via the x402 payment protocol, returning a signed receipt.","exampleAgentPrompt":"Using Chit402, ask the xfuel/auto model with temperature 0.7 and up to 512 tokens: 'Explain the x402 payment protocol in three sentences' — I'm okay with the USDC mainnet charge and want back the signed receipt URL.","exampleUseCases":[{"title":"Metered agent reasoning with receipts","prompt":"I'm building an autonomous agent that needs to pay per inference and log signed receipts for accounting — use Chit402 with xfuel/auto and max 1024 tokens to answer: 'What are the key risks in a DeFi lending protocol?' and give me the verify_url for the receipt."},{"title":"Streaming crypto-paid chat response","prompt":"Stream a response from Chit402 using the xfuel/auto model at temperature 0.5 — ask it: 'Write a concise product description for a hardware crypto wallet' — enable streaming and charge my USDC on Base."},{"title":"Cost-plus quoted LLM call for audit trail","prompt":"Run a quoted, receipted inference on Chit402 — model xfuel/auto, temperature 0.2, max 256 tokens — with the prompt: 'Summarize the main use cases of zero-knowledge proofs' and return both the answer and the signed receipt URL so I can verify the payment on-chain."}],"resultDescription":"Returns an OpenAI-compatible chat completion object alongside a signed payment receipt and a public verify_url that can be used to confirm the on-chain USDC transaction on Base or Solana mainnet.","failureModes":["Payment rejected or insufficient USDC balance — 402 Payment Required","Invalid or unsupported model ID — 400 Bad Request","Malformed messages array (missing role or content) — 422 Unprocessable Entity","Rate limit or quota exceeded — 429 Too Many Requests","Model unavailable or inference timeout — 503 Service Unavailable"],"whenToPreferThis":"Choose Chit402 when you need pay-per-call LLM inference charged in real USDC on Base or Solana via the x402 protocol, with a signed on-chain receipt for every call. It is ideal for autonomous agents that must audit or account for AI spend cryptographically, or for applications that want metered inference without a subscription. Prefer it over standard OpenAI-compatible hosts when the x402 payment flow, cost-plus pricing transparency, or receipt verifiability is a requirement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:12.212Z","isFirstParty":false}