---
title: "Services · Tempo AI Platform docs"
description: "Hosted web search, page reads and /v1/fetch for every MPP service, paid per call from a Tempo Key."
url: "https://gateway.tempo-dev.workers.dev/docs/services"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# The web and every paid API

Search the web, read pages and call any of the services on mpp.dev without signing up for one. Each answers 402 Payment Required, and the call goes through paid from the same budget.

[Get your Tempo Key](https://gateway.tempo-dev.workers.dev/key.md) · [Run it in a cloud agent](https://gateway.tempo-dev.workers.dev/docs/quickstart.md)

- **Hosted web search.** OpenAI's web_search and Anthropic's web_search tools run on the gateway, for any model, with citations.
- **Page reads.** Anthropic's web_fetch and the Responses search's open_page read a whole page for the model, from Tako or Exa.
- **Any MPP service.** /v1/fetch/\<url> calls any https URL and pays its 402 from your key: Exa, Parallel, fal.ai, Dune, Browserbase and the rest of mpp.dev's directory, for $0.0001 on top.
- **A price ceiling.** Gateway-Max-Usd caps what one call pays the service, 0.25 by default and at most 5. A pricier challenge is never signed.
- **USDC.e services, paid in MACH.** When a service takes only USDC.e and your key cannot, the gateway charges your key the same amount and pays the service, up to $0.25 a call.
- **The directory.** GET /api/services relays mpp.dev's list of services, so a browser or an agent can find one.

## Use it

Use services like any platform, with one API key for every route, or straight over MPP with a wallet and no account. Both pay the same prices. Email and phone numbers are [planned](https://gateway.tempo-dev.workers.dev/docs/changelog.md#planned).

### From your cloud agent

Give [your agent](https://gateway.tempo-dev.workers.dev/docs/quickstart.md) a turn. It already has these tools:

> Find the three most cited papers on speculative decoding from this year with a web search, then pull their abstracts through Exa with fetch and summarize them in a table.

**Cloud agent**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/agents/$AGENT/turns \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -H accept:text/event-stream \
  -d '{"prompt":"Find the three most cited papers on speculative decoding from this year with a web search, then pull their abstracts through Exa with fetch and summarize them in a table."}'
```

### With your Tempo Key

Put the service's URL after /v1/fetch/ and send your Tempo Key. The gateway pays the 402 from the key, in its own token where the service takes it, and relays the answer with Gateway-Paid and Gateway-Payer headers. Web search runs inside the model routes.

**Any service**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/fetch/https://api.exa.ai/search \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -H "gateway-max-usd: 0.05" \
  -d '{"query":"speculative decoding","numResults":5}'
```

**Web search**

```sh
curl https://gateway.tempo-dev.workers.dev/v1/responses \
  -H "authorization: Bearer $TEMPO_KEY" \
  -H gateway-app:default \
  -H content-type:application/json \
  -d '{"model":"@cf/deepseek-ai/deepseek-v4.1-flash-1017","tools":[{"type":"web_search"}],"input":"Who won the last F1 race?"}'
```

**Directory**

```sh
curl https://gateway.tempo-dev.workers.dev/api/services | jq '.services[].name'
```

### Over MPP, no account

Without a key you already speak the protocol: call the service itself with any MPP client. Hosted web search is paid inside the model request's own session, so it works over MPP too. /v1/fetch needs a key, because the gateway pays as it.

**A service directly**

```sh
tempo request -X POST \
  --json '{"query":"speculative decoding","numResults":5}' \
  https://api.exa.ai/search
```

**Web search**

```sh
tempo request --mach -X POST \
  -H gateway-app:default \
  --json '{"model":"@cf/deepseek-ai/deepseek-v4.1-flash-1017","tools":[{"type":"web_search"}],"input":"Who won the last F1 race?"}' \
  https://gateway.tempo-dev.workers.dev/v1/responses
```

### As MCP tools

fetch takes a url, method, headers, a body and maxUsd. Web search runs inside ai_responses and ai_messages when you pass the web tools.

`fetch`, `ai_responses`, `ai_messages`

**Claude Code**

```sh
claude mcp add --transport http tempo https://gateway.tempo-dev.workers.dev/mcp \
  --header "authorization: Bearer $TEMPO_KEY"
```

**Codex**

```sh
curl -fsSL https://gateway.tempo-dev.workers.dev/codex | sh
```

## MPP sessions

Every call on the platform is paid over an MPP session, which is what makes a call cost a fraction of a cent. A Tempo Key, or any MPP client, opens one payment channel on Tempo with a deposit, and that is its only transaction until it tops up or closes.

- **Each call**\
  A voucher the client signs off chain for the running total it has spent. The gateway checks it in about 40 ms, with no transaction and no fee, so a call can cost $0.0001.
- **Refunds**\
  A model call holds what it may cost and gets the unused part back, so the channel is charged only for the tokens it used.
- **Settlement**\
  Every hour the gateway settles each channel's highest voucher on chain, moving only what was spent.
- **Closing**\
  When a channel closes, what was spent goes to the platform and the rest of the deposit goes back to the wallet.
- **Services**\
  The same voucher pays any MPP service, so one key reaches every service on mpp.dev without an account at any of them.

## Web search

The model APIs run the web tools themselves, so Codex, Claude Code and agents search through the gateway on any model: OpenAI's `web_search` on `/v1/responses`, with `filters.allowed_domains`, and Anthropic's `web_search` and `web_fetch` server tools on `/v1/messages`, with `allowed_domains`, `blocked_domains` and `max_uses`. A request makes at most 5 web calls by default and 10 at most, and its answer cites each page it used.

- **Searches**\
  Tako, Exa or Cloudflare's Web Search, each falling back to the next when one fails. Cloudflare's is skipped when the request allows only some domains.
- **Pages**\
  Read from Tako, then Exa.
- **Price**\
  What the providers charged, on top of the tokens. A key pays the providers itself when it can, in USDC.e transfers from its wallet outside its channel. Either way the response's `usage.cost` is its whole cost, and `usage.web` reports the `calls`, what the providers charged (`paid`) and how much of that the key's wallet, or an agent's payer, paid outside the channel (`wallet`). A request that fails after a paid web call reports this on its stream's failure event; without `stream` its error carries no usage.

| Tool                 | What it does                                                                                       | Price                                        |
| -------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| web_search           | A search, from OpenAI's web_search tool on /v1/responses or Anthropic's web_search on /v1/messages | $0.00025 – $0.012 (inside the model request) |
| open_page, web_fetch | A page read, from the Responses search's open_page action or Anthropic's web_fetch                 | $0.001 – $0.002 (inside the model request)   |

## MPP services

`/v1/fetch` calls any https URL with the method, query, headers and body you send, and when the service answers 402 Payment Required, the key pays it and the call goes through. The answer is the service's, with `Gateway-Paid` (USD) and `Gateway-Payer` (`key`, `gateway` or `none`). Only a Tempo Key calls it, and [mpp.dev](https://mpp.dev) lists the services it reaches.

- **Your own credentials**\
  Send the service's own authorization as `Fetch-Authorization`; the gateway passes it on as `Authorization` and never forwards your key or cookies.
- **A ceiling**\
  `Gateway-Max-Usd` caps what one call pays, from 0 to 5 (0.25 by default). When every challenge asks more, the call answers 402 `over_limit` before anything is signed.
- **USDC.e services**\
  When a service takes only USDC.e and the key cannot pay it, the gateway charges the key the same amount first and pays the service, up to $0.25 a call. The charge comes back when the service was never paid.
- **Refused**\
  Redirects come back as they are, and private addresses, the gateway itself and plain http are refused with 400 before anything is charged.

| Route                      | What it does                                                                                                    | Price                                |
| -------------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| ANY /v1/fetch/\<https URL> | Call any URL with your key and have the key pay its MPP 402, up to Gateway-Max-Usd (0.25 by default, at most 5) | $0.0001 (plus what the service asks) |
| GET /api/services          | mpp.dev's directory of services, cached for 5 minutes                                                           | Free                                 |

## GitHub

Connect GitHub in the [console](https://gateway.tempo-dev.workers.dev/console.md#connectors), under Connectors, and give a Tempo Key read or write: its agents then act as you on GitHub, and your GitHub token never leaves the gateway. In an agent's own cells and shell, requests to `api.github.com`, `raw.githubusercontent.com` and github.com's git endpoints are signed by the gateway, so `git clone` of a private repository works. In a sandbox, `github_setup` points git and gh at the gateway with a token of their own; anywhere else, `/v1/github/token` gives one, and gh treats the gateway as a GitHub Enterprise host.

- **Read or write**\
  Read clones, fetches and reads the API, GraphQL queries included. Write also commits and pushes, opens pull requests and issues, and edits and runs workflows, all as you.
- **Which repositories**\
  Connecting installs the Tempo AI Platform GitHub App, and GitHub asks for all your repositories or the ones you pick; the console links to GitHub's page that changes it.
- **Only your keys**\
  Tempo ID approves each key you give access, so a signed-in browser alone cannot. A turn another wallet started, and an agent an outside app pays for, never acts as you.
- **Tokens end**\
  A gateway GitHub token ends with its sandbox, its ttl, its key's GitHub access, its key or the connection, whichever comes first.

Any other service that has a remote MCP server, such as Linear, Notion or Sentry, connects as a [connector](https://gateway.tempo-dev.workers.dev/docs/guides/connectors.md).

| Route                                           | What it does                                                                                             | Price |
| ----------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ----- |
| GET /v1/github                                  | Whether the wallet connected GitHub, its login, and what this key may do there                           | free  |
| POST /v1/github/setup                           | Configure git and gh in one of your sandboxes to act as you through the gateway: { sandboxId, ability? } | free  |
| POST /v1/github/token                           | A gateway GitHub token for git and gh anywhere else: { ability?, ttl? }, 8 hours by default              | free  |
| /api/v3/\*, /api/graphql, /\<owner>/\<repo>.git | GitHub's REST and GraphQL APIs and git over HTTPS for those tokens, signed with your GitHub token        | free  |

[<- Models](https://gateway.tempo-dev.workers.dev/docs/models.md) · [MCP tools ->](https://gateway.tempo-dev.workers.dev/docs/mcp.md)
