API reference · Public
x402 pay per request: whether it is on, and on what terms
GET/api/x402No key
With x402 on (the operator set ANTIMATTER_X402_FACILITATOR_URL and ANTIMATTER_DEPOSIT_ADDRESS), a POST to /v1/chat/completions, /v1/messages, /v1/responses or /v1/embeddings with no key is answered 402 with an x402 version 2 PaymentRequired (body and PAYMENT-REQUIRED header): the request's worst case in USDC on each accepted network, exact scheme, EIP-3009. Retry with the signed authorization in PAYMENT-SIGNATURE; the payment is settled through the facilitator before the request is served, credited to the paying wallet's own account, and the answer carries PAYMENT-RESPONSE. What the request does not spend stays on that wallet's balance. With x402 off a keyless request is a 401, as it always was.
Answer 200
The x402 configuration a payer needs; the price is on each request's 402.
| Field | Type | What it is |
|---|---|---|
| enabled | boolean | Whether keyless requests are offered x402 payment. |
| reason | string or null | Why it is off, or null when it is on. |
| x402Version | integer | The protocol version spoken: 2. |
| scheme | string | The payment scheme: exact. |
| payTo | string or null | The operator's wallet the payment goes to. |
| networks | array of object | |
| networks[] | string | CAIP-2 network id, eip155:<chainId>. |
| networks[] | string | The network's name. |
| networks[] | string | The USDC contract, lower case. |
| networks[] | string | USDC. |
| networks[] | integer | The token's configured decimals. |
| networks[] | object | |
| networks[] | string | |
| networks[] | string | |
| resources | array of string |