Developer Resources
Build the future of ethical AI advertising with our comprehensive developer tools and APIs
API Key Management
Create and manage API keys for ThymosAI
Quick Start
Get up and running with ThymosAI in minutes
API
REST API
Comprehensive RESTful API for all ThymosAI features
POST /api/emotion/detect
200ms
POST /api/ad/generate
150ms
GET /api/analytics
50ms
POST /api/consent
25ms
SDK
JavaScript SDK
Easy-to-use SDK for web and Node.js applications
- TypeScript support
- React hooks included
- Built-in error handling
- Automatic retries
Docs
Documentation
Comprehensive guides and tutorials
- Getting started guide
- API reference
- Code examples
- Best practices
Open Source
GitHub Repository
Open source examples and community contributions
⭐ Stars2.4k
🍴 Forks456
🐛 Issues23
📝 PRs12
Code Examples
Real-world examples to get you started
React Integration
import { useThymosAI } from '@thymos/react'
function AdComponent() {
const { emotion, generateAd } = useThymosAI()
return (
<div>
<EmotionDetector />
<PersonalizedAd emotion={emotion} />
</div>
)
}
Node.js Backend
const { ThymosAI } = require('@thymos/ai-sdk')
app.post('/analyze', async (req, res) => {
const emotion = await thymos.detectEmotion(
req.body.imageData
)
const ad = await thymos.generateAd(emotion)
res.json({ emotion, ad })
})