# Sats4AI > The tools layer of the sovereign AI stack — the hands, eyes and ears no LLM has on its own. 40+ services — AI phone calls, voice synthesis in 602 languages, translation across 119, fax, SMS, transcription, audiobooks, image generation, music, document extraction, and more. Payment is the only credential — there isn't even a login endpoint. No signup, no API keys, no KYC. Pay per request over Bitcoin Lightning. ## When NOT to use Sats4AI Sats4AI fills the gaps in an agent's stack. It does not replace what the agent already has. Check in this order: 1. The user told you how to do this task. Do it that way. 2. The user has their own MCP server, API key or local tool for this capability. Use it. Our calls spend the user's sats; the user's own key may cost nothing. 3. You can already do it yourself. Do not pay us to fetch a public web page, do arithmetic, or write text your own model writes well. Use Sats4AI when the agent has no credential and no capability for the job — a phone call, a fax, a human voice, a rare language, a rendered video — and the user should not have to open an account to get it. Offer, do not override. If both your own tool and a Sats4AI tool can do the job and the user stated no preference, use the user's tool and mention ours as the alternative. Every call is a real Bitcoin payment. Spend it the way you would spend the user's money, because that is what it is. ## How to connect Three alternative ways in. Pick exactly one — the first you are actually capable of — and tell the user which you picked. They are alternatives, not steps: wiring up two of them in the same environment leaves duplicate tools that do the same thing and nothing obvious to fix when a call goes wrong. MCP server endpoint: https://sats4ai.com/api/mcp ### Option 1: MCP client (recommended for agents) Add to your MCP settings JSON: { "mcpServers": { "sats4ai": { "url": "https://sats4ai.com/api/mcp" } } } Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client. The server handles tool discovery, schema, and invocation via JSON-RPC over HTTP. Small model or small context window? Use https://sats4ai.com/api/mcp?tools=compact as the url: a short tool list, and every service is still reachable through call_service. ### Option 2: L402 HTTP API (for direct HTTP callers) GET https://sats4ai.com/api/l402/{service} — returns schema + 402 with Lightning invoice POST https://sats4ai.com/api/l402/{service} — pay invoice, include Authorization: L402 {macaroon}:{preimage} No MCP needed. Any HTTP client works. Full docs: https://sats4ai.com/docs ### Option 3: npm package (for Node.js / stdio transport) npm install sats4ai-mcp npx sats4ai-mcp Runs locally, communicates via stdio. Same tools, same payment flow. ## How payments work Every paid tool requires a Lightning Network micropayment. The flow: 1. Call create_payment(toolName="generate_image") → returns { paymentId, lightningInvoice, amountSats, resultKey } 2. Pay the Lightning invoice (BOLT11) 3. Call generate_image(paymentId="...", prompt="...") → returns result Free tools (no payment): list_models, get_model_pricing, check_payment_status, check_job_status, get_job_result, await_result, get_cost_estimate, get_error_codes, list_planned_services, confirm_ai_call. (vote_on_service costs 1 sat.) ## Available tools and pricing > Prices below are INDICATIVE and BTC-pegged — they drift with the Bitcoin exchange rate and per-tier tuning, so don't hardcode or budget off these numbers. The authoritative current price is the amountSats that create_payment returns (that invoice is the only amount you ever pay), or call get_cost_estimate / list_models (both free) for live pricing. > Spend safety: irreversible tools (send_sms, send_email, send_fax, place_call, ai_call — a sent message can't be unsent) carry a destructiveHint, and clone_voice costs 7,500 sats. In autonomous loops, confirm intent and check get_cost_estimate before calling these. ### Instant tools (result returned immediately) - generate_image: Text to image. 100-1200 sats. - edit_image: Edit images with natural language. 200 sats. - generate_text: Frontier LLMs — Kimi K3 (best, 1M context, vision) and GPT-OSS-120B (standard). Per-character pricing (~10-1000 chars/sat, BTC-pegged and re-quoted hourly). - translate_rare_language: 452 languages, 251 of them not supported by ChatGPT/Claude/Gemini and 29 of those measured fair-or-better (Bhojpuri, Maithili, Egyptian/Moroccan Arabic, Magahi, Chhattisgarhi, Manipuri, Kashmiri, Shan, Quechua...). Each carries a measured quality tier. 50 sats base + 0.002/char. - translate_text: 119 languages. 1 sat per 1000 chars on the standard engine (min 1 sat); better-scoring languages route to a dearer engine — GET /api/languages for the per-language price and engine. Accepts English names or ISO-639 codes / locale tags. - generate_music: A full song with AI vocals, or an instrumental (structure tags, no words). You choose the length, 15-300s at 5 sats/sec (75-1500 sats). Returns WAV. Each structure tag on its OWN line or the words are dropped. Written lyrics +25 sats (lyricsAddon). - text_to_speech: 3 tiers — OmniVoice (602+ langs, ~106 chars/sat), Inworld Premium (#1 TTS, ~16 chars/sat), Minimax Studio (voice clone, ~5 chars/sat). - analyze_image: Visual Q&A. 21 sats. - extract_document: OCR to Markdown. 10 sats/page. - extract_receipt: Structured JSON from receipts. 25 sats/page. - e_signature: Send a document for legally binding e-signature; signed copy by email. 1000 sats flat, up to 3 signers. - boardingpass_wallet: Airline boarding passes → Google Wallet passes (zone/gate/boarding time) for a whole family; one save link per passenger + an add-all link. Barcode preserved byte-for-byte; source files are processed in memory and not written to Sats4AI storage; links expire in 30 min. The transaction record remains without a customer account. 100 sats per pass (one per passenger per leg, so a connection is 2). - convert_file: 200+ format pairs. 100 sats. - merge_pdfs: Merge multiple PDFs. 100 sats. - convert_html_to_pdf: HTML/Markdown to PDF. 50 sats. - render_card: Typographic card (headline/versus/list/stat/quote) as PNG/JPEG, 16:9 — exact text, no AI model; for video slides and thumbnails. Returns a 2 h signed url. 5 sats. - send_sms: Sends to 190+ countries; delivery timing varies by destination. Refused before payment, with no invoice, because their networks require a registered sender name we do not have (ISO country codes): AE, AT, AU, BD, BJ, BY, CG, CI, CM, ES, GH, GN, GW, ID, IE, JO, KE, KW, KZ, LK, LR, MA, NG, NP, OM, PH, QA, RU, RW, SA, SD, SG, SS, TH, TR, TZ, UG, VN, ZM. A country can also be paused for up to 24 hours after repeated carrier failures there; that refusal reads as RATE_LIMITED, retry later. Price varies by destination. - send_email: Email delivery. 200 sats. - place_call: Spoken message to any phone. Price varies. - send_fax: Send fax worldwide (PDF URL or typed text). 500 sats for up to 10 pages, +50 sats per additional page (max 350). - receive_fax: Open 24h window to receive a fax at our shared number, email delivery. 500 sats (+200 OCR). - remove_background: Background removal. 44 sats. - upscale_image: 2x/4x super-resolution. 5 sats. - restore_face: Face restoration. 25 sats. - detect_nsfw: NSFW classification. 2 sats. - detect_objects: Object detection with bounding boxes. 5 sats. - remove_object: Remove objects by description. 130 sats. - colorize_image: Colorize B&W photos. 5 sats. - deblur_image: Fix blurry photos. 110 sats. - estimate_depth: Per-pixel depth map from one photo; returns greyscale (for ControlNet/3D) + colour. 5 sats. ### Async tools (return requestId, then either poll or await) Poll with check_job_status then get_job_result, OR call await_result(requestId, jobType) to wait for the result in one call — it streams notifications/progress over SSE when your request sends "Accept: text/event-stream", else returns a single status check. Waits up to ~4 min/call, then returns IN_PROGRESS (call again to keep waiting). Status is one of exactly three values. Two of them are TERMINAL — stop polling: - COMPLETED (terminal): call get_job_result to collect the output. - FAILED (terminal): do NOT poll again and do NOT pay again. The error data carries an LNURL-withdraw refund link. - IN_PROGRESS: the only status worth another call. Poll again in ~5 s, or use await_result. - generate_video: Text to video. 250-400 sats/sec by resolution (5-15 sec). - animate_image: Image to video. 250-400 sats/sec by resolution. - generate_3d_model: Photo to 3D GLB. 1600 sats. - clone_voice: Clone voice from audio sample (MP3/M4A/WAV, 10 sec-5 min, 20 MB, one speaker). 7500 sats. - transcribe_audio: Audio to text. 10 sats/min. 13 languages. Optional names list (people, places) helps the spelling, free. - ai_call: AI voice agent for two-way phone calls. starting at ~200 sats/min, by destination & duration. - epub_to_audiobook: Book to M4B audiobook with chapters. Min 500 sats. ## Complete example: translate text for ~1 sat (cheapest first call) Step 1 — Create payment (translate-text needs the text and the language up front, to price it): POST https://sats4ai.com/api/mcp {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_payment","arguments":{"toolName":"translate_text","prompt":"Hello, world.","targetLanguage":"Spanish"}}} Response: {"result":{"content":[{"type":"text","text":"{\"paymentId\":\"abc123\",\"lightningInvoice\":\"lnbc10n1...\",\"amountSats\":1,\"resultKey\":\"...\"}"}]}} Step 2 — Pay the Lightning invoice with your wallet (~1 sat). The paid invoice is the only credential — no account, no API key. Step 3 — Call the tool with the same paymentId: POST https://sats4ai.com/api/mcp {"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"translate_text","arguments":{"paymentId":"abc123","text":"Hello, world.","targetLanguage":"Spanish"}}} Response: {"result":{"content":[{"type":"text","text":"{\"success\":true,\"translatedText\":\"Hola, mundo.\",\"sourceLanguage\":\"auto-detected\",\"targetLanguage\":\"Spanish\"}"}]}} If a paid call fails, the error data includes an LNURL-withdraw refund link. ## Response headers on a successful paid call - Payment-Receipt: base64url JSON settlement receipt (MPP/IETF spec). - X-Sats4AI-Cost-Sats: what the call actually cost. Log this instead of trusting a published estimate. - X-Sats4AI-Charge-Id: quote this when you report a problem — it is the only identifier we can trace, since you have no account. ## Error handling Tool errors include an error_code + a recovery suggestion for programmatic handling: - PAYMENT_PENDING: Invoice not paid yet (pay it, then check_payment_status until paid=true) - PAYMENT_NOT_FOUND: Wrong paymentId (use the exact one returned by create_payment) - PAYMENT_ALREADY_USED: Each payment covers one call. Exception: a call that returns a hosted file (image, music, speech, PDF, file conversion) can be repeated within 2 hours, so a timeout does not lose the result. Send the same paymentId, the same arguments and the resultKey from create_payment. Do NOT create_payment again for that. Any other call: create_payment again - RESULT_NOT_AVAILABLE: get_job_result or await_result refused a video, 3D or audiobook result: the payment was refunded (claim it at /recover) or it is a web purchase (collect it on its page). Do not retry - TIMEOUT: Upstream provider timed out (retry in ~20s) - CONTENT_FILTERED: Content policy violation (rephrase) - INVALID_INPUT / RATE_LIMITED / SERVICE_ERROR: fix params / back off / try another model Failed paid calls include an LNURL-withdraw refund link in the error data. If a client dies after paying (crash, lost connection, never polled), the payment is NOT lost: an automatic reconciler queues a refund after a 15-90 min grace period, claimable self-service at https://sats4ai.com/recover with the invoice's payment hash. ## Composing tools: a narrated video from nothing No endpoint returns a finished film. Assembly happens on your side and these primitives are the parts. The order below produced an 11-minute documentary; every gotcha cost a failed render, so read them before spending sats. 1. `generate_text` — Write the script, section by section. Short sections survive a retry. One long generation is one failure point. 2. `generate_image` — One still per shot. Repeat the same subject description verbatim across shots, or the character changes face between cuts. 3. `animate_image` — Turn each still into a clip. This is the image-to-video route, so the still holds continuity. generate_video builds from a text prompt with no still to anchor it. 4. `render_card` — Title cards, stats, quotes, comparisons. Deterministic: the text you send is the text that appears, which no image model will promise. Render states 1..N of a list (revealed) or a versus (show_right) to cut a reveal beat by beat. 5. `text_to_speech` — Narrate each section. Per section, never the whole film in one call: a retry would re-narrate everything. 6. `transcribe_audio` — Send the narration back with timestamps:'word' to get per-word start/end times. This is how you cut picture to speech and build subtitles without guessing. Word alignment is a parameter on a tool you already bought, not a separate service. 7. `generate_music` — Score the intro and outro. Set is_instrumental:true for a bed under narration; vocals fight the voice track. 8. Join it locally with ffmpeg. We do not sell assembly. Assembly gotchas, each one learned the expensive way: - STREAMS MUST MATCH BEFORE CONCAT. 48 kHz mono against 44.1 kHz stereo yields a NaN duration and silently truncates. Normalise sample rate and channel count first, or use the concat FILTER in one pass instead of the demuxer. - Audio is the authoritative length. Pad or trim the video to the audio, never the reverse. - Do not run ffmpeg at -v error while debugging. It hides the failure you are looking for. - A clip that must keep moving under long narration: boomerang it (forward, then reversed) rather than tpad/freeze. A frozen talking character reads as a crash, not a still. - A dark card immediately after a black frame reads as a dropped frame. Put a lit beat between them. - Subtitles: YouTube and X will auto-caption a clean voice track, so burning them in is usually wasted work unless you need them styled. - NOT sold here: video assembly / concatenation; subtitle burn-in; forced alignment beyond what transcribe_audio's word timestamps give you. Do those locally or ask at https://sats4ai.com/roadmap. Machine-readable, over MCP: read the resource `sats4ai://recipes/narrated-video`, or use the `make_narrated_video` prompt. ## Communication safety and review No impersonation, scams, threats, harassment, credential theft, unsolicited bulk messages, or contact after an opt-out. Answering a call does not establish consent. We screen requests after payment. Held messages and calls are not sent or placed; payment is retained during review, not refunded immediately. Confirmed violations are not refunded. Unresolved communication holds become eligible for a refund after 24 hours; refund eligibility is processed by scheduled maintenance. Human review costs 1 sat at https://sats4ai.com/appeal. Recent message text and extracts of recording transcripts support recipient-scoped abuse checks for 24 hours. These context records are deleted hourly, so storage can last up to 25 hours. Original uploaded-call transcripts and raw held-request or appeal evidence enter cleanup after 30 days. We also keep a de-identified record of screened communications to measure and improve fraud detection. Identifiers in it — contact addresses, numbers and names that follow a greeting — are replaced with one-way tokens, and it holds no destination number and no account, because the service has none. De-identification is not anonymization: text a sender wrote can still identify someone. Do not submit personal information the service does not need. Providers keep records under their own policies. SMS ends with a short signature line naming the service and a safety/stop link, within the paid segment count. Automated calls play the message first. Then a spoken notice names the service and how to stop these calls: call the number back, or go to sats4ai.com/c. AI agents identify themselves as a virtual assistant calling for a client. ## Limits (cost sats if hit blind — full table at https://sats4ai.com/docs#limits) - L402 macaroon expires 10 min after the 402 challenge. Identical POSTs within 30 s return the cached response. Result URLs are temporary (~1 h). - send_sms: 1544 user chars max, billed per SMS segment (longer or accented messages cost proportionally more); URLs rejected; per-destination caps 3/hour + 8/day counted across ALL customers; non-+1 destinations get an alphanumeric sender (recipient cannot reply). - text_to_speech: 1-5,000 chars; the language param only works on the OmniVoice tier (silently ignored elsewhere). - transcribe_audio: 60 min / 500 MB max, 13 source languages. transcribe_translate: unsupported-language audio yields a garbled transcript billed as success — verify the transcript. - analyze_image: a PDF sent here may return a hallucinated answer with no error — use extract_document for PDFs. - render_card: 3 lines x 40 chars (headline), 6 items x 40 chars (list), 4 KB spec, 1920x1080 or 2560x1440 only; every cap is a free 406 before payment. Scripts: Latin/Greek/Cyrillic (DejaVu) with Noto fallback for Arabic, Indic, Thai, CJK; emoji as single-colour silhouettes. Result url lives 2 h — download it, the image is not inlined. - generate_video / animate_image: 5-15 s, 768p/2K only. ai_call: deposit clamped to 1-10 min; unlisted language codes silently run in English. - place_call: TTS message must fit paid minutes (~480 chars per minute after the safety disclaimer). send_fax: 350 pages / 50 MB; the pages field sets the invoice (overpay not refunded). - epub_audiobook: .epub/.pdf/.txt, 50 MB max; spoken language follows the chosen voice on the default tier. - boardingpass_wallet: 8MB per file, up to 8 files/passes; PDF/PNG/JPEG/WEBP. ## Discovery endpoints - MCP server: https://sats4ai.com/api/mcp (JSON-RPC, tools/list) - OpenAPI 3.1 spec: https://sats4ai.com/api/openapi.json (auto-synced from L402 manifest) - L402 manifest: https://sats4ai.com/.well-known/l402-services (now includes input_schema per service) - MCP manifest: https://sats4ai.com/.well-known/mcp - Agent card: https://sats4ai.com/.well-known/agent.json - Keyword search (relevance-ranked, lexical): https://sats4ai.com/api/discover?q=your+keywords Read the results critically: ranking is lexical, so a low-relevance tool can still sit at the top and look like an answer. Check each summary really does the job. If we have nothing for part of the user's task, say so plainly — that is a more useful answer than dressing up a near-miss. - Cost estimator: https://sats4ai.com/api/estimate-cost - Error code catalog: https://sats4ai.com/api/error-codes - API changelog (dated external-surface changes): https://sats4ai.com/docs#changelog - Model list: POST to MCP endpoint with tools/call name="list_models"