Connect n8n, Dify & Open WebUI to One OpenAI-Compatible Gateway

Wire n8n AI Agent nodes, Dify workflows, and Open WebUI to https://api.modelseed.dev/v1 to switch between DeepSeek, GPT-6.2, Qwen, and GLM without rebuilding credentials.

Modelseed ·
INTERACTIVE CONFIG WIZARD

Generate a ready-to-paste config in 5 seconds

Pick your client, OS, and model — then click below to sign up and auto-fill this exact snippet with a scoped Starter API Key.

# docker-compose.yml (Open WebUI · key cap: $2 (2,000 credits))
services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    ports:
      - "3000:8080"
    environment:
      - OPENAI_API_BASE_URL=https://api.modelseed.dev/v1
      - OPENAI_API_KEY=sk-YOUR_MODELSEED_KEY
      - DEFAULT_MODELS=deepseek-v4-1-flash
30-SECOND API QUICK START

deepseek-v4-1-flash · Input $0.0822 · Output $0.3289 per 1M tokens

Get key + bonus
from openai import OpenAI
client = OpenAI(base_url="https://api.modelseed.dev/v1", api_key=os.environ["MODELSEED_API_KEY"])
res = client.chat.completions.create(model="deepseek-v4-1-flash", messages=[{"role":"user","content":"Hello!"}])
New accounts get a $1–$2 welcome bonus (1,000–2,000 credits) · Lava, USDT & Binance Pay from 0.50 USDT · DeepSeek rates · Pricing calculator

One credential across every automation node and self-hosted chat UI

Self-hosted automation stacks like n8n, Dify, Flowise, and Open WebUI become messy when every workflow stores a different vendor API key and breaks whenever a card expires or a regional endpoint throttles.

Pointing your OpenAI credentials in n8n, Dify, or Open WebUI to https://api.modelseed.dev/v1 lets every workflow call DeepSeek V4.1 Flash, GPT-6.2 Sol, Qwen 4 Max, GLM 5.3 Flash, or Doubao Seedream 5.0 Pro from a single prepaid USD wallet with per-workflow API key limits.

Exact Modelseed connection fields for n8n, Dify & Open WebUI
PlatformCredential / Provider TypeBase URLStarter Model ID
n8n (AI Agent / OpenAI node)OpenAI API (Custom Base URL)https://api.modelseed.dev/v1deepseek-v4-1-flash
Dify (Model Provider)OpenAI-API-compatiblehttps://api.modelseed.dev/v1gpt-6.2-sol or qwen3.8-flash
Open WebUIConnections → OpenAI APIhttps://api.modelseed.dev/v1Auto-discovered via /v1/models

Docker Compose snippet for Open WebUI + Modelseed

Open WebUI automatically pulls the available catalog list from /v1/models on boot when OPENAI_API_BASE_URL and OPENAI_API_KEY are set.

docker-compose.yml — Open WebUI connected to Modelseed
services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    ports:
      - "3000:8080"
    environment:
      OPENAI_API_BASE_URL: "https://api.modelseed.dev/v1"
      OPENAI_API_KEY: "${MODELSEED_API_KEY}"
    restart: unless-stopped

Production hardening tips for webhook automations

Webhook-triggered LLM workflows can spike unexpectedly if an external CRM or Telegram group floods events.

  • Issue one dedicated Modelseed API key per n8n instance or Dify workspace with a strict USD spend limit.
  • Use fast, ultra-low-cost models (gpt-6.1-terra at $0.032/$0.160 or deepseek-v4-1-flash at $0.082/$0.329) for routing/classification nodes and reserve Pro/Max models for final synthesis.
  • Always set max_tokens explicitly in n8n HTTP Request / OpenAI nodes to prevent runaway verbose replies.

Frequently asked questions

Does n8n require any custom community node to use Modelseed?

No. Use the built-in OpenAI credential in n8n and override the Base URL field with https://api.modelseed.dev/v1.

Why did Open WebUI fail to list models after I added the URL?

Ensure there is no trailing slash duplication (/v1/v1) and verify your key works directly with curl https://api.modelseed.dev/v1/models -H "Authorization: Bearer $MODELSEED_API_KEY".

Can one n8n workflow generate both ad copy and product images via Modelseed?

Yes — call /v1/chat/completions with deepseek-v4-1-flash for copy and an HTTP Request node to /v1/images/generations with Doubao-Seedream-5.0-pro ($0.0657/image) using the same Bearer key.

How do I fund automated workflows without linking a company credit card?

Top up your Modelseed prepaid wallet via Binance Pay (from 0.50 USDT), USDT, or Lava, and track per-key spend directly in Usage Logs.

Official references

BUILD WITH MODELSEED

From an idea to your first request.

One key and a familiar API. New verified accounts receive a random $1–$2 welcome bonus (1,000–2,000 credits) to test requests before topping up.

Get API key + bonus