Dokumentation
Umfassende Entwicklerdokumentation für die LyDian Enterprise AI-Plattform. Erstellen Sie leistungsstarke KI-Anwendungen mit 23 AI-Modellen, Unterstützung für 84 Sprachen und Echtzeit-Verarbeitungsfunktionen.
Einführung
LyDian Enterprise AI ist eine KI-Plattform auf Unternehmensniveau, die mehrere Modelle vereint, darunter LyDian, LyDian Cloud, LyDian Vision und die Advanced AI Platform. Greifen Sie über eine einzige API auf 23 verschiedene AI-Modelle zu.
- 23 AI-Modelle (LyDian Engine, Enterprise AI, LyDian Vision, LyDian Image Engine)
- Unterstützung für 84 Sprachen mit dem LyDian AI-Sprachpaket
- Echtzeit-Streaming und WebSocket
- Multimodale Verarbeitung (Text, Bild, Audio)
- Unternehmenssicherheit und Skalierbarkeit
Schnellstart
Nur wenige einfache Schritte, um die Plattform zu nutzen:
// 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'])
Authentifizierung
Alle API-Anfragen erfordern eine Bearer-Token-Authentifizierung.
Authorization: Bearer sk-lydian-xxxxxxxxxxxxxxxx
Content-Type: application/json
AI-Modelle
Die Plattform unterstützt 23 verschiedene AI-Modelle. Jedes Modell ist für unterschiedliche Aufgaben optimiert.
Streaming-API
Streaming-Unterstützung für Echtzeit-Antworten.
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
Brauchen Sie Hilfe? Kontaktieren Sie uns:
- E-posta: support@ailydian.com
- Discord: LyDian Community
- Documentation: docs.lydian.com
- GitHub: github.com/lydian