Permissionless multi-model consensus intelligence. No accounts, no API keys, no registration. Your agent pays per request with USDC and gets structured, quality-scored answers instantly.
The x402 protocol lets any AI agent pay for API calls with on-chain USDC on Base L2. Zero platform fees. No signup. Fully autonomous.
Transfer the exact amount in USDC on Base L2 to the LLM Consensus wallet. Fast mode costs $0.05, balanced $0.35, deep $4.50.
Base64-encode a JSON object containing your transaction hash and sender wallet address:{"txHash":"0x...","from":"0x..."}
Send your API request with the header X-Payment: <base64>. The server verifies on-chain and processes your prompt.
Standard discovery files so AI agents can find, understand, and integrate with LLM Consensus automatically.
Human- and machine-readable service overview. Endpoints, modes, pricing, and capabilities in plain text.
OpenAI plugin manifest. Allows ChatGPT and compatible agents to discover and use this API natively.
Full OpenAPI 3.1 specification. Every endpoint, schema, parameter, and response type, machine-parseable.
Call the API without credentials and you get a spec-compliant 402 Payment Required response with everything your agent needs to pay.
{
"error": "Payment Required",
"message": "This endpoint requires payment. Use x402 or an API key.",
"accepts": [
{
"scheme": "x402",
"network": "base",
"token": "USDC",
"address": "0xB0FdC6030B9f30652e8B221B8090d443Dd3C6381",
"pricing": {
"fast": "0.05",
"balanced": "0.35",
"deep": "4.50"
},
"spec": "https://x402.org"
},
{
"scheme": "api_key",
"header": "X-API-Key",
"register": "https://llmconsensus.io/v1/auth/register"
}
]
}
A complete example of an AI agent paying for and using the LLM Consensus API with the x402 protocol.
import json, base64, requests from web3 import Web3 # --- Config --- BASE_URL = "https://llmconsensus.io/v1" WALLET_TO = "0xB0FdC6030B9f30652e8B221B8090d443Dd3C6381" USDC_BASE = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" # USDC on Base MODE = "balanced" PRICE_USDC = 0.35 # --- Step 1: Send USDC on Base L2 --- w3 = Web3(Web3.HTTPProvider("https://mainnet.base.org")) usdc = w3.eth.contract(address=USDC_BASE, abi=ERC20_ABI) tx = usdc.functions.transfer( WALLET_TO, int(PRICE_USDC * 1e6) # USDC has 6 decimals ).build_and_send(account) receipt = w3.eth.wait_for_transaction_receipt(tx) # --- Step 2: Encode proof as base64 --- proof = json.dumps({ "txHash": receipt.transactionHash.hex(), "from": account.address }) payment_header = base64.b64encode(proof.encode()).decode() # --- Step 3: Call the API with X-Payment header --- response = requests.post( f"{BASE_URL}/orchestrate", headers={"X-Payment": payment_header}, json={ "prompt": "Compare quantum error correction approaches", "mode": MODE, "domain": "auto" } ) result = response.json() print(f"Consensus answer (score: {result['quality_score']}):") print(result["response"])
Prefer API keys and a dashboard? Register for an account, get 5 free credits, and pay with Stripe or crypto top-up. Same API, same quality, traditional auth flow.