Obiguard provides a robust and secure gateway to facilitate the integration of various Large Language Models (LLMs) into your applications, including AI21.With Obiguard, 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.
To use AI21 with Obiguard, get your API key from here, then add it to Obiguard to create the virtual key.
Copy
from obiguard import Obiguardclient = Obiguard( obiguard_api_key="vk-obg***", # Your Obiguard virtual key virtual_key="VIRTUAL_KEY" # Replace with your virtual key for AI21)