HTTP 402 · Payment Required
Chat, images, video, music and transcription through one OpenAI-compatible API. Pay a few satoshis per call. No card. No account needed.
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-lightningb/fastQuick, cheap repliesgrok-3-mini → nemotron-3.5-lightning → gemma-4-31bb/smartHarder questionsgrok-3 → nemotron-3-ultra → gemma-4-31b| Chat model | Input / 1M tokens | Output / 1M tokens |
|---|---|---|
grok-3 | $6.00 | $30.00 |
grok-3-mini | $0.60 | $1.00 |
grok-2 | $4.00 | $20.00 |
gemma-4-31b | free | free |
nemotron-3.5-lightning | free | free |
nemotron-3-ultra | free | free |
| Service | What it does | Price |
|---|---|---|
image-sdxl | z-image/turbo image generation | $0.02 |
image-flux | seedream-v5.0-lite image generation | $0.06 |
video-wan | Wan 2.1 text/image-to-video | $0.30 |
video-kling | Kling video generation | $0.60 |
whisper | Whisper large-v3 transcription (per minute) | $0.01 |
music-gen | MusicGen 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.
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 } }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":[...]}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.