AI & Automation

What is x402?

x402 is a convention for paying for an HTTP resource with a stablecoin. The server answers an unpaid request with status 402 Payment Required and machine-readable payment terms; the client pays and repeats the request with proof of payment. It lets software, including AI agents, buy access without an account or a card.

The x402 site describes it as an open, neutral standard for internet-native payments. A version 1 quote is a JSON body with an accepts array: each entry names a scheme, a network, the asset, the amount in the asset's smallest units, the recipient and how long the quote stays valid. The client picks one entry, pays it, and retries the original request with a header that carries the proof.

There are two common ways to settle. In the facilitator model, the client signs a payment authorization and a facilitator service verifies and settles it on-chain; most x402 client libraries implement this. In the direct-transfer model, the client sends an ordinary token transfer itself and then proves it with the transaction hash, which the server reads from the chain. The quote looks the same in both, but the proof differs, so a client built for one cannot pay a server built for the other.

PROXIES.SX uses the direct-transfer model. A request to api.proxies.sx/v1/x402/pool answers 402 with the USDC amount and the address to pay on Base or Solana. The buyer sends that transfer, then repeats the request with the transaction hash in a Payment-Signature header and a random X-Claim-Secret, within 15 minutes of the block that carries the payment, and receives a capped Pool Gateway credential. Signed EIP-3009 and x402 v2 payloads are not accepted.

Treat a quote as an instruction to move money. Check the recipient against a published pricing endpoint, the asset against the official token contract, and the amount against the price you expected, and keep the agent's wallet funded with only what it may spend.

Where you meet it

You meet x402 when an API answers 402 instead of 401, when an agent framework offers to pay for a tool call, or when you want a script to buy proxy access without creating an account. The first practical question is which proof the server accepts: a signed payload for a facilitator, or the hash of a transfer you already sent.

Common questions

Is x402 a cryptocurrency?

No. It is a way of using HTTP status 402 to quote a price and accept a payment. The payment itself is usually a stablecoin such as USDC on a blockchain like Base or Solana.

Can any x402 client pay any x402 server?

Not always. Most client libraries send a signed authorization for a facilitator to settle, while some servers, including PROXIES.SX, accept only the hash of a transfer the client already made. Check which proof the server documents.

Does x402 need an account?

No. The wallet that pays is the only credential needed for the purchase. Some services also offer an account path; at PROXIES.SX, x402 is the account-less alternative to an API key.

Related terms

HTTP 402 Payment Required
HTTP 402 Payment Required is the status code a server returns when a request needs payment before it can be served. HTTP reserved it for future use for decades without defining how payment works; MDN still lists it as nonstandard. x402 and similar conventions now use it to carry machine-readable payment terms.
AI Agent
An AI agent is a program that lets a language model choose its own next action toward a goal, calling tools such as a browser, an HTTP client or a shell between reasoning steps and feeding each result back into its context. A fixed script sets the order in advance; an agent derives it from what the last step returned.
MCP
MCP, the Model Context Protocol, is an open standard for connecting AI assistants to external tools and data. A server declares the tools, resources and prompts it provides; a client such as Claude Desktop, Claude Code or an IDE discovers them at runtime over JSON-RPC and calls them on the model's behalf, so one integration works across every compatible assistant.
USDC on Solana
USDC on Solana is Circle's dollar stablecoin issued as a token on the Solana blockchain, identified by the mint address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. A Solana wallet can hold it alongside native SOL, but they are different assets, so a payout setting has to name the currency and the network.
Browser Automation
Browser automation is the scripted control of a real browser, navigating, clicking, typing and reading the rendered DOM in place of a person doing it by hand. Playwright, Puppeteer and Selenium drive Chromium, Firefox and WebKit over a debugging or WebDriver protocol, headless or with a visible window, for testing, scraping and agent work.
Puppeteer
Puppeteer is a Node.js library that drives Chrome and Chromium through the Chrome DevTools Protocol. From JavaScript it launches a browser, opens pages, clicks and types, intercepts network traffic and renders screenshots or PDFs. Teams run it to scrape pages that only assemble their content after JavaScript executes, and to automate logged-in workflows.
Playwright
Playwright is Microsoft's browser automation library. A single API drives Chromium, Firefox and WebKit, with official bindings for JavaScript, Python, .NET and Java. It has auto-waiting, isolated browser contexts, per-context proxy settings and a trace viewer that replays a failed run step by step, which makes it the usual pick for new automation projects.
Selenium
Selenium is a browser automation framework that drives real browsers through the W3C WebDriver protocol. It has official bindings for Java, Python, C#, Ruby and JavaScript, and Selenium Grid spreads runs across many machines. Long-standing use makes it the default in enterprise QA, though newer libraries handle waiting and proxy credentials with far less code.
Scrapy
Scrapy is an open-source Python framework for large-scale web crawling. Its asynchronous engine keeps many requests in flight at once, while spiders, item pipelines and downloader middlewares keep parsing separate from transport. Proxies plug into the middleware chain, so a crawl can change exit IP addresses without any edit to spider code.
API
An API (application programming interface) is a defined contract that lets one program call another. On the web that usually means HTTP endpoints returning JSON, with an authentication header, documented parameters and stable error codes. Proxy providers publish APIs so a script can list endpoints, trigger an IP rotation or read bandwidth usage without anyone opening a dashboard.

Real 4G/5G mobile and residential IPs

PROXIES.SX runs carrier IPs in many countries with HTTP and SOCKS5 on every endpoint. $4/GB down to $2.40/GB at volume, free endpoints and rotation, and your GB never expire.