Tutorials/n8n Integration
Integration Guide5 min setupNo code required

n8n + CreativeAI: AI Image & Video in Your Workflows

Add AI image and video generation to any n8n workflow using a simple HTTP Request node. Our API is fully OpenAI-compatible β€” if you've used DALL-E or GPT in n8n, you already know how.

Why CreativeAI for n8n Workflows?

Multi-Model Failover

If one provider goes down, your workflow doesn't. Automatic failover across GPT Image, Flux, Seedream, and more.

OpenAI-Compatible Format

Standard /v1/images/generations endpoint. Works with n8n's HTTP Request node out of the box.

Images + Video from One API

Generate images AND videos. No need for separate API providers in your workflow.

Gemini / Sora Migration

Gemini 3 Pro shutting down? Sora going away? Switch to CreativeAI with zero workflow changes.

Prerequisites

A CreativeAI account with an API key (free credits included)
n8n instance (cloud or self-hosted, any version)
1

Image Generation (HTTP Request Node)

Add an HTTP Request node to your workflow with these settings:

MethodPOST
URLhttps://api.creativeai.run/v1/images/generations
AuthenticationHeader Auth β€” Authorization: Bearer YOUR_API_KEY
Content-Typeapplication/json
Body TypeJSON

Request Body

json
{
  "model": "dall-e-3",
  "prompt": "Professional product photo of wireless headphones on marble surface, soft lighting",
  "size": "1024x1024",
  "n": 1
}

Response

json
{
  "created": 1709827200,
  "data": [
    {
      "url": "https://cdn.creativeai.run/images/abc123.png",
      "revised_prompt": "Professional product photo of wireless headphones..."
    }
  ],
  "model_actual": "gpt-image-1",
  "failover_used": false
}

Tip: Use {{ $json.data[0].url }} in subsequent nodes to reference the generated image URL. The model_actual field tells you which model served the request (useful for debugging).

2

Transparent PNG (Sprites, Logos, Stickers)

Add "background": "transparent" to your request body. Perfect for game assets, product cutouts, or logo generation workflows.

json
{
  "model": "dall-e-3",
  "prompt": "Cute cartoon cat mascot, clean vector style",
  "size": "1024x1024",
  "background": "transparent",
  "n": 1
}
3

Video Generation (Async + Polling)

Video generation is asynchronous. You submit a request, get a task_id, then poll for completion. In n8n, use a second HTTP Request node (or a Wait + Loop) to check the status.

Step A: Submit Video Request

MethodPOST
URLhttps://api.creativeai.run/v1/video/generations
json
{
  "model": "kling-v2-master",
  "prompt": "Drone aerial shot of coastal cliffs at golden hour, cinematic",
  "duration": "5",
  "aspect_ratio": "16:9"
}

Step B: Poll for Completion

MethodGET
URLhttps://api.creativeai.run/v1/video/status/{{ $json.task_id }}
json
{
  "task_id": "vid_abc123",
  "status": "completed",
  "video_url": "https://cdn.creativeai.run/videos/abc123.mp4",
  "duration": 5,
  "resolution": "1080p"
}

Polling tip: Video generation takes 30-120 seconds depending on the model and duration. In n8n, add a Wait node (30s) between submit and poll, or use a loop that retries every 15 seconds until status === "completed".

4

Example: Social Media Image Workflow

Automatically generate social media images from captions. Connect a trigger (RSS, webhook, schedule) β†’ Function node β†’ HTTP Request β†’ post to social media.

Workflow Structure

TriggerFunction: Build PromptHTTP Request: CreativeAIPost to Social

Function Node (Build Prompt)

javascript
// n8n Function node β€” build request from trigger data
const caption = $input.first().json.caption;
const style = $input.first().json.style || "modern minimalist";

return {
  json: {
    model: "dall-e-3",
    prompt: `Social media graphic for: ${caption}. Style: ${style}. Clean, professional, suitable for Instagram.`,
    size: "1024x1024",
    n: 1
  }
};

Available Models

Image Models

  • Populardall-e-3 β€” GPT Image (OpenAI)
  • Bestflux-pro β€” Flux Pro (Black Forest)
  • Budgetseedream-3.0 β€” Seedream (ByteDance)
  • Premiumideogram-v3 β€” Ideogram V3

Video Models

  • Popularkling-v3 β€” Kling V3 Pro
  • Bestkling-o3-pro β€” Kling O3 Pro
  • Fastseedance-1.5 β€” Seedance 1.5 (ByteDance)

Rate Limits & Concurrency

TierImage Requests/minVideo Requests/minConcurrent
Free1035
Pay-as-you-go301015
EnterpriseCustomCustomCustom

For print-on-demand or batch workflows, the pay-as-you-go tier supports 30 concurrent image generations β€” enough for most production workloads. Need more? Contact us.

Migrating from Gemini or Sora?

If your n8n workflow uses Gemini 3 Pro (shutting down March 9) or Sora (shutting down March 13), CreativeAI is a drop-in replacement. Just change the URL and API key in your HTTP Request node β€” no other changes needed.

Gemini 3 Pro β†’ dall-e-3Sora β†’ kling-v2-masterUse promo: GEMINI2026 for free credits

Ready to Build?

Get your API key and start generating AI images in your n8n workflows today. Free credits included β€” no credit card required.