When To Use This
Usetm infer chat when you want to send an actual serverless inference request through the CLI.
Usage
Examples
Send a non-streaming serverless request with an explicit inference API key.
Stream tokens over SSE and fail a stalled stream after 30 seconds of upstream silence.
Options
Inherited Global Options
Auth Scope
- inference-api-key
Prerequisites
- Provide
--modelexplicitly or includemodelin the JSON request body. - If you have Control Plane access for the same Tensormesh environment, discover published serverless model names with
tm billing pricing serverless list, then pass the returnedpricing[].modelvalue with--model. - If you only have inference credentials, or you are targeting a different serverless host override, get the model name from your Tensormesh environment before sending the request.
Caveats
- Reuses
gateway_api_keyfromconfig.tomlas the inference API key when--api-keyis omitted. gateway_api_keyis the stored inference API key used by the SDK asinference_api_key.tm billing pricing serverless listhelps discover published serverless model names for the current Tensormesh Control Plane environment. If you are targeting a different serverless host override, confirm the model name for that host separately.--streamcurrently supports only--output text.
Related Commands
tm billing pricing serverless listtm models listtm doctor

