# Chit402 Task Request — Paid AI Inference via x402

> Chit402 Task Request — Paid AI Inference via x402 is a paid API for AI agents from api.chit402.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Submit an AI inference task (chat completion) with USDC micro-payment on Base, receiving a receipted task ID and payment proof.

## Facts

- Endpoint: POST https://api.chit402.com/task-request
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chit402-task-request-paid-ai-inference-via-x402-7dd97701
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kQSlDFVpTLFSKa-Ti6tVx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chit402-task-request-paid-ai-inference-via-x402-7dd97701 -d '<json body>'
```

Example prompt: Submit an inference_request to Chit402 using model xfuel/auto, with my wallet 0xAbc123... as sender, paying 50000 USDC base units on Base chain — the message is: 'Summarize the quarterly earnings report in 3 bullet points', with a max of 500 output tokens.

## When to prefer this

Choose this endpoint when your AI agent needs to pay per inference call using USDC on Base via the x402 protocol and requires a verifiable receipt or payment reference for spend auditing, compliance, or cost attribution across multiple agents. It is especially well-suited for autonomous agent fleets where tracking which wallet paid for which LLM call is critical, or when you need a cost-plus pricing model with receipted, on-chain settlement rather than a subscription-based API.

## Known failure modes

- Insufficient USDC balance or payment failure — task rejected with payment error
- Invalid or missing sender address — 400 bad request
- Unsupported model_id — model not found error
- Malformed messages array (missing role or content) — validation error
- Unsupported chain_id or payment rail — configuration error
- input_hash mismatch if provided — proof binding failure
- Rate limiting or overload — 429 or 503 response

## How this service works

Who paid which call — export, policy, evidence. Possession book for agent spend.

## Output

Returns a JSON object confirming the task was accepted, including a unique task_id, the fee deducted, net and gross USDC amounts, the payment rail used, a Base chain transaction reference (payment_ref), and a verify_url pointing to a hosted receipt on xfuel.app for audit or proof-of-payment purposes.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chit402-task-request-paid-ai-inference-via-x402-7dd97701/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chit402.com](https://www.zero.xyz/host/api.chit402.com/llms.txt)
