Introduction
Iliad Labs provides an API platform that adds persistent memory to AI agents. Your agents can store and retrieve information across conversations, enabling personalized and contextual interactions.
Quick Start
Get your API key from the dashboard.
We recommend using our SDK to get started quickly and easily. However, there is also the option of calling the API directly.
Option 1: SDK (Recommended)
npm install @iliad/sdk
import { Iliad } from '@iliad/sdk';
const iliad = new Iliad({
apiKey: 'YOUR_API_KEY'
});
const response = await iliad.chat({
provider: 'anthropic',
model: 'claude-3-5-sonnet-20241022',
messages: [{ role: 'user', content: 'Hello' }],
memoryOptions: { userId: 'user-123' }
});
Option 2: Direct API
curl -X POST https://api.iliadlabs.ai/api/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "anthropic",
"model": "claude-3-5-sonnet-20241022",
"messages": [{"role": "user", "content": "Hello"}],
"memoryOptions": {"userId": "user-123"}
}'