Create Universal OpenAI-Compatible API Endpoints for Multiple AI Workflows
    100%
    Data Processing
    0(0 reviews)
    100 downloads

    Create Universal OpenAI-Compatible API Endpoints for Multiple AI Workflows

    NM

    Curated by n8n Markets team

    Last updated: March 8, 2026

    # N8n OpenAI-Compatible API Endpoints Transform your n8n workflows into OpenAI-compatible API endpoints, allowing you to access multiple workflows as selectable AI models through a single integration. ## What This Does This workflow creates two API endpoints that mimic the OpenAI API structure: - `/models` - Lists all n8n workflows tagged with `aimodel` (or any other tag of your choice) - `/chat/completions` - Executes chat completions with your selected workflows, supporting both text and stream responses ## Benefits Access Multiple Workflows: Connect to all your n8n agents through one API endpoint instead of creating separate pipelines for each workflow. Universal Platform Support: Works with any application that supports OpenAI-compatible APIs, including OpenWebUI, Microsoft Teams, Zoho Cliq, and Slack. Simple Workflow Management: Add new workflows by tagging them with `aimodel` . No code changes needed. Streaming Support: Handles both standard responses and streaming for real-time agent interactions . ## How to Use 1. Download the workflow JSON file from this repository 2. Import it into your n8n instance 3. Tag your workflows with `aimodel` to make them accessible through the API 4. Create a new OpenAI credential in n8n and change the Base URL to point to your n8n webhook endpoints . [Learn more about OpenAI Credentials](https://docs.n8n.io/integrations/builtin/credentials/openai/) 5. Point your chat applications to your n8n webhook URL as if it were an OpenAI API endpoint ## Requirements - n8n instance (self-hosted or cloud) - Workflows you want to expose as AI models - Any OpenAI-compatible chat application ## Documentation For detailed setup instructions and implementation guide, visit [https://medium.com/@deleodufuye/how-to-create-openai-compatible-api-endpoints-for-multiple-n8n-workflows-803987f15e24](https://medium.com/@deleodufuye/how-to-create-openai-compatible-api-endpoints-for-multiple-n8n-workflows-803987f15e24). ## Inspiration This approach was inspired by [Jimleuk’s workflow on n8n Templates.](https://n8n.io/workflows/4217-create-openai-compatible-api-using-github-models-for-free-ai-access/)

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 30-60 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Mar 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Dependencies & Requirements

    OpenAI
    AI

    ⚠️ 1 service require credentials. Make sure you have accounts set up before importing.

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought