← Back to Documentation

Quick Start Guide

Get up and running with HAIEC in under 5 minutes

1

1. Get Your API Key

Sign up for a free account and grab your API key from the dashboard

# Visit https://haiec.com/signup
# Navigate to Settings > API Keys
# Copy your API key
2

2. Install the SDK

Install HAIEC SDK for your preferred language

# Node.js / JavaScript
npm install @haiec/sdk

# Python
pip install haiec

# Ruby
gem install haiec
3

3. Initialize the Client

Create a HAIEC client instance with your API key

// Node.js
import HAIEC from '@haiec/sdk';

const haiec = new HAIEC({
  apiKey: process.env.HAIEC_API_KEY
});

# Python
from haiec import HAIEC

haiec = HAIEC(api_key=os.environ['HAIEC_API_KEY'])
4

4. Detect Bias

Analyze text for potential bias

// Node.js
const result = await haiec.detectBias({
  text: "Looking for rockstar developer",
  context: "job_description"
});

console.log(result);
// {
//   biasDetected: true,
//   category: "gender",
//   severity: "high",
//   suggestions: ["skilled developer", "talented developer"]
// }
5

5. Monitor Behavior

Track AI behavior over time to detect drift

// Monitor AI responses
const monitoring = await haiec.monitor({
  input: userQuery,
  output: aiResponse,
  model: "gpt-4",
  sessionId: "user_123"
});

if (monitoring.driftDetected) {
  console.log("Drift score:", monitoring.driftScore);
  console.log("Baseline deviation:", monitoring.deviation);
}