Skip to content
onelayer.
All tools

Tool detail

Chit402

Pays via x402 USDC (Base or Solana) through an OpenAI-style chat/completions path and returns a signed spend receipt with a public verify_url, not a chat reply.

Categories: Payments

Use when

  • get a verifiable signed receipt for an x402 agent payment
  • record agent spend with a publicly verifiable proof

Not for

  • not confirmed to return an actual chat/LLM completion despite the path name
  • not testnet - paying this host is real mainnet USDC

Inputs

POST JSON body: { messages: array of {role,content} (required, up to 100 items); model, max_tokens, stream: boolean, temperature (0-2) (optional) }.

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.xfuel.app/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.xfuel.app/v1/chat/completions
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z