Skip to content
onelayer.
All tools

Tool detail

Chit402

Runs an OpenAI-style chat completion (messages, model, temperature, max_tokens) paid per call in USDC and returns the model output plus a signed, third-party-verifiable payment receipt.

Categories: LLM inference

Use when

  • run a chat completion and get a verifiable payment receipt
  • call an OpenAI-compatible completions endpoint paid via x402 USDC

Not for

  • not a sandbox — charges real mainnet USDC per call

Inputs

POST JSON body: { messages: [{role: enum[system,user,assistant], content: string}] (required); model?, temperature? 0-2, max_tokens?, stream? bool }

Admitted input schema

{
  "type": "object",
  "properties": {
    "max_tokens": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Output token budget"
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "minLength": 0,
            "maxLength": 4096
          },
          "role": {
            "type": "string",
            "minLength": 0,
            "maxLength": 4096,
            "enum": [
              "system",
              "user",
              "assistant"
            ]
          }
        },
        "required": [
          "role",
          "content"
        ],
        "additionalProperties": false
      },
      "minItems": 0,
      "maxItems": 100,
      "description": "OpenAI-style chat messages array"
    },
    "model": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Model id from GET /v1/models; xfuel/auto routes automatically"
    },
    "stream": {
      "type": "boolean"
    },
    "temperature": {
      "type": "number",
      "minimum": 0,
      "maximum": 2
    }
  },
  "required": [
    "messages"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://api.chit402.com/v1/chat/completions

Payment

Protocol
x402
Listed price
0.002 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://api.chit402.com/v1/chat/completions
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z