OpenAI-compatible paid inference via x402 USDC on Base and Solana ($0
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.
10000 (raw units)
price
5
calls / 30d
2
unique payers
2026-08-24
updated
Provider
api.xfuel.app · discovered, not yet claimed by its owner
Payment (x402 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
}
]Output schema
{
"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"
}
}
}Use it
curl
curl "https://api.xfuel.app/task-request" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.xfuel.app/task-request");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.xfuel.app/task-request")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8048.json, and this resource appears in /discovery/resources and /discovery/search.