deapi

n8n community node for deAPI - AI image generation, video generation, transcription and prompt optimization

Documentation

n8n-nodes-deapi

npm version
License: MIT

This is an n8n community node that lets you use deAPI in your n8n workflows.

deAPI is a unified API platform providing instant access to open-source AI models (FLUX, LTX Video, Whisper and more) through a decentralized GPU network. One API key to access thousands of GPUs with up to 20x lower costs.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

Credentials

To use this node, you need to configure the following credentials:

Field Description
API Key Your deAPI API key. Get it from the deAPI Quickstart Guide.
Webhook Secret Secret used to verify webhook signatures. Configure it at deAPI Webhook Settings.

Operations

Image

Operation Description Models
Generate Generate an image from a text prompt FLUX.1 Schnell, FLUX.2 Klein 4B, Z-Image Turbo
Remove Background Remove the background from an image Ben2
Upscale Increase image resolution by 4x RealESRGAN x4

Video

Operation Description Models
Generate Generate a video from text or image(s) LTX-Video 0.9.8, LTX-2 19B
Transcribe Transcribe video to text (YouTube, Twitch, X, Kick URLs or file upload) Whisper Large V3

Audio

Operation Description Models
Transcribe Transcribe audio file to text Whisper Large V3

Prompt

Operation Description
Image Prompt Booster Optimize a prompt for text-to-image generation
Video Prompt Booster Optimize a prompt for text/image-to-video generation

How It Works

Generation operations (image, video, transcription) use a webhook-based waiting pattern:

  1. The node submits a generation request to deAPI with a webhook URL
  2. The workflow pauses while deAPI processes the request
  3. When deAPI completes the job, it sends a webhook notification
  4. The workflow resumes with the generated content (binary file or text)

This approach ensures efficient resource usage - the workflow doesn't actively poll for results.

Compatibility

  • Tested with n8n version 2.3.4
  • Webhook-based operations require n8n to be accessible via HTTPS

Example Workflow

An example n8n workflow demonstrating all available operations is included in examples/deAPI_guide.json. Import it into your n8n instance to get started quickly:

  1. Download deAPI_guide.json from the GitHub repository
  2. In n8n, go to Workflows > Import from File
  3. Select the downloaded deAPI_guide.json
  4. Set up your deAPI credentials (API Key + Webhook Secret)
  5. Explore the example nodes and sticky notes for usage instructions

Resources

License

MIT

Discussion