Docs / n8n / Reference TokenSense node reference Complete parameter and operation reference for all TokenSense n8n nodes.
TokenSense Chat Model Sub-node for AI Agent workflows. Attach as the language model.
Parameter Type Default Description Model options gpt-4.1-mini Model identifier (loaded dynamically from TokenSense) Temperature number 0.7 Sampling temperature (0–2) Max Tokens number 0 Maximum tokens (0 = model default) Streaming boolean true Whether to stream the response Project string — Project name for cost tracking Workflow Tag string — Tag for dashboard attribution (auto-detected if empty) Provider Override options auto Force a specific provider (auto, openai, anthropic, google, mistral, xai)
TokenSense AI General-purpose node with five resource types and eight operations.
Chat — Chat Completion Parameter Type Default Description Model options gpt-4.1-mini Model identifier (loaded from TokenSense) System Prompt string — Optional system message User Message string — The message to send (required) Temperature number 0.7 Sampling temperature (0–2) Max Tokens number 0 Maximum tokens (0 = model default) JSON Mode boolean false Force model to respond with valid JSON Project string — Project tag for attribution Workflow Tag string — Dashboard attribution (auto-detected if empty) Provider Override options auto Force a specific provider
Chat — Native Anthropic Parameter Type Default Description Model options claude-sonnet-4-6 Anthropic model — options: claude-3-5-haiku-20241022, claude-haiku-4-5, claude-opus-4-5, claude-opus-4-6, claude-opus-4-7, claude-opus-4-8, claude-sonnet-4-5, claude-sonnet-4-6 System Prompt string — Optional system prompt User Message string — The message to send (required) Max Tokens number 1024 Maximum response tokens (required by Anthropic) Temperature number 1.0 Sampling temperature (0–1) Project string — Project tag Workflow Tag string — Dashboard attribution (auto-detected if empty)
Chat — Native Gemini Parameter Type Default Description Model options gemini-3.5-flash Gemini model — options: gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro, gemini-3-flash-preview, gemini-3.1-flash-lite-preview, gemini-3.1-pro, gemini-3.1-pro-preview, gemini-3.5-flash User Message string — The message to send (required) System Instruction string — Optional system instruction Temperature number 1.0 Sampling temperature (0–2) Max Output Tokens number 0 Maximum response tokens (0 = model default) Project string — Project tag Workflow Tag string — Dashboard attribution (auto-detected if empty)
Image — Image Generation Parameter Type Default Description Prompt string — Image description Model options gpt-image-2 Image model — options: dall-e-2, dall-e-3, flux-2-dev, flux-2-pro, flux-2-schnell, gpt-image-1, gpt-image-1-mini, gpt-image-1.5, gpt-image-2, imagen-4, imagen-4-fast, imagen-4-ultra Size string 1024x1024 Output dimensions Quality string standard standard or hd Number of Images number 1 Images to generate (1–10) Project string — Project tag
Embedding — Text Embedding Parameter Type Default Description Input string | string[] — Text to embed Model options text-embedding-3-small Embedding model — options: text-embedding-3-large, text-embedding-3-small, text-embedding-ada-002 Dimensions number — Output dimensions (if supported) Project string — Project tag
Audio — Text-to-Speech Parameter Type Default Description Input string — Text to speak Model options tts-1 TTS model — options: tts-1, tts-1-hd Voice options alloy Voice preset — options: alloy, ash, ballad, cedar, coral, echo, fable, marin, nova, onyx, sage, shimmer, verse Response Format options mp3 Audio format — options: mp3, opus, aac, flac, wav, pcm Speed number 1.0 Playback speed (0.25–4.0) Project string — Project tag
Audio — Speech-to-Text Parameter Type Default Description Binary Property string data Name of the binary property containing the audio file Model options whisper-1 STT model — options: whisper-1, whisper-1-hd Language string — ISO language code (optional) Response Format options json Output format (json/text/srt/verbose_json/vtt) Project string — Project tag
Model — List Models No parameters — returns all models available in your TokenSense workspace.
TokenSense AI Tool Auto-generated from the TokenSense AI node. Shares the same parameters for each resource/operation. Attach as a Tool sub-node on an AI Agent when you need an agent to invoke another model.
Metadata fields TokenSense adds these fields to every request and response:
Field Source Description workflow_tagWorkflow Tag field (falls back to workflow name) Identifies the workflow stepAutomatic (from node name) Identifies the step within the workflow execution_idAutomatic (from n8n execution ID) Identifies the specific run sourceAutomatic Always "n8n-community-node"
Related