Repository navigation
Replies: 3 comments
|
Yes! vLLM integrates with n8n via the OpenAI-compatible API. Setup:
vllm serve meta-llama/Llama-3-8B-Instruct --port 8000
Option A: HTTP Request node {
"method": "POST",
"url": "http://localhost:8000/v1/chat/completions",
"headers": {
"Content-Type": "application/json"
},
"body": {
"model": "meta-llama/Llama-3-8B-Instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}
}Option B: OpenAI node with custom base URL Option C: LangChain node n8n workflow example: For streaming: We build n8n + vLLM workflows at Revolution AI — the OpenAI-compatible API makes integration seamless. |
|
Yes—there is no vLLM-specific n8n node required. vLLM exposes an OpenAI-compatible HTTP API, so n8n can call it through either the HTTP Request node or, depending on your n8n version, the OpenAI Chat Model node with a custom base URL. HTTP Request node Start vLLM: bash Configure an n8n HTTP Request node:
json The generated text is normally available at: text If n8n runs in Docker alongside vLLM, do not use localhost unless vLLM is in the same container. Use the vLLM container/service name, for example: text OpenAI/LangChain nodes The n8n OpenAI Chat Model node defaults to the Chat Completions API. If your installed n8n version exposes a Base URL option in its OpenAI credentials, set it to: text Then select the model name returned by vLLM and use it in an AI Agent or chain. If that option is unavailable or model discovery fails, the HTTP Request node is the most reliable approach. Confirmed compatibility and caveats
References:
|
Yes! Because `vLLM` serves an **OpenAI-compatible API**, it integrates natively with `n8n` using standard OpenAI / LangChain nodes without requiring custom plugins:
1. **Use the `OpenAI Model` or `Advanced AI / LangChain` node in n8n**:
- **Base URL**: `http://<your-vllm-host>:8000/v1`
- **API Key**: `EMPTY` (or any placeholder string if auth is disabled on vLLM).
- **Model Name**: Use the exact model string passed to `vllm serve` (e.g. `Qwen/Qwen2.5-7B-Instruct`).
2. **HTTP Request Node (Custom REST call)**:
- **Method**: `POST`
- **URL**: `http://<your-vllm-host>:8000/v1/chat/completions`
- **Body**:
json
{
"model": "your-model-name",
"messages": [
{"role": "user", "content": "{{ $json.prompt }}"}
],
"temperature": 0.7
}
|
Uh oh!
There was an error while loading. Please reload this page.
Any known integration with n8n ?
All reactions