Skip to main content

When To Use This

Use tm infer models when you want to enumerate models from the selected inference host. On the default Tensormesh serverless host, this route works without an inference API key. On On-Demand, it requires both Authorization and X-User-Id.

Usage

tm infer models [OPTIONS]

Examples

List models from the default serverless host.

tm infer models

List models from a routed On-Demand host.

tm infer models --surface on-demand --api-key YOUR_INFERENCE_API_KEY --user-id YOUR_TENSORMESH_USER_ID --base-url https://external.nebius.tensormesh.ai

Options

NameTypeRequiredDefaultDetails
--surface`choice[on-demandserverless]`no"serverless"Inference surface to target.
--user-idtextnoX-User-Id header to send. Only used for —surface on-demand.
--api-keytextnoInference API key (Authorization: Bearer …).
--base-urltextnoOverride the base URL for the selected surface.
--timeoutfloatnoHTTP connect timeout in seconds for the inference request.

Inherited Global Options

NameTypeRequiredDefaultDetails
--version, -VbooleannofalseShow the version and exit. Boolean flag.
--configpathno"~/.config/tensormesh/config.toml"Path to config TOML file
--output`choice[textjsonyamlrawtable]`no"text"Output format (text is human-readable; json is machine-friendly).
--quietbooleannofalseSuppress non-essential output. Boolean flag.
--debugbooleannofalsePrint debug logs to stderr (secrets redacted). Boolean flag.
--ca-bundlepathnoPath to a PEM CA bundle for TLS verification (overrides TENSORMESH_CA_BUNDLE).
--max-retriesintegernoMax retries for idempotent HTTP requests on transient errors (overrides TENSORMESH_MAX_RETRIES; subcommands may override).
--controlplane-basetextnoOverride the Control Plane base URL.
--gateway-providertextnoInference Gateway provider for built-in host selection (nebius, lambda, yotta).

Caveats

  • The returned id value is the model string to pass back as model in serverless requests.
  • For On-Demand, the returned id value is the served model name to reuse in routed requests.

Parent Command