x402 充值
Top up your Venice credit balance using a PAYMENT-SIGNATURE header (the legacy X-402-Payment and X-PAYMENT header names are also accepted). If the header is missing, the endpoint returns payment requirements.
This is the primary x402 payment endpoint. It currently returns Base and Solana USDC payment options in the accepts array. All inference endpoints (chat, image, audio, video) consume from the credit balance you establish here.
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求头
Signed x402 v2 payment payload (base64-encoded PaymentPayload) used to top up the wallet balance on a supported rail such as Base or Solana. The canonical header is PAYMENT-SIGNATURE; the X-402-Payment and X-PAYMENT names are also accepted for backwards compatibility. If no payment header is present, the endpoint returns the 402 payment requirements.
"eyJ4NDAyVmVyc2lvbiI6MiwicGF5bG9hZCI6Ii4uLiJ9"
请求体
No JSON body required. Payment is sent via the X-402-Payment header. Send an empty POST to discover payment requirements.
The body is of type object.