Skip to content

Feature Request: Allow setting custom base URL in OpenAI node (e.g. Novita AI support)Β #14431

Closed as not planned

Description

@MrHadik

Description:

Hi n8n team πŸ‘‹,

I'm integrating Novita AI, which is OpenAI-compatible but uses a different base URL: https://api.novita.ai/v3/openai

Currently, the OpenAI node in n8n does not allow modifying the base URL. This limits the ability to connect to third-party OpenAI-compatible APIs like Novita AI, OpenRouter, Anyscale, or Azure OpenAI.


Current Behavior:

  • The OpenAI node uses the default base URL https://api.openai.com.
  • There's no field or setting to override this URL.
  • This prevents the use of alternative providers with the same API structure.

Expected Behavior:

  • Add a Base URL field in the OpenAI credentials UI.
  • If provided, use the custom base URL instead of the default.
  • Fallback to https://api.openai.com if the field is empty (to preserve current behavior).

Use Case Example:

Trying to connect to: https://api.novita.ai/v3/openai

This API supports the same request/response structure as OpenAI, so no other changes are needed.


Proposed Change:

  • Update OpenAI.credentials.ts to include an optional baseUrl field.
  • Modify OpenAI.node.ts to use this field when making API requests.

Thanks for the amazing work on n8n! This feature would be a huge help for all of us exploring OpenAI-compatible models πŸ™

Activity

  1. Joffcom commented on Apr 7, 2025

    @Joffcom
    Member

    Hey @MrHadik,

    This is already possible...

    Image

    I am going to mark this as closed for now, For future reference feature requests are best created on our support forum as we use GitHub issues only for issues.

  2. dxcore35 commented on Jun 11, 2025

    @dxcore35

    What API key to add if there is no API key of my OPENAI compatible api server! But it is marked as mandatory

  3. hastmu commented on Dec 29, 2025

    @hastmu

    Hi, i tired to used novita ai llm for n8n, which did not work out of the box, so i headed for an api-mediation, which is at time of writting working for the AI-agent node.
    if it helps see: https://github.com/hastmu/n8n_openai-api_2_novita.ai-api_proxy
    enjoy.

  4. SajadTroy commented on May 5, 2026

    @SajadTroy

    you can simply use "https://api.novita.ai/v3/openai" as base url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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