Getting Models (OpenAI compatible)

A simple HTTP Request node.

Requires:

  • Generic Auth Type: Header Auth - and name Authorization with value = the required key
  • Specific headers: Content-Typeapplication/json

Change the URL to what you need:

  • GoogleAI: https://generativelanguage.googleapis.com/v1beta/openai/models
  • OpenAI: https://api.openai.com/v1/models
  • Ollama: http://localhost:11434/v1/models
1 curtida

If you are using an OpenAI-compatible API, the endpoint “Get Models” is used to retrieve the list of available models from the provider (OpenAI or compatible services like Together AI, Groq, OpenRouter, etc.).

1. API Endpoint ( GET /v1/models )

2. JavaScript Example (Node.js) url (import fetch from “node-fetch”;

const response = await fetch(“https://api.openai.com/v1/models”, {

headers: {

"Authorization": \`Bearer ${process.env.OPENAI_API_KEY}\`

}

});

const data = await response.json();

console.log(data);