AI inference.
No accounts required.

$ curl -X POST https://llm402.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: L402 <macaroon>:<preimage>" \
  -d '{"model":"auto","messages":[{"role":"user","content":"hello"}]}'
See full L402 flow
$ curl -X POST https://llm402.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Payment-Signature: <base64 x402 payload>" \
  -d '{"model":"auto","messages":[{"role":"user","content":"hello"}]}'
See full x402 flow
$ curl -X POST https://llm402.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-Cashu: <cashuB token>" \
  -d '{"model":"auto","messages":[{"role":"user","content":"hello"}]}'
See full Cashu flow
$ curl -X POST https://llm402.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <bal_token>" \
  -d '{"model":"auto","messages":[{"role":"user","content":"hello"}]}'
See full prepaid balance flow
View Docs Browse Models