{
  "x402Version": 2,
  "id": 8048,
  "slug": "8048",
  "resource": "https://api.xfuel.app/task-request",
  "description": "OpenAI-compatible paid inference via x402 USDC on Base and Solana ($0.01). POST /v1/chat/completions is the recommended surface. Returns signed receipt + public verify_url. Paying this host is real mainnet USDC.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x23f713411c30BBd9A989c9cbC22EB0b55F7f7334",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "58Qo8QTJ1Sd4aXSygwAeBLNL3VrXRmfUCceB6b5RJCx6",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "chain_id": "base",
            "max_tokens": 500,
            "message_type": "inference_request",
            "messages": [
              {
                "content": "Hello",
                "role": "user"
              }
            ],
            "model_id": "xfuel/auto",
            "payment": {
              "rail": "usdc"
            },
            "sender": "YourSolanaWalletPubkey"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "fee_amount": "250",
            "gross_amount": "50000",
            "net_amount": "49750",
            "payment_rail": "usdc",
            "payment_ref": "base:0x...",
            "status": "accepted",
            "task_id": "ai-task-12345",
            "verify_url": "https://api.xfuel.app/receipt/ai-task-12345"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "amount": {
                    "description": "Gross task value in USDC base units (6 decimals); min 10000 ($0.01)",
                    "type": "string"
                  },
                  "chain_id": {
                    "description": "Settlement chain; \"base\" for USDC settlement",
                    "type": "string"
                  },
                  "input_hash": {
                    "description": "keccak256 of your input (optional; for proof binding)",
                    "type": "string"
                  },
                  "max_tokens": {
                    "description": "Output token budget (default 500)",
                    "type": "integer"
                  },
                  "message_type": {
                    "description": "Task type; only inference_request is supported via x402",
                    "enum": [
                      "inference_request"
                    ],
                    "type": "string"
                  },
                  "messages": {
                    "description": "OpenAI-style chat messages array",
                    "items": {
                      "properties": {
                        "content": {
                          "type": "string"
                        },
                        "role": {
                          "enum": [
                            "system",
                            "user",
                            "assistant"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "role",
                        "content"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "model_id": {
                    "description": "Model id from GET /v1/models; xfuel/auto routes automatically",
                    "type": "string"
                  },
                  "payment": {
                    "properties": {
                      "rail": {
                        "description": "Payment rail; use \"usdc\"",
                        "enum": [
                          "usdc"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "sender": {
                    "description": "0x address that owns/pays for the task",
                    "type": "string"
                  }
                },
                "required": [
                  "message_type",
                  "chain_id",
                  "sender"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.xfuel.app",
  "lastUpdated": "2026-08-24T13:41:30.581Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-08-24T13:41:30.168Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.xfuel.app",
    "manifest_name": "api.xfuel.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}