Early access

One API for all your AI models

Deftrouter is an OpenAI-compatible API router. Send every request to one endpoint with one key, choose the model per call, and see usage and spend per key in one place.

quickstart.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deftrouter.com/v1",
    api_key="YOUR_DEFTROUTER_KEY",
)

# Same SDK, same call. Only the model name changes.
reply = client.chat.completions.create(
    model="provider/model-name",
    messages=[{"role": "user", "content": "Hello"}],
)

What you get

A single front door to model providers

Most teams end up using more than one model. Each provider brings its own key, SDK, rate limits and invoice. Deftrouter takes that sprawl off your plate.

One endpoint, one key

Call models from different providers through a single OpenAI-compatible endpoint, instead of keeping a key, an SDK and a billing account for each one.

Usage in one place

Every request is metered and logged, so you can see what each key and each model costs without stitching provider dashboards together.

Keys you control

Create a separate key per app or teammate, put a spending limit on each, and revoke one without touching the others.

Switch models without rewrites

Trying another model means changing the model name in the request. The rest of your integration stays as it is.

How it works

Three steps, no new SDK

  1. 01

    Point your SDK at Deftrouter

    Keep the OpenAI SDK you already use. Change the base URL and the API key.

  2. 02

    Pick a model per request

    Name the model in each call. Deftrouter authenticates the request and forwards it to the right provider.

  3. 03

    Watch usage per key

    Requests, tokens and spend are recorded against the key that made them.

Early access

Request early access

Access is by request for now. Leave your email and the models you need, and we will email you when your key is ready.

  1. We set up your access to the models you asked for.
  2. We email you the details, including pricing.
  3. You get an API key and point your OpenAI SDK at Deftrouter.

Model names, or the kind of work: coding, reasoning, long documents.

We use these details only to set up your access and to contact you about it. See the privacy page.

From the blog

Guides for building on AI APIs

All posts

Questions about Deftrouter

How do I get access to Deftrouter?

Access is by request for now. Send the early-access form with the models you need, and we will email you when your key is ready.

What is Deftrouter?

An OpenAI-compatible API router. You send requests to one endpoint with one key, and Deftrouter routes each request to the model provider you chose, then records the usage.

Does it work with my existing OpenAI SDK code?

Yes. Change the base URL and the API key and keep the rest of your code. Features that only one provider offers can behave differently through any router, so test the ones you depend on.

Which models can I use, and what does it cost?

The models are listed on the models page, each with its provider's list price. Tell us which ones you need, and we confirm Deftrouter's pricing by email before you start.

What do you do with the details I send?

We use them only to set up your access and to contact you about it. We do not sell them or use them for advertising.