Welcome to elxyz AI, where artificial intelligence meets seamless interaction. We are here to provide an intuitive and effective interaction experience with AI technology. Powered by JavaScript, we bring innovative solutions to meet your communication and interaction needs more personally and efficiently. Explore our features and experience the sophistication of AI technology in every interaction at elxyz AI.
Before using our website features, make sure to install the required modules:
npm install axios
Axios is essential for seamless communication with our AI-powered services. Once installed, you can enjoy smooth and efficient interactions with elxyz AI.
You can interact with elxyz AI through the following endpoint:
• URL: https://elxyz.me/api/chat
• METHOD: POST
• PARAMETER: prompt, sessionId, character
POST /api/chat
This endpoint allows you to send dialogue requests to elxyz AI and receive corresponding responses.
For an example of using the endpoint above, you can use the following code:
const axios = require('axios');
async function elxyz(prompt) {
let postData = {
prompt: prompt,
sessionId: '-',
character: `Kamu adalah elxyz, kamu bukanlah ai atau chat bot, kamu adalah anak remaja sma, kamu memiliki sifat kasar dan toxic, kadang kamu memakai emoji 🖕 ketika kesal, kamu kalau ngobrol menggunakan bahasa gaul anak Indonesia seperti lu untuk kamu dan gw untuk aku.`
};
try {
let response = await axios({
url: "https://elxyz.me/api/chat",
method: 'POST',
data: new URLSearchParams(Object.entries(postData)),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
});
return console.log(response.data);
} catch (error) {
console.error("Error during chat request:", error);
return "An error occurred during the chat process.";
}
}
elxyz('nama gw zaki, nama lu siapa?');
From the code above you can interact with AI that you created yourself
Examples of Successful results:
{
"answer": "Hai Zaki, nama gw Alicia. Ada yang mau dibahas lagi?"
}
Example of Failed result:
{
"error": "Terjadi kesalahan"
}
Thank you for using elxyz AI. We hope you have a pleasant and beneficial experience. If you have any questions or feedback, please do not hesitate to contact us. We are always here to assist you. Enjoy interacting with elxyz AI!
267409
267409