Stripe MPP for web search and extract
Your agent pays by card with the Machine Payments Protocol. The 402 carries a WWW-Authenticate: Payment challenge for a $5 block of credit, Stripe's Link agent wallet pays it, and the token spends it call by call at list price.
curl -i -G https://api.specstream.ai/v1/web-search \ --data-urlencode "q=Who is the CEO of Stripe?" # 402 with WWW-Authenticate: Payment method="stripe" # intent="charge": a $5 block of credit, in usd
HTTP/2 402 www-authenticate: Payment id="ajcsvxrROo8S02V...", realm="api.specstream.ai", method="stripe", intent="charge", request="eyJhbW91bnQiOiI1MDAi..." # request, decoded { "amount": "500", "currency": "usd", "methodDetails": { "paymentMethodTypes": ["card"] } }
List price from the block
The $5 is taken when you pay. Each call is charged from the block at the same price an account pays.
- $1 per 1,000
- Searches with speed=fast, news=true, or images=true, up to 10 results each.
- $5 per 1,000
- Searches on the default tier: the most accurate web search API in the world.
- $0.80 per 1,000
- Pages read by /v1/extract, PDF, Word, and Excel included, up to 20 a call.
The MPP flow
A challenge, a credential, then a Bearer token on every call after the first.
- Call with no key
- GET /v1/web-search or POST /v1/extract. The 402 carries WWW-Authenticate: Payment with method stripe, intent charge, and currency usd.
- Pay with Link
- Stripe's Link agent wallet (link.com/agents) pays the challenge by card. Send the same request again with Authorization: Payment <credential>.
- Get the answer and a token
- The call runs at once. The reply has a Payment-Receipt header and a payment object that holds a token.
- Spend the block
- Send later calls to either route with Authorization: Bearer <token>. When the block runs out, the call answers 402 with a new challenge.
Lists of records, paid by card
POST /v1/agent/lists takes a request in plain words. The 402 carries the most it can cost as an MPP challenge, and your agent pays for the results found.
MPP questions
Something we didn't answer? Talk to a human
What is MPP?
What does a call cost with MPP?
Which routes take MPP?
Which wallet pays the challenge?
Can an agent pay in USDC instead?
Pay in USDC, or open an account
The same routes take x402 in USDC, or an API key on a balance with monthly plans.
Pay for the first call by card
Point an MPP client at /v1/web-search. Or sign up and get $10 of credit, no card.