Skip to content

Instantly share code, notes, and snippets.

View webotoffc's full-sized avatar

Xyro Official webotoffc

View GitHub Profile
@webotoffc
webotoffc / editimage.js
Created October 20, 2025 03:20
Edit Image
const axios = require("axios");
const FormData = require("form-data");
async function editImage(buffers, prompt) {
const buffer = buffers[0];
const form = new FormData();
form.append("image", buffer, "image.jpg");
form.append("prompt", prompt);
const response = await axios.post("https://api.xyro.site/ai/notegpt/edit", form, {
@webotoffc
webotoffc / tofigure.js
Created October 17, 2025 04:47
Tofigure - API
const axios = require("axios");
const FormData = require("form-data");
async function convert(buffers, prompt) {
const buffer = buffers[0];
const form = new FormData();
form.append("image", buffer, "image.jpg");
form.append("prompt", prompt);
const response = await axios.post("https://api.xyro.site/ai/notegpt/edit", form, {