---
title: "x402 LLM API: pay per request in crypto, no account"
canonical: https://uncensoredllm.ai/x402-llm-api
generated: 2026-11-23T06:12:14.956Z
source: https://uncensoredllm.ai/x402-llm-api
base_url: https://api.uncensoredllm.ai/v1
---

# 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.

[Get a key](https://app.uncensoredllm.ai/console)

## The four steps

1. **Ask.** POST the request with no `Authorization` header and with `X-PAYMENT: new`. Without that header a keyless request is refused with 401.
2. **Get the quote.** The 402 body is an x402 PaymentRequired object: `accepts[0].payTo` is the checkout link, `amount` the dollars to pay, and `extra.payment_id` the id.
3. **Pay.** Open the checkout and pay in crypto. Until it confirms, a resend answers 402 `x402_payment_pending`.
4. **Resend.** Send the identical request with `X-PAYMENT: <payment id>`; it runs and returns the normal response.

```bash
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 |

One payment can serve several requests: each request sent with the same payment id spends it down, and whatever is left after the last one stays with the service. The $1 minimum makes it a poor fit for thousands of tiny calls; a key topped up from $3 is cheaper there.

## 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](https://uncensoredllm.ai/private-llm-api)).

## 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.

## Read next

- [The x402 request fields, in the docs](https://uncensoredllm.ai/docs)
- [What the gateway stores](https://uncensoredllm.ai/private-llm-api)
- [Per-token prices if you want a key](https://uncensoredllm.ai/pricing)
- [Prepaid billing, compared](https://uncensoredllm.ai/pay-per-token-uncensored-api)
