> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/mpp. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# 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.

[Read the agent guide](https://specstream.ai/docs/agent-payments.md)[Read agents.md](https://specstream.ai/agents.md)

ChallengePaySpend

GET /v1/web-search, no keyCopy

```
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
```

The 402, cut shortCopy

```
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.

-   [Agent payments guideThe 402 offer, the payment, and the status URL for a list, with each request and reply.](https://specstream.ai/docs/agent-payments.md)
-   [Link agent walletStripe Link pays the MPP challenge by card for your agent.](https://link.com/agents)
-   [mpp.devThe Machine Payments Protocol and its clients.](https://mpp.dev)

## MPP questions

Something we didn't answer? [Talk to a human](https://specstream.ai/talk-to-a-human.md)

What is MPP?

The Machine Payments Protocol is an open standard from Stripe and Tempo for agents that pay on HTTP 402. The server sends a WWW-Authenticate: Payment challenge, the client pays it and sends the request again with Authorization: Payment.

What does a call cost with MPP?

The block is $5. Each call is charged from it at list price: $1 per 1,000 fast searches, $5 per 1,000 searches, and $0.80 per 1,000 pages read.

Which routes take MPP?

/v1/web-search and /v1/extract take the prepaid block. /v1/agent/lists takes a card payment sized to the request, for a list of records with a source URL on every value.

Which wallet pays the challenge?

Stripe's Link agent wallet, at link.com/agents. It pays the challenge by card, and your agent sends the credential with the same request.

Can an agent pay in USDC instead?

Yes, with x402. The same 402 carries a PAYMENT-REQUIRED header: $0.002 a fast search, $0.007 a search, and $0.002 a page, in USDC on Base, Arbitrum, or Polygon.

## Pay in USDC, or open an account

The same routes take x402 in USDC, or an API key on a balance with monthly plans.

-   [x402From $0.002 a call in USDC on Base, Arbitrum, or Polygon.](https://specstream.ai/x402.md)
-   [Search APIThe most accurate web search API in the world, with an answer and its source page.](https://specstream.ai/search-api.md)
-   [Extract APIMain text of up to 20 pages or documents a call, read live.](https://specstream.ai/extract-api.md)

## 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.

[Start free](https://specstream.ai/signup)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
