Skip to main content
x402 Work and Hashference bring Quai Network’s Energy-Based Money thesis directly to the web and AI agent economy—turning raw Proof-of-Work computation into instant, permissionless micropayments for HTTP requests.

x402 Work Docs

Full protocol specification, facilitator details, and integration guides.

Hashference

Access 45+ frontier AI models via OpenAI & Anthropic-compatible APIs paid by compute, QUAI, or Qi.

Zero-Key Trial

Test live AI inference immediately using Proof-of-Work—no account, card, or wallet required.

What Is x402 Work?

x402 Work is an open payment scheme built on the HTTP 402 Payment Required status code. Instead of forcing human users or autonomous AI agents to register accounts, hold credit cards, or pre-fund crypto wallets with stablecoins, x402 Work lets any client pay for a web or API request by performing a few seconds of verifiable Quai Network Proof-of-Work.

Why Proof-of-Work for Machine-to-Machine Payments?

  • Zero onboarding friction: No KYC, no credit cards, no API key provisioning, and no pre-funded wallet required to start calling paid endpoints.
  • Native to AI agents: Any machine running an AI agent already possesses compute (CPU, GPU, or ASIC) and electricity—allowing agents to convert compute directly into API access.
  • Real economic value for providers: Each solved puzzle is valid Quai Network Proof-of-Work (supporting SHA-256d, Scrypt, or KawPoW profiles) verified via a hosted facilitator, so API providers require no local blockchain node setup.

How the Request Flow Works

Quickstart: Pay for an API Request with Proof-of-Work

Install the x402-work-client TypeScript/JavaScript package:
Call an x402-enabled endpoint—such as Hashference’s OpenAI-compatible chat completions API—without an API key:
When payWithWork receives an HTTP 402 challenge within your maxPrice threshold, it automatically computes the Proof-of-Work solution locally, attaches the work receipt, and retries the request.

Hashference: AI Inference Powered by Quai

Hashference is the flagship service built on top of x402 Work. It provides unified, OpenAI- and Anthropic-compatible API access to 45+ frontier and open-source AI models (including Claude, GPT, DeepSeek, and Llama families) with flexible payment modes:
  • Zero-Key Proof-of-Work (x402 Work): Pay per request using your machine’s compute—ideal for autonomous agents, scripts, and instant trials (hashference.com/zero-key).
  • QUAI & Qi Payments: Fund API usage directly with native Quai Network assets—tying AI compute consumption to Energy-Based Money.
  • CLI & MCP Integration: Built-in command-line tooling and Model Context Protocol (MCP) support so AI coding assistants and autonomous agents can discover and pay for inference natively.

Next Steps