OpenRouter Chat Model
AI-generatedSummary
Configure and instantiate an OpenRouter chat model instance for AI chat completions using the selected model and optional generation parameters.
Inputs
- model (required) — Selects the OpenRouter model to use for generating chat completions. Models can be dynamically loaded or defaulted.
- options — Optional parameters to customize generation behavior including Temperature (randomness), Max Tokens (generation limit), Top P (nucleus sampling), Frequency Penalty (reducing token repetition), and Presence Penalty (encouraging new topics).
Output shape
a single AI language model instance object supporting chat completion generation
This operation returns an initialized chat model instance wrapped for use in n8n AI workflows. The returned model object handles token usage telemetry and optionally integrates provider QoS and pricing lookup when supplied with credentials. No immediate text output is produced; this node prepares the model for subsequent calls in the workflow.