venice-x402

Installation
SKILL.md

Venice x402 (wallet credits)

x402 is Venice's wallet-based payment flow. Pay per request with USDC on Base, no account required. Three admin endpoints plus the protocol-level 402 response returned by every inference endpoint.

Endpoint Auth Purpose
POST /x402/top-up None (discovery) / X-402-Payment (settlement) Discover payment requirements, then settle a signed USDC transfer.
GET /x402/balance/{walletAddress} SIWE (X-Sign-In-With-X) Current USD balance for a wallet.
GET /x402/transactions/{walletAddress} SIWE Paginated ledger: TOP_UP, CHARGE, REFUND.

For the SIWE header format itself, see venice-auth.

Pay with a wallet: end-to-end

1. Call an inference endpoint with no balance → 402

Any inference endpoint (e.g. POST /chat/completions) returns a 402 with structured topUpInstructions and siwxChallenge when the wallet balance is too low. The PAYMENT-REQUIRED response header carries the x402 v2 paymentRequired object (base64-encoded JSON containing x402Version, error, resource, accepts[], and optional extensions) — it is not the same payload as the 402 body, which is a richer balance/top-up document.

Related skills

More from veniceai/skills

Installs
29
Repository
veniceai/skills
GitHub Stars
71
First Seen
Apr 23, 2026