Models and providers
Use any of 15 model providers, pick models per node, route requests between models, classify and summarise text, use vision models and control reasoning effort.
Every node that calls a model (LLM, Agent, Subagent, Planner, Critic, Reasoning, Router in LLM mode, Classifier, Summarizer, Model Router, Query Rewriter, Reranker and Context Compressor in LLM mode, NL-to-SQL, guards with llm: on, and the Evaluation judge) shares one provider list and the same three settings: provider, model and api_key (a secret reference). Some providers also use base_url.
Providers
| Provider | Value | Key secret | Notes |
|---|---|---|---|
| OpenRouter (default) | openrouter |
OPENROUTER_API_KEY |
One key for Gemini, Claude, GPT, Llama, Qwen, Grok and hundreds more. Reports cost per call. |
| OpenAI | openai |
OPENAI_API_KEY |
https://api.openai.com/v1, Chat Completions. |
| Anthropic | anthropic |
ANTHROPIC_API_KEY |
Official anthropic SDK: prompt caching, thinking blocks replayed across tool calls, refusal handling, server-side fallbacks. |
| Google Gemini | gemini |
GEMINI_API_KEY |
Native generateContent: function call IDs, thought signatures preserved across turns. |
| Azure OpenAI | azure_openai |
AZURE_OPENAI_API_KEY |
base_url = your resource endpoint; model = your deployment name. |
| Amazon Bedrock | bedrock |
AWS_BEARER_TOKEN_BEDROCK |
Converse API with a Bedrock API key; base_url = the AWS region (e.g. us-east-1). |
| Mistral | mistral |
MISTRAL_API_KEY |
|
| Groq | groq |
GROQ_API_KEY |
Very fast inference. |
| DeepSeek | deepseek |
DEEPSEEK_API_KEY |
|
| Together | together |
TOGETHER_API_KEY |
|
| xAI | xai |
XAI_API_KEY |
Grok models. |
| Hugging Face | huggingface |
HF_TOKEN |
Inference Providers router. Model IDs may end in :fastest, :cheapest or :<provider>. |
| Ollama | ollama |
none | Local models; default http://localhost:11434/v1. Run ollama serve and ollama pull <model>. |
| OpenAI-compatible | openai_compatible |
optional | Any server speaking the OpenAI API (vLLM, TGI, LM Studio, LiteLLM…); set base_url. |
| Mock | mock |
none | Deterministic, offline. For tests and demos. |
Cost reporting
OpenRouter returns the cost of each call, so cost budgets and cost totals work there. Native providers report token counts but not cost (no price tables yet), so cost shows as unknown.
Setting a provider on a node
- Select the node, set
provider(e.g.anthropic). - Set
model(e.g. a Claude model ID). For OpenRouter use IDs likegoogle/gemini-3.8-flashoranthropic/claude-sonnet-5.5. - In
api_key, choose the secret name (e.g.ANTHROPIC_API_KEY). The form shows whether it is set and where (environment or Settings → Secrets). - For Azure, Bedrock or OpenAI-compatible, fill
base_url.
Model settings you will use
| Setting | Meaning |
|---|---|
temperature |
Randomness of sampling. 0–0.3 for factual work, higher for creative or for sampling several candidates. Anthropic’s current API ignores it. |
max_tokens |
Upper bound on output tokens. Reasoning models spend part of it thinking, so a small cap can produce an empty answer (MODEL_EMPTY_RESPONSE) or a truncated one (MODEL_OUTPUT_TRUNCATED). Model nodes default to 1024–4000. |
reasoning_effort |
default (send nothing), none, minimal, low, medium, high, xhigh, max. Trades thinking time for speed per node. Mapped to OpenRouter reasoning.effort, OpenAI/Azure reasoning_effort, Anthropic output_config.effort and Gemini 3+ thinkingLevel. Low effort is faster but may skip tools and answer from stale knowledge, so set it per node, not globally. |
system_prompt / instructions |
The system message: role, rules, output format. |
Transient provider errors (429, 5xx, dropped connections) are retried automatically up to 2 times with jittered backoff, but only before any text was streamed, so text never appears twice.
LLM node
Inputs: prompt (required), system, image, images. Output: text. Use a Text Template before it to build prompts from several values, and an Output Guard or Parse JSON after it when you need structured output.
Vision
LLM 1.2.0 sends images to vision-capable models. Connect an Image Input (upload in Run inputs or attach in Chat) or an Image Loader to the LLM’s image or images input. Up to 16 images, 20 MB each, de-duplicated; PNG, JPEG, WebP and GIF are accepted (BMP/TIFF fail with IMAGE_FORMAT_UNSUPPORTED; use OCR for those). Images travel as references to uploaded files, never as pixels in traces.
Local vision: set the provider to ollama and the model to llava or qwen2.5vl. Template: Describe an image (vision).
Model Router
Model Router sends each request to the best model and answers with it, in one node. Outputs: text, plus the route and model that answered, and a model_route trace event.
- Routes (1–12):
name,description(what tasks it handles),keywords,model, optionalsystem_prompt. The defaults aregeneral,quick(Gemini Flash Lite),reasoning(Claude Sonnet 5.5) andcode(Qwen3 Coder). - Strategies:
keywords: the first route (top to bottom) whose keyword appears as a whole word wins. Free and predictable.classifier: a small model (classifier_model, defaultgoogle/gemini-3.1-flash-lite) reads the route descriptions and the request and returns{route, reason}.hybrid(default): keywords first, the classifier only when no keyword matches.
- Fallbacks: an invalid classifier answer goes to
default_route; arouteinput forces a route. - All routes share one provider and key (natural with OpenRouter). Usage sums the classifier and the answer.
Example: route code questions to a coding model, arithmetic to a reasoning model and greetings to a cheap fast model, and watch model_route in the trace.
Classifier
Labels text with your labels; each label is also a control branch (see Control flow). Single or multi-label, with confidence and a min_confidence threshold. Template: Classify and summarise feedback.
Summarizer
Summarises text, a Document or a DocumentSet:
| Strategy | How |
|---|---|
stuff |
Everything in one call. Best when it fits. |
map_reduce |
Summarise each chunk, then combine; repeats while the combined partials are still longer than a chunk. |
refine |
A running summary updated chunk by chunk (good for narrative order). |
auto (default) |
stuff if it fits in one chunk, else map_reduce. |
Also: style (paragraph, bullets, tldr, detailed), max_words, focus (e.g. risks and deadlines), chunk_chars and max_chunks (refuses oversized inputs instead of paying for them). Chunks are cut at paragraph, line, sentence, then word boundaries.
Streaming
LLM and Agent nodes stream tokens whenever someone is listening (the Chat panel, the SSE stream, or runs/stream). Streaming is a live preview: node outputs remain the source of truth. See Durable runs and streaming.
Theory
- What tokens, temperature, context windows and reasoning models are: LLM fundamentals.
- How to write good prompts: Prompt engineering.
- Function calling and structured output: Tools and structured output.

