image-gen / tests /client.js
BeveledCube's picture
Pls work
610afda
raw
history blame
317 Bytes
const axios = require("axios");
const apiUrl = `http://de-fsn-4.halex.gg:25287/api`;
const postData = {
prompt: "Wassup my homie"
};
axios.post(apiUrl, postData)
.then(response => {
console.log("Response from API:", response.data);
})
.catch(error => {
console.error("Error:", error.message);
});