Skip to main content

When To Use This

Use tm infer responses when you want the /v1/responses endpoint from the CLI. Provide the request body as JSON and either include model in the body or pass --model to override it.

Usage

Examples

Send a serverless responses request.

Stream response output text over SSE and fail a stalled stream after 30 seconds of upstream silence.

Options

Inherited Global Options

Auth Scope

  • inference-api-key

Caveats

  • --model overrides the model field inside the JSON request body.
  • --stream currently supports only --output text.

Parent Command