Model discovery
Read the management model catalog and choose inference identifiers.
nirmos.models is the control-plane catalog resource. It supports list/get/create/update/delete and prompt editor options. There is no nirmos.gateway.models method.
const page = await nirmos.models.list({ capability: "chat", limit: 25 });
for (const model of page.items) {
const provider = await nirmos.providers.get(model.providerId);
console.log({ catalogId: model.id, inferenceId: `${provider.slug}/${model.externalId ?? model.slug}` });
}Every management model includes availability: boolean, computed for the authenticated organization. true means an active provider credential is configured, regardless of validation status; it does not guarantee upstream access to that model. Runtime resolves and authorizes credentials independently. Model detail and selector responses expose the same field.
Filter before pagination with nirmos.models.list({ availability: "true", capability: "chat" }). Omit the filter to browse the full visible catalog, including models with availability: false. Refetch catalog queries after adding, updating or deleting provider credentials and keep cached results scoped to the authenticated organization.
Search the complete catalog and require several capabilities with:
const page = await nirmos.models.list({
search: "openrouter/",
capabilities: "vision,tools",
availability: "true",
limit: 25,
});search matches model names, slugs, external IDs, provider names/slugs and full provider/model references without case sensitivity. It accepts up to 300 characters. capabilities accepts up to 20 comma-separated identifiers and requires all of them. Embedding (embedding, embeddings) and tool-calling (tools, tool_calling, function_calling) aliases are equivalent. json aliases json_mode; structured_output remains a separate requirement. Image input does not imply image_generation. Embedding filters also check adapter and lifecycle eligibility.
All filters apply before cursor pagination. Pass the same filters with each returned nextCursor. The existing singular capability filter remains supported and intersects with capabilities when both are supplied. The dashboard's Models page provides these filters and copies the provider-qualified reference for SDK inference calls.
Catalog IDs configure resource relationships; provider-qualified identifiers select physical inference models. Status, lifecycle/runtime health, capabilities, pricing and dimensions are catalog fields, not a guarantee that every request executes. Runtime resolves credentials and checks the adapter's capabilities.
The gateway separately exposes an OpenAI-compatible HTTP model list. That wire format differs from the SDK management list and is not a gateway.models SDK resource. Route aliases are resolved during inference rather than provisioned as physical catalog records.
Catalog guide · Models reference · REST models · Pagination
Nested upstream identifiers
Use groq/openai/gpt-oss-20b, openrouter/openai/gpt-oss-20b vercel/openai/gpt-4o-mini or cloudflare-workers-ai/@cf/openai/gpt-oss-20b as appropriate. Keep all nested slashes and variant suffixes. OpenRouter and Vercel models require credentials for their gateway, regardless of developer. See provider catalog and lifecycle.