Tempools logoTempools Docs

Quickstart

Get on Tempools's unified API in five minutes

Tempools exposes mainstream AI providers — OpenAI, Anthropic, Google, Mistral, and more — behind a single OpenAI-compatible endpoint. This guide takes you from zero to first call in under five minutes.

Why Tempools

One interface

Hit every model through a single OpenAI-compatible API. Swap providers by changing one argument.

Pay-as-you-go

Upstream pricing, one-to-one. No subscriptions, no bundles, no hidden fees.

Granular controls

Per-key rate limits, model allowlists, and per-request spending caps.

Live observability

Real-time dashboards for usage, latency, and spend; fully searchable logs.

Three steps

Sign in

Head to the sign-in page and log in with your existing account.

Mint an API key

Open Console → API keys and click New API key. Use one key per app or environment, and tune the rate limits to match.

Fire your first request

Tempools's base URL is https://api.tempools.com. In the snippets below, replace model with the exact card title shown on the Models page or in the Console → Models catalog:

curl https://api.tempools.com/v1/chat/completions \
  -H "Authorization: Bearer $TEMPOOLS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<exact model title from /models>",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://api.tempools.com",
    api_key="YOUR_TEMPOOLS_API_KEY",
)

response = client.chat.completions.create(
    model="<exact model title from /models>",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.tempools.com",
  apiKey: process.env.TEMPOOLS_API_KEY,
});

const response = await client.chat.completions.create({
  model: "<exact model title from /models>",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);

What goes in the model field? Use the full title shown on the model card in the Models page or the Console → Models catalog. Tempools passes upstream naming through as-is, so the card title is the model name: what you see is what you type, with no extra mapping.

What's next

On this page