Skip to content

Add n1n.ai API as a model provider #3178

Closed

Description

@n1n-api

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.

Activity

  1. github-actions commented on Oct 14, 2025

    @github-actions
    Contributor

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

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

  2. n1n-api commented on Oct 14, 2025

    @n1n-api
    Author

    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!

  3. rekram1-node commented on Oct 14, 2025

    @rekram1-node
    Contributor

    Sorry the bot sometimes confuses people

  4. rekram1-node commented on Oct 14, 2025

    @rekram1-node
    Contributor

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions