OpenAI Alternatives on x402: How to Check an AI API Before Your Agent Pays
· updated · 3 min read
More AI model APIs now sell by the call over x402: text generation, image generation, embeddings, speech. No account, no API key, no monthly plan. Your agent asks for a result, gets a price back, pays a few cents in USDC and gets the answer. That makes x402 sellers a real alternative to an OpenAI account for agents that need a model now and then.
The catch is that anyone can list one. Before your agent pays an AI API it has never used, it's worth checking that the seller actually delivers.
How paying for an AI API with x402 works
The agent calls the endpoint without paying. The server answers 402 Payment Required with a quote: the price, the network (Base or Solana, for example), the token and the wallet to pay. The agent signs a payment for that amount and sends the request again with the payment attached. The server settles it and returns the result.
A quote tells you the price. It doesn't tell you whether the model behind it works, whether the answer will match the listing, or whether the payout wallet is the seller's real one.
What can go wrong
- Paid, nothing useful back. The endpoint takes the payment and returns an error, an empty result or something unrelated. x402 has no chargeback, so a refund is up to the seller.
- A swapped payout wallet. The quote looks normal but the money goes to someone else, the usual sign of a hijacked endpoint.
- An overcharge. A price far above what the endpoint usually asks.
- Lookalikes and bulk listings. The x402 Bazaar, the catalog agents use to find paid APIs, also carries copies of real sellers and very large auto-generated listings. Of the 186,000+ endpoints Lumière PayCheck monitors, more than 100,000 are bulk listings from a couple of hosts.
Check an AI endpoint before paying
Lumière PayCheck checks every endpoint in the x402 Bazaar every 30 minutes without paying, and makes small real paid calls itself (in USDC on Base, Solana and Keeta) to see who actually delivers. Each endpoint gets an A to F grade and a verdict: proceed, caution or avoid. A and B mean a real paid test delivered. Every paid test has a signed receipt anyone can verify.
To see the grade of any endpoint for free, paste its URL into the checker, or ask the API:
GET https://lumierepaycheck.org/v1/score?url=<endpoint>Before each payment, your agent can send the quote it got and get a yes or no:
POST https://lumierepaycheck.org/v1/check-payment
{
"url": "https://example.com/v1/generate",
"amount": "10000",
"payTo": "<wallet from the quote>"
}amount is in the token's smallest units as a string: USDC has 6 decimals, so 10000 is $0.01. The answer is allow true or false, with the reasons. It says no when the endpoint failed a real paid test, when the payout wallet isn't the one the seller normally uses or declares, when the price is far above normal, or when the wallet is on the OFAC sanctions list.
Use it from your agent
Agents that use MCP tools can connect the server at https://lumierepaycheck.org/mcp, or run the lumiere-paycheck-mcp package from npm. It gives the agent check_endpoint, check_payment and report_outcome. After paying, report_outcome records whether the agent got what it paid for, which points PayCheck's paid tests at problems faster.
Where to find graded AI APIs
For a starting list, see the highest-graded x402 APIs for AI text and image generation, or browse every seller by grade in the seller directory.
FAQ
Can an x402 API replace an OpenAI account? For an agent that needs a model now and then, often yes: it pays per call with no account or key. Prices and quality vary by seller, so check the grade first.
Is checking an endpoint free? Yes. Scores, the checker and check-payment are free. Paid extras such as the full report cost a fraction of a cent in USDC.
How does PayCheck know an endpoint works? It pays the endpoint itself, at the price any buyer pays, and checks the answer against the seller's own listing. A failure only counts after a second paid test confirms it.
Check any x402 endpoint for free at lumierepaycheck.org.
Related reading
More from the blog
We started grading MPP endpoints. Here's what 1,226 of them look like.
We checked every callable endpoint in the MPP catalog and read 30 days of MPP payments on Tempo: 581,000 real payments at a median of 1 cent, 98%…
What Happens When an x402 Payment Fails
When an x402 payment fails, what happens to your money depends on where it failed. If the seller rejects the payment, nothing settles and you keep your…
How to Retry an x402 Request Without Paying Twice
To retry an x402 request without paying twice, resend the same signed payment instead of signing a new one. An x402 payment is a signed authorization with a…