ReferenceHTTP API
modelConvert
The modelConvert router: 1 method of the model-convert capability, with tier, scope, input and output.
Capability model-convert · scope system · mode singleton · source packages/types/src/capabilities/model-convert.cap.ts:19.
Every method is called at /trpc/modelConvert.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
convert | mutation | admin | admin only | no |
modelConvert.convert
- Kind: mutation —
POST /trpc/modelConvert.convert - 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=modelConvert.converton your hub
Input
ModelConvertInputSchemaOutput
{ entry: { id: string; name: string; description: string; formats: { onnx?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; coreml?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; openvino?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; tflite?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; pt?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string }; gguf?: { url: string; sizeMB: number; isDirectory?: boolean; files?: string[]; runtimes?: "python"[]; revision?: string } }; inputSize: { width: number; height: number }; inputChannels?: number; labels: ({ id: string; name: string; category?: string; description?: string; icon?: string })[]; inputLayout?: "nchw" | "nhwc"; inputNormalization?: "zero-one" | "imagenet" | "none" | "scrfd"; outputProbabilities?: boolean; preprocessMode?: "letterbox" | "resize"; postprocessor?: <custom>; defaultConfidence?: number; defaultClassFloors?: Record<string, number>; gpuInferencePrecision?: "f32" | "f16"; suppliedLabelFloors?: Record<string, number>; faceAlignment?: boolean; extraFiles?: ({ url: string; filename: string; sizeMB: number })[]; legacy?: boolean; metrics?: { map50?: number; p95LatencyMs?: Record<string, number> }; license?: pipe; group?: { family: string; tier: string; precision?: "fp32" | "int8"; optimization?: "standard" | "test"; resolution?: number }; provider?: "camstack" | "frigate" | "scrypted" | "custom"; classMap?: { mapping: Record<string, "person" | "vehicle" | "animal" | "package">; preserveOriginal: boolean }; suppliesSteps?: ({ kind: "label"; stepId: "animal-classifier" | "vehicle-classifier" | "package-detection"; labelToEffect: Record<string, string>; uncovered: string[] } | { kind: "crop"; stepId: "plate-detection" | "face-detection"; rootLabels: string[]; parentMacro: "vehicle" | "person"; childClass: "plate" | "face"; rootInputPx?: number } | { kind: "mask"; stepId: "segmentation" })[]; clip?: { textModelId: string; embeddingDim: number; vectorIndex: string; tokenizerFile: string; contextLength: number; padId: number; searchMinScore: number } }; artifacts: ({ format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf"; precision?: "fp16" | "int8"; sizeMB: number; validated: boolean; files: string[] })[] }Shapes: ModelConvertInputSchema