REST API for integrating ThinkLocAI into your applications, with streaming, OAuth, and OpenAPI documentation.
// ThinkLocAI REST API
const response = await fetch('/api/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model: 'llama-3.1-70b',
messages: [
{ role: 'user', content: 'Zusammenfassung...' }
],
stream: true
})
});Transparency notice: this demo is a simulation using prepared sample data and does not show output from a live AI model. Labelled in line with Art. 50 of Regulation (EU) 2024/1689.
RESTful API with JSON responses for all ThinkLocAI features.
Responses are streamed token by token via Server-Sent Events.
Authentication with bearer tokens and a refresh mechanism.
Event-based notifications for asynchronous workflows.
OpenAPI 3.0 documentation for automatic client generation.
Native SDKs for Python, JavaScript/TypeScript, and more languages.
Integrate AI into your existing automation platforms like n8n or Zapier.
Connect to ERP, CRM, and other enterprise systems via API.
Build tailored AI applications on top of the ThinkLocAI API.
Start with the API documentation and connect ThinkLocAI to your existing applications.