Pay per request with x402.
Send a request with no key and the header X-PAYMENT: new to https://api.uncensoredllm.ai/v1/chat/completions and the API answers HTTP 402 with an x402 quote and a crypto checkout link. Pay it, resend the same request with X-PAYMENT: <payment id>, and it runs on a model such as glm-5.3-uncensored without any sign-up or credential. Each checkout is at least $1.
The four steps
- Ask. POST the request with no
Authorizationheader and withX-PAYMENT: new. Without that header a keyless request is refused with 401. - Get the quote. The 402 body is an x402 PaymentRequired object:
accepts[0].payTois the checkout link,amountthe dollars to pay, andextra.payment_idthe id. - Pay. Open the checkout and pay in crypto. Until it confirms, a resend answers 402
x402_payment_pending. - Resend. Send the identical request with
X-PAYMENT: <payment id>; it runs and returns the normal response.
curl -i https://api.uncensoredllm.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "X-PAYMENT: new" \ -d '{"model": "glm-5.3-uncensored", "messages": [{"role": "user", "content": "Summarize x402 in one line."}]}'# -> HTTP/1.1 402 Payment Required: accepts[0].payTo (checkout link), amount (USD), extra.payment_id# Pay, then resend the same request with -H "X-PAYMENT: <payment_id>"When x402 fits, and when a key fits better
| Use x402 for | Use a key for |
|---|---|
| An agent that pays its own way with no stored credential | Anything that runs more than a handful of times |
| A one-off script on a machine you don't trust with a key | Apps where waiting on a checkout would be too slow |
| Trying a model with no sign-up at all | Volume work, which earns the bonus credit and co-op discount |
What x402 leaves behind
No account and no key. The checkout records the payment, and usage is recorded per request as usual. Prompt bodies aren’t stored (see the private-API page).
x402: questions
What is x402?
An open protocol that uses HTTP status 402, "Payment Required", so a server can quote a price and a client can pay and retry automatically. Here a keyless request with X-PAYMENT: new opens a one-time crypto checkout; you reuse the payment id across requests. See x402.org.
Is there a minimum payment?
Yes, $1. Requests sent with the same payment id spend it down, and any remainder after the last one is not refunded.
Which endpoints accept x402?
The text endpoints, including chat completions, Anthropic-format messages and Responses. Media generation and some others need a key; the docs list the current set. See the docs.