Add n1n.ai API as a model provider #2104

Open
opened 2026-02-16 17:34:10 -05:00 by yindo · 4 comments
Owner

Originally created by @n1n-api on GitHub (Oct 14, 2025).

Originally assigned to: @jayair on GitHub.

Hi OpenCode 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 OpenCode 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 OpenCode. 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/
API Documentation: https://docs.n1n.ai/
Dashboard: https://n1n.ai/console
Support: help@n1n.ai

We are excited to contribute to the OpenCode ecosystem and provide users with access to the latest AI models through our robust API platform. We look forward to collaborating with the OpenCode maintainers and community to make this integration successful.

Originally created by @n1n-api on GitHub (Oct 14, 2025). Originally assigned to: @jayair on GitHub. Hi OpenCode 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 OpenCode 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 OpenCode. 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/ API Documentation: https://docs.n1n.ai/ Dashboard: https://n1n.ai/console Support: [help@n1n.ai](mailto:help@n1n.ai) We are excited to contribute to the OpenCode ecosystem and provide users with access to the latest AI models through our robust API platform. We look forward to collaborating with the OpenCode maintainers and community to make this integration successful.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2784: Request to add agentrouter.org as a provider
  • #2578: Feature request to add CometAPI provider support (similar structure with 400+ models vs your 400+ models)
  • #2487: Request to add AI/ML API as provider offering 300+ models in one place
  • #2933: Request to add Nebius AI Studio models support
  • #3168: Feature request for generic/custom endpoints with API key authentication (which could cover OpenAI-compatible APIs like yours)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 14, 2025): This issue might be a duplicate of existing issues. Please check: - #2784: Request to add agentrouter.org as a provider - #2578: Feature request to add CometAPI provider support (similar structure with 400+ models vs your 400+ models) - #2487: Request to add AI/ML API as provider offering 300+ models in one place - #2933: Request to add Nebius AI Studio models support - #3168: Feature request for generic/custom endpoints with API key authentication (which could cover OpenAI-compatible APIs like yours) Feel free to ignore if none of these address your specific case.
Author
Owner

@n1n-api commented on GitHub (Oct 14, 2025):

This issue might be a duplicate of existing issues. Please check:

Feel free to ignore if none of these address your specific case.

we are different platforms with advanced price for our customers, please help add, thx!

@n1n-api commented on GitHub (Oct 14, 2025): > This issue might be a duplicate of existing issues. Please check: > > * [Add Provider : agentrouter.org #2784](https://github.com/sst/opencode/issues/2784): Request to add agentrouter.org as a provider > * [Feature Request: Add CometAPI Provider Support #2578](https://github.com/sst/opencode/issues/2578): Feature request to add CometAPI provider support (similar structure with 400+ models vs your 400+ models) > * [add AI/ML API as provider #2487](https://github.com/sst/opencode/issues/2487): Request to add AI/ML API as provider offering 300+ models in one place > * [[Feature] : Add Nebius Ai Studio Models Support #2933](https://github.com/sst/opencode/issues/2933): Request to add Nebius AI Studio models support > * [Feature Request: Support for Generic/Custom Endpoints with API Key Authentication #3168](https://github.com/sst/opencode/issues/3168): Feature request for generic/custom endpoints with API key authentication (which could cover OpenAI-compatible APIs like yours) > > Feel free to ignore if none of these address your specific case. we are different platforms with advanced price for our customers, please help add, thx!
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

Sorry the bot sometimes confuses people

@rekram1-node commented on GitHub (Oct 14, 2025): Sorry the bot sometimes confuses people
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

Hey so I think this would be good I can give you direction, sounds like you are open to contributing the addition?

To add it to opencode you'll need to:

Submit a PR to https://models.dev/ for your provider
Once that's merged you can add it in opencode, test it, and submit a PR to this doc: https://opencode.ai/docs/providers/#directory

@rekram1-node commented on GitHub (Oct 14, 2025): Hey so I think this would be good I can give you direction, sounds like you are open to contributing the addition? To add it to opencode you'll need to: Submit a PR to https://models.dev/ for your provider Once that's merged you can add it in opencode, test it, and submit a PR to this doc: https://opencode.ai/docs/providers/#directory
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2104