microtoll

microtoll

For BuildersAPI ProvidersDiscover APIs

Give Your AI Access to Any API

No subscription. No commitment. Pay only for what you use.

Powered by Spark

·

< 2s settlement

·

Pay-per-call

Browse the API catalog. Estimate costs upfront. Call any API. One-time verification, then you're set. No recurring fees.

One-Time Setup

Complete a quick one-time verification (regulatory requirement). Then access all APIs — no per-service signup.

Pay-Per-Call

No subscription. No commitment. No monthly minimum. Fair pricing — you're never charged for failed requests.

Cost Estimation

Know the exact price before calling any API. Set daily budgets and per-call limits in your SDK.

API Catalog

Search, LLMs, transcription, TTS, images, video, and more. Real-time health status and pricing in the API catalog.

SDKs & MCP

Python and TypeScript SDKs with auto-payment. MCP integration for AI agents. Budget management built-in.

How it works

01

Verify Once

Complete a quick one-time identification (regulatory requirement). Takes a few minutes. Valid for all APIs afterward.

02

Set Up Your Wallet

Set up a Spark wallet or connect an existing Lightning wallet. Configure your SDK or MCP server.

03

Browse, Estimate, Call

Browse the API catalog. Estimate cost before paying. Call any API — payment handled automatically.

Start in minutes

# pip install microtoll

from microtoll import Microtoll

async with Microtoll() as m:

# Estimate cost first (free)

cost = await m.estimate_cost("tavily", "/search", {"query": "AI agents"})

print(f"This will cost: ${cost.usd}")

# Call API (auto-payment)

result = await m.call("tavily", "/search", {"query": "AI agents"})

print(result.data)

Frequently asked questions

Do I need to create an account?

Yes — a one-time verification is required (regulatory compliance). After that, you can access all APIs without per-service signup.

How does payment work?

You call the API, payment is handled automatically via Spark, and the response is returned. SDKs and MCP tools manage everything.

What if the API returns an error?

You're never charged for failed requests. Credit tokens ensure you always pay the right price.

Can I set spending limits?

Yes. Both SDKs support daily_budget_usd and max_cost_per_call_usd. An exception is raised if exceeded.

What do I need to get started?

A Microtoll account (one-time verification) and a Spark wallet or Lightning-compatible wallet with a small balance.