hotapi

Official n8n community node for HotAPI — generate uncensored AI images and videos, upscale video to 4K, and poll async tasks.

Package Information

Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.0
Author: HotAPI

Documentation

n8n-nodes-hotapi

Official n8n community node for HotAPI — generate uncensored AI images and videos, upscale video to 4K, and poll async generation tasks inside n8n workflows.

Installation

n8n Community Nodes UI

  1. Open your n8n instance and go to Settings → Community Nodes.
  2. Click Install.
  3. Enter n8n-nodes-hotapi, accept the risks prompt, and click Install.

Manual / Self-Hosted Docker

npm install n8n-nodes-hotapi

Requires n8n-workflow >= 1.0.0 (provided by your n8n runtime). This package has zero runtime npm dependencies.

Credentials

Create a HotAPI API credential in n8n:

  1. Generate an API key (hk_live_...) in the HotAPI Dashboard.
  2. In n8n, open Credentials → Add Credential → HotAPI API.
  3. Set:
    • API Key: your hk_live_... key (stored encrypted).
    • Base URL: https://api.hotapi.ai (default).
  4. Click Save — n8n verifies the credential against GET /v1/models.

Supported Operations

1. Generate Image

Submit an image generation task and optionally wait for completion (outputUrl and assetUrls are returned at the top level alongside the full task object):

Model ID Endpoint Key OpenAPI Parameters
z-image-spicy-pro POST /v1/z-image-spicy-pro prompt, width (256-2560), height (256-2560), seed
seedream-5.0-pro-spicy/text-to-image POST /v1/seedream-5.0-pro-spicy/text-to-image prompt, size (2K), aspect_ratio
seedream-5.0-lite-spicy/text-to-image POST /v1/seedream-5.0-lite-spicy/text-to-image prompt, size (2K/3K/4K), aspect_ratio
qwen-image-2.1-spicy POST /v1/qwen-image-2.1-spicy prompt, aspect_ratio, resolution (1K/2K), n (1-6), reference_image_urls, seed

2. Generate Video

Generate video from text, first/last frames, or reference assets:

Model ID Endpoint Key OpenAPI Parameters
w3.0-spicy/text-to-video POST /v1/w3.0-spicy/text-to-video prompt, duration_seconds (2-30), resolution (480p/720p/1080p), ratio, generate_audio, prompt_extend, seed
w3.0-spicy/image-to-video POST /v1/w3.0-spicy/image-to-video image_url, last_frame_url, prompt, duration_seconds (2-30), resolution, ratio, generate_audio, prompt_extend, seed
seedance-2.5-spicy/text-to-video POST /v1/seedance-2.5-spicy/text-to-video prompt, duration_seconds (4-30), resolution (480p/720p/1080p), ratio, draft, generate_audio, output_format (mp4/mov)
seedance-2.5-spicy/image-to-video POST /v1/seedance-2.5-spicy/image-to-video image_url, last_frame_url, prompt, duration_seconds (4-30), resolution, draft, generate_audio, output_format (mp4/mov)
minimax-h3-spicy POST /v1/minimax-h3-spicy prompt, duration_seconds (5-15), resolution (480p/768p/1080p/2k/4k), ratio, image_url, last_frame_url, reference_image_urls, reference_video_urls, seed

3. Upscale Video (4K)

Upscale and enhance a 1-30 second MP4/MOV video (<= 50 MB) via POST /v1/video-enhancer-spicy (Video Enhancer Spicy) while keeping the original audio track intact:

  • video_url (required): public https:// MP4/MOV URL
  • resolution: 1080p (70 credits/s), 2k (140 credits/s), or 4k (280 credits/s)
  • sharpen_text: enhance overlaid subtitles, text, and fine edges (default true)

4. Get / Wait for Task

Fetch any task via GET /v1/tasks/{taskId}:

  • Leave Wait for Completion disabled for an immediate status snapshot.
  • Enable Wait for Completion with configurable Poll Interval (ms) and Timeout (Seconds) to block until the task reaches succeeded, failed, cancelled, or expired.

Request Options & Output

  • Options → Idempotency Key: sends the Idempotency-Key header on generation and upscale submissions so retries never double-bill.
  • Options → Webhook URL: appends ?webhook=https://... for signed terminal delivery (HotAPI-Signature).
  • Output Shape: every item returns the full HotAPI task JSON plus top-level outputUrl (first asset URL or null) and assetUrls (string[]).
  • Error Handling: supports n8n Continue On Fail (continueOnFail()), surfacing structured NodeApiError / NodeOperationError messages without exposing credentials.

Example Workflows

Workflow 1: Fast 480p Draft -> Human/Logic Check -> 4K Upscale

Iterate fast and cheaply at 480p with Seedance 2.5 Spicy, then promote winning clips to 4K via Video Enhancer Spicy:

  1. HotAPI (Generate Video):
    • Model: Seedance 2.5 Spicy (Text-to-Video) (seedance-2.5-spicy/text-to-video)
    • Prompt: a kinetic product showcase in moody studio lighting
    • Duration (Seconds): 5
    • Resolution: 480p
    • Draft Mode (480p Preview): true
    • Wait for Completion: true
    • Options → Idempotency Key: ={{$workflow.id}}-{{$execution.id}}-draft
  2. HotAPI (Upscale Video (4K)):
    • Video URL: ={{$json.outputUrl}}
    • Target Resolution: 4k
    • Sharpen Text: true
    • Wait for Completion: true
  3. HTTP Request / Cloud Storage:
    • Download ={{$json.outputUrl}} into your own bucket before ={{$json.expires_at}}.

Workflow 2: Fire-and-Forget Submit -> Separate Poll

  1. HotAPI (Generate Image):
    • Model: Z-Image Spicy Pro (z-image-spicy-pro)
    • Wait for Completion: false (returns immediately with id and status: "queued")
  2. Wait node (e.g., 10 seconds)
  3. HotAPI (Get / Wait for Task):
    • Task ID: ={{$json.id}}
    • Wait for Completion: true

Development

bun run check
bun run typecheck
bun run build
bun run test

License

MIT

Discussion