Setup
In order to use the Qualifire Proxy, you need to set up an Integration or an API key.
API key
To set up an API key, follow these steps:
Navigate to the API keys page in the Qualifire platform.
Navigate to the API keys page in the Qualifire platform.
Click on the 'Create New API key' button.
Click on the “Create New API key” button.
Save the API key and start using it in your application.
Save the API key and start using it in your application.The API key is sensitive information and should be kept confidential. Never commit API keys to source control or expose them in client-side code. Use environment variables to store and access your keys.
Using Your API Key
We recommend storing your API key as an environment variable named QUALIFIRE_API_KEY and referencing it in your code.
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: "https://proxy.qualifire.ai/api/providers/openai",
defaultHeaders: {
"X-Qualifire-Api-Key": process.env.QUALIFIRE_API_KEY,
},
});
Once you have set up an Integration or an API key, you can use it with your application.