Portkey provides a robust and secure gateway to facilitate the integration of various Large Language Models (LLMs) into your applications, including Nomic.Nomic has especially become popular due to it’s superior embeddings and is now available through Portkey’s AI gateway as well.With Portkey, you can take advantage of features like fast AI gateway access, observability, prompt management, and more, all while ensuring the secure management of your LLM API keys through a virtual key system.
You can head over to the Integrations tab and connect Nomic with API key. This will be then used to make API requests to Nomic without needing the protected API key. Grab your Nomic API key from here.
2. Install the Portkey SDK and Initialize with Nomic
Add the Portkey SDK to your application to interact with Nomic’s API through Portkey’s gateway.
Copy
Ask AI
import Portkey from 'portkey-ai'const portkey = new Portkey({ apiKey: "PORTKEY_API_KEY", // defaults to process.env["PORTKEY_API_KEY"] provider:"@nomic" // Your Nomic provider slug from Portkey})