Documentation
Comprehensive developer documentation for the LyDian Enterprise AI platform. Build powerful AI applications with 23 AI models, 84 language support, and real-time processing capabilities.
Introduction
LyDian, LyDian Cloud, Google LyDian Vision ve Advanced AI Platform Enterprise AI is an enterprise-grade AI platform combining multiple models. Access 23 different AI models through a single API.
- 23 AI modeli (LyDian Engine, Enterprise AI, LyDian Vision, LyDian Image Engine)
- 84 language support with LyDian AI language package
- Real-time streaming and WebSocket
- Multimodal processing (text, image, audio)
- Enterprise security and scalability
Quick Start
Just a few simple steps to get started using the Platform:
// Make the request with your API key
const response = await fetch('https://www.ailydian.com/api/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
message: 'Merhaba yapay zeka!',
model: 'LyDian Engine'
})
});
const data = await response.json();
// DEBUG: console.log(data.response);
import requests
response = requests.post('https://www.ailydian.com/api/chat',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'message': 'Merhaba yapay zeka!',
'model': 'LyDian Engine'
})
print(response.json()['response'])
Authentication
All API requests require Bearer token authentication.
Authorization: Bearer sk-lydian-xxxxxxxxxxxxxxxx
Content-Type: application/json
AI Modelleri
The Platform supports 23 different AI models. Each model is optimized for different tasks.
Streaming API
Streaming support for real-time responses.
const response = await fetch('https://www.ailydian.com/api/chat', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
message: 'Uzun bir makale yaz',
stream: true
})
});
const reader = response.body.getReader();
const decoder = new TextDecoder();
while (true) {
const { done, value } = await reader.read();
if (done) break;
const chunk = decoder.decode(value);
// DEBUG: console.log(chunk); // Show as each word arrives
}
Support
Need help? Get in touch with us:
- E-posta: [email protected]
- Discord: LyDian Community
- Documentation: docs.lydian.com
- GitHub: github.com/lydian