1
2
Set QUALIFIRE_API_KEY as an environment variable
3
Modify the base path and add a X-Qualifire-Api-Key header
If you created a direct integration, you can omit the
defaultHeaders
property.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Integrate your application with Anthropic
Set QUALIFIRE_API_KEY as an environment variable
QUALIFIRE_API_KEY=<your API key>
Modify the base path and add a X-Qualifire-Api-Key header
defaultHeaders
property.import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
baseURL: "https://proxy.qualifire.ai/api/providers/anthropic",
apiKey: process.env.ANTHROPIC_API_KEY,
defaultHeaders: {
"X-Qualifire-Api-Key": process.env.QUALIFIRE_API_KEY,
},
});
import anthropic
import os
client = anthropic.Anthropic(
api_key=os.environ.get("ANTHROPIC_API_KEY"),
base_url="https://proxy.qualifire.ai/api/providers/anthropic/",
default_headers={
"X-Qualifire-Api-Key": os.environ['QUALIFIRE_API_KEY'],
},
)