---
title: "Models · Tempo AI Platform docs"
description: "GPT-6.1, Claude 5.5, Gemini 4, Grok, Kimi, GLM and DeepSeek through the OpenAI and Anthropic APIs, at the provider's price per token."
url: "https://gateway.tempo-dev.workers.dev/docs/models"
---

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

# Every model, one key

GPT-6.1, Claude 5.5, Gemini 4, Grok, Kimi, GLM and DeepSeek through the APIs your tools already speak. You pay what the provider charges, per token, and nothing for tokens you did not use.

[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)

- **OpenAI and Anthropic APIs.** Responses, Chat Completions and Embeddings for OpenAI clients, Messages for Anthropic ones, with streaming and tools. Every API serves every model.
- **The provider's price.** Workers AI, Vercel AI Gateway and OpenRouter charge what they report, with no margin.
- **Pay for what you use.** A request holds what it may cost and is charged its real usage, also when the client disconnects.
- **Codex in one command.** The installer makes Tempo Codex's provider and MCP server, and asks Tempo ID for a key. [Codex setup](https://gateway.tempo-dev.workers.dev/docs/keys.md#codex).
- **Claude Code.** Claude Code's own model names, such as claude-opus-5-5 and claude-haiku-5-5, work as they are.
- **Prompt caching.** Requests reach the replica that holds their prefix, and cached tokens are charged at the cached price.

## Use it

Use models 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.

### From your cloud agent

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

> Compare GPT-6.1 Sol, Claude Sonnet 5.5 and DeepSeek V4.1 Flash on the same five refactoring prompts, and tell me which one gives the best answer per dollar.

**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":"Compare GPT-6.1 Sol, Claude Sonnet 5.5 and DeepSeek V4.1 Flash on the same five refactoring prompts, and tell me which one gives the best answer per dollar."}'
```

### With your Tempo Key

OpenAI clients use base URL https\://gateway.tempo-dev.workers.dev/v1 with your Tempo Key as the API key. Anthropic clients, Claude Code included, take https\://gateway.tempo-dev.workers.dev as ANTHROPIC_BASE_URL and the key as ANTHROPIC_AUTH_TOKEN. One key reaches every model, and Tempo enforces its budget on chain.

**curl**

```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","input":"Write a haiku about receipts"}'
```

**OpenAI SDK**

```ts
import OpenAI from "openai";

const client = new OpenAI({ apiKey: process.env.TEMPO_KEY, baseURL: "https://gateway.tempo-dev.workers.dev/v1" });
const response = await client.responses.create({ input: "Write a haiku about receipts", model: "vercel/openai/gpt-6.1-sol" });
```

**Claude Code**

```sh
ANTHROPIC_BASE_URL=https://gateway.tempo-dev.workers.dev \
ANTHROPIC_AUTH_TOKEN=$TEMPO_KEY \
ANTHROPIC_MODEL=vercel/anthropic/claude-sonnet-5.5 claude
```

**Codex**

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

### Over MPP, no account

Every model route answers 402 with a session challenge in MACH and OUSD. Any MPP client pays it with a voucher from its wallet and gets the unused reservation back on the same channel.

**tempo request**

```sh
tempo request --mach -X POST \
  -H gateway-app:default \
  --json '{"model":"@cf/deepseek-ai/deepseek-v4.1-flash-1017","input":"Write a haiku about receipts"}' \
  https://gateway.tempo-dev.workers.dev/v1/responses
```

**OpenAI SDK + mppx**

```ts
import { Mppx, tempo } from "mppx/client";
import { createSqliteChannelStore } from "mppx/client/node";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const channelStore = createSqliteChannelStore({ namespace: "https://gateway.tempo-dev.workers.dev" });
const mppx = Mppx.create({ methods: [tempo({ account, channelStore, maxDeposit: "1" })], polyfill: false });

const openai = new OpenAI({ apiKey: "mpp", baseURL: "https://gateway.tempo-dev.workers.dev/v1", fetch: mppx.fetch });
const response = await openai.responses.create({ input: "Write a haiku about receipts", model: "@cf/deepseek-ai/deepseek-v4.1-flash-1017" });
```

### As MCP tools

The same routes, without streaming, as MCP tools.

`ai_responses`, `ai_messages`, `ai_embed`, `ai_generate`

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

## Model names and aliases

The gateway serves Workers AI's text and embedding models, and Vercel AI Gateway's and OpenRouter's. Every API serves every text model, so Codex runs on Claude and Claude Code on GLM.

- **Workers AI**\
  Its own ids, such as `@cf/deepseek-ai/deepseek-v4.1-flash-1017` (DeepSeek V4.1 Flash, the default) or `@cf/zai-org/glm-5.3`.
- **Vercel AI Gateway and OpenRouter**\
  The provider before the upstream id, such as `vercel/openai/gpt-6-luna` or `openrouter/anthropic/claude-sonnet-5.5`.
- **Aliases**\
  A provider model also answers to its upstream name without the provider, and a Claude model to Anthropic's dashed form with or without a date, Vercel's before OpenRouter's: `gpt-6.1-sol` is `vercel/openai/gpt-6.1-sol`, and `claude-opus-5-5` and `claude-opus-5-5-20261001` are `vercel/anthropic/claude-opus-5.5`.
- **Listed and callable**\
  `GET /v1/models` and the Codex catalog list a chosen set; every other model stays callable by its id.

## What the APIs do

### Responses

Function and custom tools (including Codex's `apply_patch`), `reasoning.effort` for models that list it, images for vision models, `text.format` for structured output, and streaming as Responses SSE with tool input as it is written. Without `max_output_tokens` a request may write 32,768 tokens. Requests carrying the same `prompt_cache_key` reach the replica that caches their prefix.

### Messages

`max_tokens` is required, as at Anthropic. System prompts, images, tools and `tool_choice`, thinking (`output_config.effort` or `thinking.budget_tokens`) and streaming as Anthropic SSE, with tool input as `input_json_delta` while the model writes it.

### Web search

`/v1/responses` runs OpenAI's `web_search` tool and `/v1/messages` Anthropic's `web_search` and `web_fetch` server tools, with their domain filters and `max_uses`. [Services](https://gateway.tempo-dev.workers.dev/docs/services.md#web) covers how they search and what they cost.

### Chat Completions and embeddings

Chat passes messages, tools, `tool_choice`, `response_format`, temperature, `top_p`, stop, seed and penalties through, and streams usage with `stream_options.include_usage`. Embeddings return floats, or little-endian float32 bytes for `encoding_format: base64`, the OpenAI Node SDK's default.

## Inference auctions

Auctions are paused: no request is matched against a quote for now, and every request runs on the provider its model id names (`boundless/…` on Boundless, `vercel/…` on Vercel, `openrouter/…` on OpenRouter, `@cf/…` on Workers AI). Bidders can still register and connect. The rest of this section describes the auction as it runs when it is on.

Each request is matched against a book of standing quotes. Providers online for the request's model hold one WebSocket to the gateway and keep a quote for each model they serve, in USD per million tokens with how many calls they take at once. Each request goes to the cheapest quote under the gateway's own price that has room, over that provider's socket, so an agent pinned to a model stays on it and only the provider changes. The provider gets the request, never who sent it; nobody else sees anything. Without a quote that wins the request runs on the gateway's own providers, as before. To sell inference, run the one command on [Sell inference](https://gateway.tempo-dev.workers.dev/sell.md) next to your inference server; it shows the orderflow per model too.

- **Callers**\
  Auctions are on for every wallet until it turns them off with `auction: off` in `/v1/profile/set`, the MCP tool `profile_set` or the console's Settings; your agents and MCP calls follow that setting. A request is matched against the quotes of the bidders the gateway has checked for that model, and `Gateway-Auction: off` on a request runs none; `Gateway-Auction: verified` does not turn auctions on for a wallet that turned them off. The winning bidder sees the prompt. A bidder is never asked for requests its own wallet's Tempo Key pays for. Every model answer carries `Gateway-Provider`, the provider that served it: `workers-ai`, `boundless`, `vercel`, `openrouter` or `auction:` and the winning bidder's id, comma-separated when a request made several model calls.
- **Quoting**\
  A quote may not pass the gateway's price for the model, and is ranked by what it would cost for this request against what the gateway's provider would, counting the prompt cache of whichever served the conversation last: a provider that served it within 5 minutes is priced at its cached rate for the shared prefix, and `conversation` in the fill is a stable id of the conversation for each provider, so it can route the request to the replica holding it. Quotes stand until replaced, and a provider that sends a new one is told the best other quotes on the book. A conversation already warm on the gateway's own provider stays there. An agent's thread, and each subagent's, is a conversation of its own, matched on its first call and kept with the provider it got for as long as it runs.
- **Failover**\
  A provider that is full, offline, paused or has raised its quote refuses at once, and one that answers an error or sends nothing within 10 s hands the request to the next quote, at most three in all, and then to the gateway's provider. A provider that fails with a 5xx or goes silent three times running gets no calls for a minute.
- **What a fill pays**\
  The gateway rebuilds the response from the first choice's text, reasoning and tool calls and computes the usage itself: the bidder's reported tokens, counting at most the gateway's own estimate of the prompt and, for output, at most the bytes it relayed. A bidder is paid the winning bid out of what the caller paid.
- **Payouts**\
  A caller whose Tempo Key settles in OUSD, or in MACH when the seller's payee is a MACH merchant (on the MACH merchant list in tempoxyz/mach), pays the seller directly over a session channel the gateway settles, and the gateway refunds that part of its own charge. Everything else the gateway pays the seller's payee in USDC.e once it is owed $0.10, or $0.01 after a day, with the payout id as the transfer memo.

| Route                            | What it does                                                                                                                                                                                                          |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GET /api/auction                 | The auction's rules, every model's online verified seats, its orderflow over the last 24 hours with who serves it, and Boundless's models with their prices and the gateway models it serves at them; free and public |
| GET /api/auction/models          | Every text model a bidder may sell, also those the model listings leave out, with the gateway's price and the most a quote may be; free and public                                                                    |
| GET /bid                         | The installer of the example bidder: curl -fsSL \<gateway>/bid \| sh                                                                                                                                                  |
| POST /api/auction/bidders        | Register or update a bidder of your Tempo Key's wallet: name, models, payee and rotate; answers its token when created or rotated                                                                                     |
| GET /api/auction/bidders         | Your bidders, with the models they are online for and what each earned, was paid and is owed                                                                                                                          |
| DELETE /api/auction/bidders/{id} | Remove a bidder and close its sockets; what it earned is still paid                                                                                                                                                   |
| GET /api/auction/stream          | The bidder's WebSocket for every model it lists, with its token as the bearer                                                                                                                                         |
| GET /api/auction/fills           | What your bidders served, newest first: tokens, price, amount and payout                                                                                                                                              |

| Message                    | What it means                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| hello                      | On connect: the bidder id, the models it lists, those it is verified for, the most calls a quote may take and the timeouts. Then send quote with model, input, output and optionally cached in USD per million tokens, and capacity, the calls it takes at once; send it again to change it, and capacity 0 to withdraw                                                                                                         |
| market                     | After each quote the book takes: the best other quotes for the model and how many there are                                                                                                                                                                                                                                                                                                                                     |
| fill                       | A request for you: id, model, conversation and the OpenAI Chat Completions body. Answer chunk messages holding OpenAI chunks, then end with usage, or end with error and status (below 500 refuses it without counting against you)                                                                                                                                                                                             |
| cancel                     | The caller went away: stop the fill                                                                                                                                                                                                                                                                                                                                                                                             |
| verified, paused, rejected | Tempo verified a model or took it back, a model rests for a minute after three failures, or a quote was refused and why. A model whose measured failure rate (failed, late, empty, malformed or over-counted answers) passes 50% after five calls gets none until the rate, which halves every hour without calls, falls under it; hello names the floor and the calls it takes to count, and market shows the rate as you.fail |

## Speed by provider

The gateway times every model call it makes where the answer arrives: the time from sending the call to its first token, and the output tokens a second after it. [Speed](https://gateway.tempo-dev.workers.dev/speed.md) shows them live by provider and by model, so the same model on Boundless, Workers AI or any auction seller can be compared as calls finish. Each seller is a provider of its own, and a call through Vercel AI Gateway or OpenRouter counts for the provider the router sent it to when the router says. Only the provider, model, tokens and timings are kept, for 24 hours.

| Route               | What it does                                                                                                                                                                                              |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GET /api/speed      | Calls, tokens, median and 10th to 90th percentile tok/s and time to first token of every provider and of every model on each provider, over the last minutes (1 to 1,440, 60 by default); free and public |
| GET /api/speed/live | A WebSocket that sends the calls of the last minutes as snapshot, then each call as it finishes                                                                                                           |

## Pricing per token

Workers AI is charged its neurons at $0.011 per 1,000, and Vercel's and OpenRouter's models the cost they report. A request holds what it may cost, counting an image URL as 8,848 tokens, and its usage reports what the response cost as `cost`, in USD: what the channel was charged plus what the key's wallet paid web providers itself (`usage.web.wallet`). Sum `usage.cost` over a key's responses for what they cost; a request that fails without `stream` answers an error with no usage. The table is `GET /v1/capabilities`'s `tokens`, in USD per million tokens.

| Model                                              | Input | Cached input | Output |
| -------------------------------------------------- | ----- | ------------ | ------ |
| vercel/anthropic/claude-haiku-5.5                  | $0.1  | $0.01        | $0.5   |
| vercel/openai/gpt-6-luna                           | $0.1  | $0.01        | $0.5   |
| boundless/z-ai/glm-5.3-flash                       | $0.12 | $0.024       | $0.4   |
| boundless/deepseek/deepseek-v4.1-flash-1017        | $0.24 | $0.0048      | $0.96  |
| @cf/deepseek-ai/deepseek-v4.1-flash-1017           | $0.3  | $0.006       | $1.2   |
| vercel/deepseek/deepseek-v4.1-flash-1017           | $0.3  | $0.007       | $1.2   |
| vercel/deepseek/deepseek-v4.1-flash-1017-fast      | $0.6  | $0.014       | $2.4   |
| vercel/google/gemini-3.8-flash                     | $0.75 | $0.075       | $3.75  |
| vercel/openai/gpt-6.1-terra                        | $1    | $0.05        | $5     |
| @cf/zai-org/glm-5.3                                | $1.4  | $0.26        | $4.4   |
| boundless/moonshotai/kimi-k3.1-pro                 | $1.7  | $0.2         | $8.5   |
| vercel/anthropic/claude-sonnet-5.5                 | $2    | $0.1         | $10    |
| vercel/google/gemini-4-argon                       | $2    | $0.1         | $10    |
| vercel/moonshotai/kimi-k3.1-pro                    | $2    | $0.2         | $10    |
| vercel/openai/gpt-6.1-sol                          | $2    | $0.1         | $10    |
| vercel/spacexai/grok-4.7                           | $2    | $0.5         | $6     |
| vercel/deepseek/deepseek-v4.1-flash-1017-ultrafast | $2.4  | $0.048       | $9.6   |
| vercel/google/gemini-4-neon                        | $3    | $0.15        | $15    |
| vercel/moonshotai/kimi-k3                          | $3    | $0.3         | $15    |
| boundless/anthropic/claude-opus-5.5                | $4    | $0.2         | $20    |
| vercel/anthropic/claude-opus-5.5                   | $4    | $0.2         | $20    |
| boundless/anthropic/claude-fable-5.2               | $8    | $0.2         | $40    |
| vercel/anthropic/claude-fable-5.2                  | $8    | $0.2         | $40    |
| vercel/anthropic/claude-fable-5.1                  | $10   | $0.25        | $50    |
| vercel/openai/gpt-6-astra                          | $10   | $1           | $50    |

## Routes

Every route takes a Tempo Key as `Authorization: Bearer` or an MPP session; `/v1/ai/generate` and `/v1/ai/embed` also take a `Gateway-App`. Listing the models and their prices is free.

| Route                     | What it does                                                                                        | Price     |
| ------------------------- | --------------------------------------------------------------------------------------------------- | --------- |
| POST /v1/responses        | OpenAI Responses API, with tools, reasoning, web search and streaming                               | Per token |
| POST /v1/messages         | Anthropic Messages API, with tools, thinking, web search and fetch, and streaming                   | Per token |
| POST /v1/chat/completions | OpenAI Chat Completions, with tools, structured outputs and streaming                               | Per token |
| POST /v1/embeddings       | OpenAI Embeddings, as floats or base64                                                              | Per token |
| POST /v1/ai/generate      | Text from a model, optionally streamed as NDJSON                                                    | Per token |
| POST /v1/ai/embed         | Embeddings                                                                                          | Per token |
| GET /v1/models            | Every listed model, OpenAI list format, with its capabilities; with client_version, Codex's catalog | Free      |
| GET /v1/capabilities      | Models, prices per million tokens, limits and currencies                                            | Free      |

[<- Agents](https://gateway.tempo-dev.workers.dev/docs/agents.md) · [Services ->](https://gateway.tempo-dev.workers.dev/docs/services.md)
