Dominevo
ReferenceHTTP API

llm

The llm router: 16 methods of the llm capability, with tier, scope, input and output.

Capability llm · scope system · mode collection · source packages/types/src/capabilities/llm.cap.ts:341.

Every method is called at /trpc/llm.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
generatemutationprotectedcreateno
generateVisionmutationprotectedcreateno
cancelmutationprotectedcreateno
listModelsmutationadminadmin onlyno
getDefaultsqueryprotectedviewno
setDefaultmutationadminadmin onlyno
getUsagequeryprotectedviewno
listModelCatalogqueryprotectedviewno
listRuntimeNodesqueryprotectedviewno
listNodeModelsqueryprotectedviewno
resolveModelRefmutationadminadmin onlyno
installModelmutationadminadmin onlyno
deleteModelmutationadminadmin onlyno
getRuntimeStatusqueryprotectedviewno
startRuntimemutationadminadmin onlyno
stopRuntimemutationadminadmin onlyno

llm.generate

  • Kind: mutation — POST /trpc/llm.generate
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.generate on your hub

Input

LlmGenerateBaseInputSchema

Output

LlmGenerateResultSchema

Shapes: LlmGenerateBaseInputSchema · LlmGenerateResultSchema

llm.generateVision

  • Kind: mutation — POST /trpc/llm.generateVision
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.generateVision on your hub

Input

{ addonId?: string; profileId?: string; consumer: string; system?: string; prompt: string; jsonSchema?: Record<string, unknown>; maxTokens?: number; temperature?: number; topP?: number; topK?: number; reasoningEffort?: "off" | "low" | "medium" | "high"; timeoutMs?: number; retry?: LlmRetryPolicySchema; requestId?: string; images: LlmImageSchema[] }

Output

LlmGenerateResultSchema

Shapes: LlmRetryPolicySchema · LlmImageSchema · LlmGenerateResultSchema

llm.cancel

  • Kind: mutation — POST /trpc/llm.cancel
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.cancel on your hub

Input

{ addonId?: string; requestId: string }

Output

void

llm.listModels

  • Kind: mutation — POST /trpc/llm.listModels
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.listModels on your hub

Input

LlmListModelsInputSchema

Output

LlmListModelsResultSchema

Shapes: LlmListModelsInputSchema · LlmListModelsResultSchema

llm.getDefaults

  • Kind: query — GET /trpc/llm.getDefaults
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.getDefaults on your hub

Input

{}

Output

LlmDefaultSchema[]

Shapes: LlmDefaultSchema

llm.setDefault

  • Kind: mutation — POST /trpc/llm.setDefault
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.setDefault on your hub

Input

{ selector: LlmDefaultSelectorSchema; profileId: string | null }

Output

void

Shapes: LlmDefaultSelectorSchema

llm.getUsage

  • Kind: query — GET /trpc/llm.getUsage
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.getUsage on your hub

Input

{ since?: number; until?: number; consumer?: string; profileId?: string }

Output

LlmUsageRollupSchema[]

Shapes: LlmUsageRollupSchema

llm.listModelCatalog

  • Kind: query — GET /trpc/llm.listModelCatalog
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.listModelCatalog on your hub

Input

{}

Output

ManagedModelCatalogEntrySchema[]

Shapes: ManagedModelCatalogEntrySchema

llm.listRuntimeNodes

  • Kind: query — GET /trpc/llm.listRuntimeNodes
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.listRuntimeNodes on your hub

Input

{}

Output

LlmRuntimeNodeSchema[]

Shapes: LlmRuntimeNodeSchema

llm.listNodeModels

  • Kind: query — GET /trpc/llm.listNodeModels
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.listNodeModels on your hub

Input

{ nodeId: string }

Output

LlmNodeModelSchema[]

Shapes: LlmNodeModelSchema

llm.resolveModelRef

  • Kind: mutation — POST /trpc/llm.resolveModelRef
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.resolveModelRef on your hub

Input

{ ref: string; maxBytes?: number }

Output

HfModelResolutionSchema

Shapes: HfModelResolutionSchema

llm.installModel

  • Kind: mutation — POST /trpc/llm.installModel
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.installModel on your hub

Input

{ nodeId: string; model: ManagedModelRefSchema }

Output

void

Shapes: ManagedModelRefSchema

llm.deleteModel

  • Kind: mutation — POST /trpc/llm.deleteModel
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.deleteModel on your hub

Input

{ nodeId: string; file: string }

Output

void

llm.getRuntimeStatus

  • Kind: query — GET /trpc/llm.getRuntimeStatus
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability llm, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.getRuntimeStatus on your hub

Input

{ addonId: string; profileId: string }

Output

LlmRuntimeStatusSchema

Shapes: LlmRuntimeStatusSchema

llm.startRuntime

  • Kind: mutation — POST /trpc/llm.startRuntime
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.startRuntime on your hub

Input

{ addonId: string; profileId: string }

Output

LlmRuntimeStatusSchema

Shapes: LlmRuntimeStatusSchema

llm.stopRuntime

  • Kind: mutation — POST /trpc/llm.stopRuntime
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=llm.stopRuntime on your hub

Input

{ addonId: string; profileId: string }

Output

void