HTTP 402 · Payment Required

AI, paid bythe call in BSV.

Chat, images, video, music and transcription through one OpenAI-compatible API. Pay a few satoshis per call. No card. No account needed.

Models

Ask for a task name and BSVAPI picks the model, falling back to another if one is down.

b/chatEveryday chatgrok-3-mini → gemma-4-31b → nemotron-3.5-lightning
b/fastQuick, cheap repliesgrok-3-mini → nemotron-3.5-lightning → gemma-4-31b
b/smartHarder questionsgrok-3 → nemotron-3-ultra → gemma-4-31b
Chat modelInput / 1M tokensOutput / 1M tokens
grok-3$6.00$30.00
grok-3-mini$0.60$1.00
grok-2$4.00$20.00
gemma-4-31bfreefree
nemotron-3.5-lightningfreefree
nemotron-3-ultrafreefree
ServiceWhat it doesPrice
image-sdxlz-image/turbo image generation$0.02
image-fluxseedream-v5.0-lite image generation$0.06
video-wanWan 2.1 text/image-to-video$0.30
video-klingKling video generation$0.60
whisperWhisper large-v3 transcription (per minute)$0.01
music-genMusicGen audio generation$0.10

Prices in US dollars, paid in BSV at the current rate, with a minimum per call. Get the exact price in satoshis first with POST /api/v1/price.

How it works

1AskSend your request. BSVAPI answers 402 with the price in satoshis and the address to pay.
2PayPay that address from bWalletX or any BSV wallet, then resend with the txid in x-bsv-payment.
3Get your answerThe payment is checked on chain and your answer comes back with a receipt. A failed call can be retried with the same payment.
POST /api/v1/chat/completions
{"model":"b/chat","messages":[{"role":"user","content":"Hello"}]}

← 402 Payment Required
← x-bsv-payment-satoshis-required: 500

POST /api/v1/chat/completions
x-bsv-payment: <txid>

← 200 OK  { "choices": [...], "payment": { "txid": "…", "satoshisPaid": 500 } }

For businesses

Registered clients get an API key, prepaid credits in BSV and volume discounts. Calls that fail upstream are refunded, and chat is charged on actual usage.

POST /api/v1/chat/completions
Authorization: Bearer bsvapi_sk_yourcompany_xxx
{"model":"b/smart","messages":[...]}

Reference

GET /api/v1/modelsList models, task names and services. Free.
POST /api/v1/pricePrice a request in satoshis before you call it. Free.
POST /api/v1/chat/completionsOpenAI-compatible chat, streaming supported.
POST /api/v1/images/generateImages.
POST /api/v1/video/generateVideo.
POST /api/v1/music/generateMusic.
POST /api/v1/transcriptionsSpeech to text.

Implements BRC-105 HTTP Service Monetization; works with PacketPay clients.

What works today