{"x402Version":2,"name":"Chit402","serviceName":"Chit402","tags":["treasury","possession-book","spend-receipt","x402","usdc"],"iconUrl":"https://api.xfuel.app/chit402-icon.svg","description":"Signed spend receipts for agent x402 payments — who paid which call, verifiable by a third party. Treasury desk and possession book for agent spend — export, policy, evidence. POST /v1/chat/completions is the x402 USDC door on Base and Solana. Each call returns a signed receipt: hub, model, amount, verify_url. Cost-plus, quoted, receipted. Real mainnet USDC.","x402_enabled":true,"default_rail":"usdc","pricing":{"basis":"cost_plus","currency":"USDC","platform_fee_bps":100,"min_charge_usd":0.002,"tier2_proof_usd":0.1,"stamp_fee_usd":0.002,"stamp_fee_units":"2000","per_model_rates":"/v1/models","quote_endpoint":"POST /task-quote","description":"Price is measured provider cost plus 1%, both itemised on the signed receipt, so a buyer can recompute the bill rather than trust a price list. Tier-2 SP1 settlement proofs are opt-in and charged flat on top."},"paymentProtocols":[{"network":"eip155:8453","protocol":"cdp","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","protocol":"payai","facilitator":"https://facilitator.payai.network"}],"facilitator":{"protocol":"x402","url":"https://api.cdp.coinbase.com/platform/v2/x402","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"resources":[{"type":"http","resource":"https://api.xfuel.app/v1/chat/completions","method":"POST","serviceName":"Chit402","tags":["treasury","possession-book","spend-receipt","x402","usdc"],"iconUrl":"https://api.xfuel.app/chit402-icon.svg","description":"Signed spend receipt / x402 payment receipt on every call — hub, model, amount, public verify_url (who paid which call, verifiable by a third party). Chat completions door. Cost-plus, quoted, receipted — pay USDC on Base or Solana (x402 exact scheme). Returns completion + signed Chit receipt. You hold hub, model, and amount. OpenAI-compatible wire.","accepts":[{"scheme":"exact","network":"eip155:8453","amount":"2000","maxAmountRequired":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x23f713411c30BBd9A989c9cbC22EB0b55F7f7334","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"name":"USD Coin","version":"2","challengeRequired":true},"description":"Minimum per settlement. Fetch a live 402 first. The charged amount is metered per request — see `pricing` on this manifest and POST /task-quote for an exact figure."},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","amount":"2000","maxAmountRequired":"2000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"ALLdmmAsbUnhHS7x2556449syP5Wz73Gng4gzzLHqsC7","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"feePayer":"CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww","challengeRequired":true},"description":"Solana USDC payment via PayAI facilitator. Fetch a live 402 first. Same cost-plus pricing as Base."}],"input":{"type":"object","properties":{"model":{"type":"string","example":"xfuel/auto","description":"Model id; xfuel/auto aliases to a live catalog route (Theta or Akash)"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]}},"max_tokens":{"type":"integer","description":"Maximum tokens to generate"},"temperature":{"type":"number","minimum":0,"maximum":2},"stream":{"type":"boolean","default":false},"intent_id":{"type":"string","description":"Groups retries/attempts under one treasury intent bill. Prefer explicit. Header: X-XFuel-Intent."},"attempt_index":{"type":"integer","minimum":0,"description":"Zero-based attempt within intent_id. Header: X-XFuel-Attempt."}},"required":["messages"]},"outputSchema":{"type":"object","properties":{"id":{"type":"string","example":"chatcmpl-abc123"},"object":{"type":"string","enum":["chat.completion"]},"created":{"type":"integer","description":"Unix timestamp"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}},"finish_reason":{"type":"string"}}}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}},"xfuel":{"type":"object","description":"Chit receipt with verify_url, payment_ref, task_id"}},"required":["id","choices","xfuel"]},"docs":"https://api.xfuel.app/llms.txt"},{"type":"http","resource":"https://api.xfuel.app/v1/responses","method":"POST","serviceName":"Chit402","tags":["treasury","possession-book","spend-receipt","x402","usdc"],"iconUrl":"https://api.xfuel.app/chit402-icon.svg","description":"Signed spend receipt / x402 payment receipt on every call — hub, model, amount, verify_url — same treasury desk as /v1/chat/completions. Responses API shape. Accepts input (string or message array), max_output_tokens. x402 USDC on Base or Solana. Stateless one-shot.","accepts":[{"scheme":"exact","network":"eip155:8453","amount":"2000","maxAmountRequired":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x23f713411c30BBd9A989c9cbC22EB0b55F7f7334","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"name":"USD Coin","version":"2","challengeRequired":true},"description":"Minimum per settlement. Fetch a live 402 first. The charged amount is metered per request — see `pricing` on this manifest and POST /task-quote for an exact figure."},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","amount":"2000","maxAmountRequired":"2000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"ALLdmmAsbUnhHS7x2556449syP5Wz73Gng4gzzLHqsC7","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"feePayer":"CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww","challengeRequired":true},"description":"Solana USDC payment via PayAI facilitator. Fetch a live 402 first. Same cost-plus pricing as Base."}],"input":{"type":"object","properties":{"model":{"type":"string","example":"xfuel/auto","description":"Model id; xfuel/auto aliases to a live catalog route"},"input":{"oneOf":[{"type":"string","description":"A single prompt string"},{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]},"description":"Array of message objects"}],"description":"Prompt string or array of messages"},"max_output_tokens":{"type":"integer","description":"Maximum tokens to generate"},"temperature":{"type":"number","minimum":0,"maximum":2}},"required":["input"]},"outputSchema":{"type":"object","properties":{"id":{"type":"string","example":"resp_abc123"},"object":{"type":"string","enum":["response"]},"created_at":{"type":"integer","description":"Unix timestamp"},"model":{"type":"string"},"status":{"type":"string","enum":["completed","failed"]},"output":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["message","function_call"]},"role":{"type":"string"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"text":{"type":"string"}}}}}},"description":"Array of output items (message, function_call)"},"output_text":{"type":"string","description":"Convenience field: plain text of the response"},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}},"xfuel":{"type":"object","description":"Chit receipt with verify_url, payment_ref, task_id"}},"required":["id","object","output","xfuel"]},"docs":"https://api.xfuel.app/llms.txt"},{"type":"http","resource":"https://api.xfuel.app/a2a-message","method":"POST","serviceName":"Chit402","tags":["treasury","possession-book","spend-receipt","x402","usdc"],"iconUrl":"https://api.xfuel.app/chit402-icon.svg","description":"Signed spend receipt / x402 payment receipt on every call — hub, model, amount, verify_url. A2A card URL; same receipt floor as /v1/chat/completions. x402 USDC. Collected rows land on the possession book. Unauthenticated POST {} returns HTTP 402.","accepts":[{"scheme":"exact","network":"eip155:8453","amount":"2000","maxAmountRequired":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x23f713411c30BBd9A989c9cbC22EB0b55F7f7334","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"name":"USD Coin","version":"2","challengeRequired":true},"description":"Minimum per settlement. Fetch a live 402 first. The charged amount is metered per request — see `pricing` on this manifest and POST /task-quote for an exact figure."},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","amount":"2000","maxAmountRequired":"2000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"ALLdmmAsbUnhHS7x2556449syP5Wz73Gng4gzzLHqsC7","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"feePayer":"CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww","challengeRequired":true},"description":"Solana USDC payment via PayAI facilitator. Fetch a live 402 first. Same cost-plus pricing as Base."}],"input":{"type":"object","properties":{"model":{"type":"string","example":"xfuel/auto","description":"Model id; xfuel/auto aliases to a live catalog route (Theta or Akash)"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]}},"max_tokens":{"type":"integer","description":"Maximum tokens to generate"},"temperature":{"type":"number","minimum":0,"maximum":2},"stream":{"type":"boolean","default":false},"intent_id":{"type":"string","description":"Groups retries/attempts under one treasury intent bill. Prefer explicit. Header: X-XFuel-Intent."},"attempt_index":{"type":"integer","minimum":0,"description":"Zero-based attempt within intent_id. Header: X-XFuel-Attempt."}},"required":["messages"]},"outputSchema":{"type":"object","properties":{"id":{"type":"string","example":"chatcmpl-abc123"},"object":{"type":"string","enum":["chat.completion"]},"created":{"type":"integer","description":"Unix timestamp"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}},"finish_reason":{"type":"string"}}}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}},"xfuel":{"type":"object","description":"Chit receipt with verify_url, payment_ref, task_id"}},"required":["id","choices","xfuel"]},"docs":"https://api.xfuel.app/llms.txt"},{"type":"http","resource":"https://api.xfuel.app/task-request","method":"POST","serviceName":"Chit402","tags":["treasury","possession-book","spend-receipt","x402","usdc"],"iconUrl":"https://api.xfuel.app/chit402-icon.svg","description":"Signed spend receipt / x402 payment receipt for an M2M paid task — public verify_url (who paid which job). Cost-plus, quoted, receipted — pay USDC on Base or Solana (x402 exact scheme). Returns task_id + verify_url; poll /task-status and /prove-result for SP1 proof when requested.","accepts":[{"scheme":"exact","network":"eip155:8453","amount":"2000","maxAmountRequired":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x23f713411c30BBd9A989c9cbC22EB0b55F7f7334","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"name":"USD Coin","version":"2","challengeRequired":true},"description":"Minimum per settlement. Fetch a live 402 first. The charged amount is metered per request — see `pricing` on this manifest and POST /task-quote for an exact figure."},{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","amount":"2000","maxAmountRequired":"2000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"ALLdmmAsbUnhHS7x2556449syP5Wz73Gng4gzzLHqsC7","maxTimeoutSeconds":120,"mimeType":"application/json","extra":{"feePayer":"CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww","challengeRequired":true},"description":"Solana USDC payment via PayAI facilitator. Fetch a live 402 first. Same cost-plus pricing as Base."}],"input":{"type":"object","properties":{"message_type":{"type":"string","enum":["inference_request"]},"chain_id":{"type":"string","example":"base"},"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"},"model_id":{"type":"string","example":"xfuel/auto","description":"live catalog id; list via GET /v1/models"},"input_hash":{"type":"string","description":"keccak256 of your input"},"payment":{"type":"object","properties":{"rail":{"type":"string","enum":["usdc","tfuel"]}}}},"required":["message_type","chain_id","amount","sender"]},"outputSchema":{"type":"object","properties":{"task_id":{"type":"string"},"status":{"type":"string","enum":["accepted"]},"payment_rail":{"type":"string","enum":["usdc","tfuel"]},"payment_ref":{"type":["string","null"],"description":"network:txHash settlement reference"},"verify_url":{"type":"string","description":"public, no-auth receipt page"},"gross_amount":{"type":"string","description":"Charged amount. On USDC/x402 this is the amount the payee receives."},"settled_amount":{"type":["string","null"],"description":"USDC/x402: the on-chain Transfer to the payee. Equals gross_amount once payment_ref exists; null while a rolling bill is unpaid."},"accounting":{"type":"object","description":"USDC/x402 internal accounting inside the settled amount. Not an on-chain deduction. route_margin_bps is live pricing (default 100)."},"fee_amount":{"type":"string","description":"Legacy TFUEL rail only. Absent on USDC/x402."},"net_amount":{"type":"string","description":"Legacy TFUEL rail only. Absent on USDC/x402."},"fee_bps":{"type":"integer","description":"Legacy TFUEL protocol fee in bps. Absent on USDC/x402."}},"required":["task_id","status","verify_url"]},"docs":"https://api.xfuel.app/llms.txt"}],"links":{"agent_manifest":"https://api.xfuel.app/llms.txt","agent_card":"https://api.xfuel.app/.well-known/agent-card.json","agents_register":"https://api.xfuel.app/v1/agents/register","agent_book":"https://api.xfuel.app/llms.txt","book_ingest":"https://api.xfuel.app/openapi.json","openai_models":"https://api.xfuel.app/v1/models","quote":"https://api.xfuel.app/task-quote","docs":"https://github.com/XFuel-Lab/chit402/blob/main/docs/M2M_API.md","foreign_ingest_docs":"https://github.com/XFuel-Lab/chit402/blob/main/docs/doors/foreign-paybox-ingest.md"}}