docs

Choosing a model

Pass an alias rather than a versioned provider id, and ask which models your app may call instead of hardcoding a list.

Two things about model are where an OpenAI habit stops being true: which ids exist, and which of them your app is allowed to call. Neither is guessable, and both are answerable with one request.

Pass an alias

Send a stable public name such as claude-haiku-5-5 rather than the versioned provider id it resolves to (anthropic.claude-haiku-5-5). Both are valid values for model, but the alias is the one that survives the next model revision: Fleeex re-points it, and your code doesn't change.

await client.chat.completions.create({
  model: "claude-haiku-5-5", // not "anthropic.claude-haiku-5-5"
  messages: [{ role: "user", content: "Hello!" }],
});

The response echoes the resolved id, in completion.model and on every chunk of a stream. That's what OpenAI does when a family name resolves to a dated snapshot, and it's the only way a caller using an alias can see which model actually answered and was charged. Your usage events record the resolved id too, so billing history stays auditable across a re-point.

Which models you may call depends on your app

Model licences don't all permit resale, so the catalog records a resale right per model. A model whose licence doesn't allow it is reserved for FlexCorp's own apps: a third-party app neither sees it in the catalog nor may call it.

So if the list is shorter than you expected, that is the reason. It isn't a bug, and it isn't something a retry, a different key, or a funded wallet changes:

  • GET /v1/models omits what your app may not use, rather than listing it and refusing it. Everything it returns is callable.
  • Asking for a reserved model by name is a 403 with code MODEL_NOT_ENTITLED, naming the model and the remedy. It reaches no provider and reserves nothing.
  • A model nobody serves is a different answer: a 400 on a completion, a 404 on GET /v1/models/{model}.

Most of the catalog carries no such restriction. Every example on this site uses claude-haiku-5-5, which is open to any app.

Every model also comes with its provider's usage policy, which your app and its users must follow. Model provider policies lists which one applies to each model, and what your app owes its users.

Where requests are processed

Fleeex runs in AWS's Ireland region. Amazon Bedrock may process a request and its response in any AWS region, outside the European Economic Area included, whatever the model: it depends on how AWS serves that model and on load. Fleeex does not store your prompts or the responses, only the metadata it bills on.

If your data must stay in the EU, don't send it through Fleeex. If EU-only processing is a requirement for your app, write to support@fleeex.dev and we'll look at your case.

List the models you may call

GET /v1/models answers in OpenAI's own list shape, scoped to the app your key belongs to. FleeexClient wraps chat completions only, so list with the OpenAI client (already a peer dependency) pointed at the same base URL.

Unlike a completion, discovery needs no x-fleeex-user: the catalog is a property of your app rather than of one of its end users, so a client can enumerate models before it has a user.

catalog.ts
import OpenAI from "openai";
 
const catalog = new OpenAI({
  apiKey: process.env.FLEEEX_API_KEY!,
  baseURL: "https://api.fleeex.dev/v1", // note the trailing /v1
  // no x-fleeex-user: deliberately not required here
});
 
const page = await catalog.models.list();
for await (const model of page) {
  console.log(model.id, model.owned_by); // e.g. "claude-haiku-5-5" "anthropic"
}

Aliases are listed next to the ids they resolve to. Both are usable values for model, the way a provider lists a family name next to a dated snapshot. Hiding the alias would make the list wrong.

FieldValue
idWhat to send as model: a catalog id, or an alias that resolves to one.
object"model".
createdAlways 0. Fleeex records no creation date for a catalog entry, and a fabricated one would both claim a moment nobody knows and make an otherwise identical response change on every request.
owned_byDerived from the provider prefix of the resolved id (anthropic.claude-… → anthropic), so an alias reports the provider that owns the model it points at.

Nothing Fleeex-specific (price, margin, resale right) appears here. The body is OpenAI's exact key set, because a strict client decoder fails on an unknown property.

Describe one model

const model = await catalog.models.retrieve("claude-haiku-5-5"); // alias or provider id

The two failure modes are deliberately different answers:

AnswerMeaning
404No model or alias by that name is served here. Check for a typo.
403 MODEL_NOT_ENTITLEDThe model is real, and reserved for other apps.

The list omits the reserved one because a list is "what you can use". A caller that asks about a specific model is told which of the two situations it's in, instead of hunting for a typo that doesn't exist.