workflows.fit
Back to n8n workflows
n8n templateFreeBy Dele Odufuye

Create universal OpenAI-compatible API endpoints for multiple AI workflows

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 Thi...

DevelopmentCore NodesAILangchainUtilityAggregateRespond To WebhookWebhook
Loading interactive preview...

Template notes

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.