Back to Nodes

Chutes

Last updated Feb 18, 2026

Chutes.ai integration for n8n - AI text generation, image generation, and inference

11 Weekly Downloads
78 Monthly Downloads

Included Nodes

Chutes
Chutes Chat Model
Source for Prompt (User Message)

Description

n8n-nodes-chutes

!Chutes.ai
!n8n
!License
!Tests
!Node

This is an n8n community node that provides complete access to Chutes.ai’s AI services, replicating all features available in the Chutes.ai playground including text generation, image generation, and custom inference.

Chutes.ai is an advanced AI platform that provides state-of-the-art models for various AI tasks with a focus on performance and reliability.

Installation

Community Node (Recommended)

1. Go to Settings > Community Nodes in your n8n instance
2. Search for n8n-nodes-chutes
3. Click Install

Manual Installation

npm install n8n-nodes-chutes

For self-hosted n8n instances:

cd ~/.n8n
npm install n8n-nodes-chutes

Authentication (With Example)

To use this node, you’ll need an API key from Chutes.ai:

1. Sign up at chutes.ai
2. Navigate to your API Keys dashboard
3. Create a new API key (you will only be shown it once)
4. Add the key to your n8n credentials:
– Go to Credentials > New
– Select Chutes API
– Enter your API key
– Choose your environment (Production/Sandbox)
– Save

!docs/AI-AGENT-INTEGRATION.md for detailed examples and best practices.

Usage Examples

Basic Text Generation

Generate creative text using Chutes.ai’s LLM models:

!

Chat Conversation

Have a multi-turn conversation with context (this example includes basic troubleshooting):

!Chat Conversation Example

Click to see full JSON example node

{
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "c7bf314b-4232-4f02-9146-439e30aa7437",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "chuteUrl": "https://chutes-moonshotai-kimi-k2-thinking.chutes.ai",
        "operation": "chat",
        "messages": {
          "messageValues": [
            {
              "role": "system",
              "content": "you are the HAL9000 before it went insane, be helpful like the computer in the movie, you are to pretend you are in the movie 2001 a space odyssey, and will not break character. if the user asks questions they are also pretending to be in the movie."
            },
            {
              "content": "can you guess how long before we reach Jupiter, HAL?"
            }
          ]
        },
        "additionalOptions": {
          "maxTokens": 10000
        }
      },
      "type": "CUSTOM.chutes",
      "typeVersion": 1,
      "position": [
        220,
        0
      ],
      "id": "7beb97a8-a59c-4041-b7f2-6be1901c79eb",
      "name": "Chutes",
      "credentials": {
        "chutesApi": {
          "id": "Lv1zGZROIfHD4yIL",
          "name": "Chutes account"
        }
      }
    }
  ],
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Chutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "0766e26a38e4cf9836ab30499d93ee64e5c7b0eae3f1edb925460d34cf41d5c5"
  }
}

Image Generation

Create stunning images from text descriptions:

!Image Generation Example

Click to see full JSON example node

{
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "4bee9ada-56fe-4cc1-9490-ce87839077dd",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "resource": "imageGeneration",
        "chuteUrl": "https://chutes-qwen-image.chutes.ai",
        "prompt": "a cat in a hat that sat on a fat stack of pancakes, maple syrup flows down the side of the pancakes",
        "additionalOptions": {}
      },
      "type": "CUSTOM.chutes",
      "typeVersion": 1,
      "position": [
        220,
        0
      ],
      "id": "13f40013-4da6-4bc6-b909-95e8e7b1594d",
      "name": "Chutes",
      "credentials": {
        "chutesApi": {
          "id": "Lv1zGZROIfHD4yIL",
          "name": "Chutes account"
        }
      }
    }
  ],
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Chutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "0766e26a38e4cf9836ab30499d93ee64e5c7b0eae3f1edb925460d34cf41d5c5"
  }
}

Video Generation

Animate stunning images with Video using text descriptions :

!Video Generation Example

Click to see full JSON example node

{
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -200,
        0
      ],
      "id": "4bee9ada-56fe-4cc1-9490-ce87839077dd",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "resource": "imageGeneration",
        "chuteUrl": "https://chutes-qwen-image.chutes.ai",
        "prompt": "a cat in a hat that sat on a fat stack of pancakes, maple syrup flows down the side of the pancakes",
        "additionalOptions": {}
      },
      "type": "CUSTOM.chutes",
      "typeVersion": 1,
      "position": [
        20,
        0
      ],
      "id": "13f40013-4da6-4bc6-b909-95e8e7b1594d",
      "name": "Chutes",
      "credentials": {
        "chutesApi": {
          "id": "Lv1zGZROIfHD4yIL",
          "name": "Chutes account"
        }
      }
    },
    {
      "parameters": {
        "resource": "videoGeneration",
        "chuteUrl": "https://chutes-wan-2-2-i2v-14b-fast.chutes.ai",
        "operation": "image2video",
        "prompt": "the maple syrup flows down the pancakes slowly while the cat wags his tail",
        "additionalOptions": {}
      },
      "type": "CUSTOM.chutes",
      "typeVersion": 1,
      "position": [
        240,
        0
      ],
      "id": "6b881c17-31d5-4f2a-9553-4dbe5711d0a6",
      "name": "Chutes1",
      "credentials": {
        "chutesApi": {
          "id": "Lv1zGZROIfHD4yIL",
          "name": "Chutes account"
        }
      }
    }
  ],
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Chutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chutes": {
      "main": [
        [
          {
            "node": "Chutes1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "0766e26a38e4cf9836ab30499d93ee64e5c7b0eae3f1edb925460d34cf41d5c5"
  }
}

Use your Imagination

String together as many n8n nodes as you like, for any reason, no matter how crazy. Chutes Nodes are made to work together :

!Examples Directory, you will also need FFmpeg installed to make a GIF – but that can easily be accomplished by using the docker example found in the tests folder.

!Chutes.ai Documentation

  • API Reference
  • Playground
  • n8n Community Forum
  • Report Issues
  • Support

  • Chutes.ai Support: support@chutes.ai
  • Node Issues: GitHub Issues
  • Community: n8n Forum
  • Development

    Contributing

    We welcome contributions! Please follow this workflow:

    1. Fork the repository on GitHub
    2. Clone your fork and create a branch from DEV:

       git clone https://github.com/YOUR-USERNAME/n8n-nodes-chutes.git
       cd n8n-nodes-chutes
       git checkout DEV
       git checkout -b feature/your-feature-name
       

    3. Make your changes and write tests
    4. Create a Pull Request to DEV (not main)

    Important:

  • ❌ Do NOT create PRs directly to main – they will be rejected
  • ✅ All PRs must target the DEV branch
  • ✅ All tests must pass before merge
  • Local Development Setup

    Clone the repository

    git clone https://github.com/chutesai/n8n-nodes-chutes.git cd n8n-nodes-chutes

    Checkout DEV branch (always develop from DEV)

    git checkout DEV

    Install dependencies

    npm install

    Build the node

    npm run build

    Link for local development

    npm link cd ~/.n8n/custom npm link n8n-nodes-chutes

    Start n8n

    n8n start

    Testing

    This project uses Jest for testing and follows Test-Driven Development (TDD).

    Run all tests

    npm test

    Run tests with coverage

    npm run test:coverage

    Run tests in watch mode

    npm run test:watch

    Run specific test file

    npm test -- --testPathPattern="ChutesChatModel"

    Run integration tests (requires CHUTESAPIKEY)

    export CHUTESAPIKEY=yourapikey npm test -- --testPathPattern="tests/integration"

    Test Structure:

  • tests/nodes/ – Unit tests for all nodes
  • tests/integration/ – Integration tests with real API calls
  • tests/credentials/ – Credential configuration tests
  • See tests/README.md for detailed testing documentation.

    Compatibility

  • Node.js: 20.12.0 or higher (runtime), 20.12.0+ required for development
  • Chutes.ai API: v1
  • Changelog

    [0.1.0] – 2026-02-15 Official Release

    #### Tool Calling Support (AI Agent)

  • Full OpenAI-compatible tool calling in Chutes AI Agent and Chat Model nodes
  • Tool argument normalization – automatically extracts values from single-property objects for simple LangChain tools (Wikipedia, Calculator, SerpAPI, Code Tool)
  • Proper tool response format – sends results with correct role: 'tool' and toolcallid
  • Works with DeepSeek, Qwen, and other models supporting function calling
  • #### ChutesAIAgent & ChutesChatModel Improvements

  • Direct chute selection in Chutes AI Agent – no longer requires separate Chat Model node
  • Removed redundant Model dropdown from ChutesChatModel
  • Expression support for chute URL field in both nodes
  • #### Multi-Image Edit Support

  • Additional Images collection for image edit operations
  • Compose multiple images using models like Qwen-Image-Edit-2511
  • Support for 1-3 images per edit operation
  • #### Bug Fixes

  • Fixed duplicate execution bug in multi-image edit and keyframe operations (50% cost savings)
  • Fixed n8n framework compliance issues with displayOptions placement
  • [0.0.10] – 2026-01-14

    #### LTX-2 Full Support

  • Full LTX-2 video generation support with automatic schema detection
  • New video operations: Video-to-Video (V2V) and Keyframe Interpolation
  • LoRA adapter support: 11 LTX-2 LoRAs including camera controls (dolly, jib, static), Canny/Depth/Pose control, and Detailer
  • New I2V parameters: imagestrength, imageframe_index, distilled pipeline option
  • Automatic parameter aliasing: Maps between Wan2.2 and LTX-2 parameter names (fps/framerate, frames/numframes, etc.)
  • Resolution conversion: Automatically converts resolution strings to width/height with LTX-2 rounding (multiples of 64)
  • Backward compatible: Wan2.2-fast and other video chutes continue to work without changes
  • 779 tests passing with comprehensive unit and integration test coverage
  • [0.0.9] – 2025-10-22

    #### Initial Release

  • Complete Chutes.ai playground feature parity
  • Support for all text generation models via Chat Completions API
  • Modern best practices: Uses /v1/chat/completions for all text operations
  • Image generation with all parameters
  • Support for 9 resource types: LLM, Image, Video, Audio, TTS, STT, Music, Embeddings, Moderation
  • Custom inference operations
  • Dynamic chute loading from Management API
  • Comprehensive error handling
  • Rate limiting with retry logic
  • Dynamic model loading based on selected chute
  • Tested and verified with real Chutes.ai API
  • License

    MIT

    Discord

    Chutes

  • Chutes Channel Invite Link Here
  • Author

    Vonkaiser

  • GitHub: @vonk
  • Acknowledgments

  • Thanks to the n8n team for the amazing workflow automation platform
  • Thanks to Chutes.ai for providing powerful AI services
  • Community contributors and testers
  • Made with respect for the n8n and Chutes.ai communities