Integrate our AI capabilities into your applications with a simple REST API. Get started quickly with our SDKs and code examples.
Sign up and generate your API key from the dashboard
Choose your preferred language and install our SDK
Start making API calls to our AI services
/api/v1/chat/completionsGenerate AI responses using our conversational models
/api/v1/embeddingsConvert text into vector embeddings for semantic search
/api/v1/analysis/educationalAnalyze educational content and generate insights
/api/v1/analysis/financialProcess financial documents and extract key information
/api/v1/analysis/healthcareAnalyze healthcare data and generate medical insights
import requests
import json
url = "https://api.hectorlabs.com/v1/chat/completions"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"model": "hector-gpt-4",
"messages": [
{"role": "user", "content": "Explain quantum computing in simple terms"}
],
"max_tokens": 500,
"temperature": 0.7
}
response = requests.post(url, headers=headers, json=data)
result = response.json()
print(result['choices'][0]['message']['content'])const axios = require('axios');
const url = 'https://api.hectorlabs.com/v1/embeddings';
const headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
};
const data = {
model: 'hector-embedding-v1',
input: 'Your text to embed here'
};
axios.post(url, data, { headers })
.then(response => {
console.log('Embedding:', response.data.data[0].embedding);
})
.catch(error => {
console.error('Error:', error);
});curl -X POST https://api.hectorlabs.com/v1/analysis/educational \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Your educational content here",
"analysis_type": "comprehension_check",
"target_audience": "university_students"
}'Official Python client library for HectorLabs API
pip install hectorlabsOfficial JavaScript/Node.js client library
npm install hectorlabsReact hooks for easy integration
npm install @hectorlabs/reactExplore our comprehensive documentation, join our developer community, or get in touch with our technical support team.