OKMOneKeyModelsOpenAI-compatible API access

Quickstart

One OpenAI-compatible API. Three routes.

Budget maps to cheap/* on our shared pool, Business maps to resale/* for managed external API access, and BYOK maps to byok/* for customer-owned keys and limited rollout.

Budget = cheap/*Business = resale/*BYOK = byok/*

First request

Point your client at `/v1` and use route-prefixed model IDs.

Send the first request quickly, then move between Budget, Business, and BYOK by changing the model prefix.

  • Keep your OpenAI SDK and request shape.
  • Change the base URL to `https://onekeymodels.com/v1`.
  • Use `cheap/gpt-5.4` for Budget, `resale/gpt-5.4` for Business, and `byok/openai/gpt-5.4` for BYOK.
  • Business stays on `resale/*`; it does not use the pooled `cheap/*` fallback.
  • On the CheapAI-backed Business lane, prefer `/v1/chat/completions` for streaming and keep `/v1/responses` non-stream for now.

Quickstart

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.ONEKEYMODELS_API_KEY,
  baseURL: "https://onekeymodels.com/v1"
});

const budget = await client.chat.completions.create({
  model: "cheap/gpt-5.4",
  messages: [{ role: "user", content: "Say hello in one short sentence." }]
});

const business = await client.chat.completions.create({
  model: "resale/gpt-5.4",
  messages: [{ role: "user", content: "Draft a customer-facing status update." }]
});

console.log("Budget:", budget.choices[0]?.message?.content);
console.log("Business:", business.choices[0]?.message?.content);

Choose a route

Budget = cheap/*, Business = resale/*, BYOK = byok/*.

Three public options, each with an explicit route prefix and trust posture.

Budget

cheap/* Our shared pool for the lowest-cost traffic.

Business

resale/* Managed external API access through our provider keys, with no pooled fallback.

BYOK

byok/* Customer-owned keys for limited rollout and tenant-scoped control.

Trust and privacy

The route prefix changes the trust boundary, not the client shape.

Keep the same `/v1/*` contract, but choose the route that matches your data and provider ownership requirements.

  • Budget = `cheap/*` on our shared pool with strict scrub and pooled-account caveats.
  • Business = `resale/*` for managed external API access, and it does not fall back to `cheap/*`.
  • BYOK = `byok/*` for customer-owned keys, limited rollout, and tenant-scoped provider control.

Trust snapshot

Budget = cheap/*

Budget maps to cheap/* on our shared pool. Use it for the lowest-cost traffic and expect pooled-account caveats.

Business = resale/*

Business maps to resale/* for managed external API access. It does not fall back to cheap/* or any pooled path.

BYOK = byok/*

BYOK maps to byok/* for customer-owned keys, limited rollout, and tenant-scoped provider control.

Questions teams usually ask

The common objections, answered in one place.

Do I need to change my OpenAI client?

Usually no. Keep your client, switch the base URL, and update the API key.

Which route should I start with?

Start with Budget if you want cheap/* on our shared pool, move to Business for resale/* managed external API access without pooled fallback, and choose BYOK for byok/* when you want customer-owned keys.

Does Business fall back to Budget?

No. Business stays on resale/* and does not drop into the pooled cheap/* fallback.

Where do I get access?

Create a workspace first. That gives you the place to manage access, docs, and your first request.

Ready to start?

Create a workspace and try the first request.

Get one workspace, send the first request, and move between `cheap/*`, `resale/*`, and `byok/*` without changing the client.

Need a hand with setup or billing? Use the support bubble or email support@onekeymodels.com.