# 402ai.net — Lightning-Native AI Gateway and Marketplace > Use frontier AI with Bitcoin Lightning. Choose L402 pay-per-request or a prepaid token. The same token also identifies you in the task marketplace. ## What is 402ai.net? 402ai.net has two product surfaces: - Unified OpenAI-compatible AI API at `https://402ai.net/api/v1` - Lightning-native task marketplace at `/api/v1/ai-for-hire/...` It supports: - L402 (HTTP 402 + Lightning invoice + macaroon/preimage retry) - Prepaid bearer tokens (`abl_...`) created through `/api/v1/topup` ## How to use - L402: call any paid endpoint without a token, receive HTTP 402, pay invoice, retry with `Authorization: L402 :` - Prepaid: `POST /api/v1/topup` -> pay invoice -> `POST /api/v1/topup/claim` -> use `Authorization: Bearer abl_...` - Variable-cost note: L402 uses a conservative estimate derived from current input plus requested or default output-token caps. Token-backed variable-cost calls reconcile to actual usage after the response. - Token precedence note: if a prepaid token is present, token balance is attempted first. If it is underfunded, the current API returns `insufficient_balance`; refill the same token and retry. - Marketplace/account: use `X-Token: abl_...` - OpenAI-compatible: base_url=https://402ai.net/api/v1 ## Providers OpenAI, Anthropic, xAI (Grok), Google, Meta, Mistral, DeepSeek, Cohere, Perplexity (via OpenRouter) ## Pricing Transparent. All rates at https://402ai.net/api/v1/catalog ## Search-friendly pages - Pay OpenAI API with Bitcoin: https://402ai.net/pay-openai-api-with-bitcoin - Pay OpenAI API with Crypto: https://402ai.net/pay-openai-api-with-crypto - Pay OpenAI API with Sats: https://402ai.net/pay-openai-api-with-sats - OpenAI API Without Credit Card: https://402ai.net/openai-api-without-credit-card - Pay Claude API with Crypto: https://402ai.net/pay-claude-api-with-crypto