deepset-ai / deepset-ai/haystack-core-integrations
Add n1n.ai API as a model provider
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 203
- Forks
- 332
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 80
Description
Hi Deepset team,
We're n1n API, and we offer a robust API that provides access to 400+ large language models (LLMs), as well as multimodal generation capabilities (text, images, video, audio, etc.). Our platform makes it easy to integrate these advanced features into your project, empowering developers with powerful AI tools.
With n1n API, you can quickly leverage a comprehensive suite of AI models for diverse applications—everything from text generation to media synthesis—through simple, easy-to-use endpoints.
Adding n1n API would benefit Deepset users by:
- Providing access to 400+ models through a single API key configuration
- Supporting all major models (OpenAI, Anthropic, Gemini, Llama, and many more)
- Offering competitive pricing with unified billing (some are lowest to 1/10 of the official price)
- Enabling easy model switching for different assistants without managing multiple API keys
Describe the solution you'd like
Integrate n1n API as an additional AI model provider in Deepset. n1n API is OpenAI-compatible (base URL: https://n1n.ai/v1/) and offers extended multimodal generation capabilities beyond standard text completion, including image, video, and audio generation endpoints.
Resources
Website: https://n1n.ai/
Dashboard: https://n1n.ai/console
Base URL: https://n1n.ai/v1/
Pricing: https://n1n.ai/pricing
API Documentation: https://docs.n1n.ai/
Support: help@n1n.ai
We are excited to contribute to the Deepset ecosystem and provide users with access to the latest AI models through our robust API platform. We look forward to collaborating with the Deepset maintainers and community to make this integration successful.
Is your feature request related to a problem? Please describe.
We need more robust, region-diverse, and cost-effective LLM options in Haystack pipelines. Relying on a small set of providers can cause issues during rate limiting, regional outages, or price-sensitive workloads. Adding n1n API as an OpenAI-compatible provider would improve availability, portability, and resilience without disrupting existing workflows.
Describe the solution you'd like
Add n1n API as a first-class LLM provider in Haystack, or officially support configuring the existing OpenAI components via base_url to point to n1n API.
Desired capabilities:
- Chat and text generation via OpenAI-compatible endpoints
- Model listing and selection via n1n API model APIs
- API Key configuration and credential management
- Streaming and non-streaming support (leveraging Haystack abstractions if available)
- Minimal example + docs showing how to use n1n API in a Haystack pipeline
Describe alternatives you've considered
- Use current OpenAI adapters with a custom base_url (if already supported). This works but lacks discoverability and may have subtle compatibility gaps.
- Go through third-party proxies/aggregators. This adds an extra dependency and less control.
- Stay with current providers only. This limits resilience, vendor flexibility, and cost optimization.
Additional context
Compatibility:
n1n API exposes OpenAI-compatible endpoints, enabling low-friction integration by reusing Haystack's existing OpenAI components where possible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Haystack's existing OpenAI components and whether they support a custom base_url. Check the n1n API documentation for compatibility with chat, text generation, streaming, and model listing. Done means n1n is either supported through the existing configuration or integrated as a documented provider with the requested capabilities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100