Nirmos
Platform setup

Models and provider configuration

Register compatible providers and models using catalog management methods.

Catalog methods use the control plane. Gateway inference uses runtime and resolves configured models/providers separately. You need organization resource permissions and an executable adapter. Catalog type values alone do not prove a provider adapter exists.

Use model discovery to choose existing catalog entries and derive inference identifiers. This page covers configuration mutations.

Create a compatible provider and model

This example uses a placeholder endpoint. Replace it with your actual compatible provider URL and supported model identifier. Creating a catalog row does not validate remote behavior.

const provider = await nirmos.providers.create({
  name: "Private provider",
  slug: "private-provider",
  baseUrl: "https://provider.example.com/v1",
  kind: "custom",
  adapterType: "openai_compatible",
});
const model = await nirmos.models.create({
  name: "Private chat model",
  slug: "private-chat-model",
  providerId: provider.id,
  capabilities: ["chat", "streaming"],
});
console.log(model.id);

Public resources also support update/get/delete. Catalog capabilities, lifecycle status and runtime health have different meanings; capability settings do not add functionality to a provider.

Failures

Handle validation, conflict, missing-resource and permission errors. Runtime execution can fail independently because a credential is expired, a provider is unavailable or the configured capability is unsupported.

Providers · Models · Credentials · REST providers · REST models

Provider credentials are separate organization secrets. Provider-specific configuration covers upstream options and compatibility.

On this page