Image-to-base64
Convert an image URL to a base64 string.
Request Information
POST https://exorion.xyz/api/image-to-base64
https://exorion.xyz/api/image-to-base64Code Examples
import requests
url = "https://exorion.xyz/api/image-to-base64"
headers = {
"Authorization": "API_KEY", # Your Server API Key from /settings
"Content-Type": "application/json"
}
payload = {
"url": "https://example.png" # All Formats: png, jpeg, webp
}
res = requests.post(url, headers=headers, json=payload)
print(res.json())import fetch from "node-fetch";
const res = await fetch("https://exorion.xyz/api/image-to-base64", {
method: "POST",
headers: {
"Authorization": "API_KEY", // Your Server API from /settings
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.png", // All Formats: png, jpeg, webp
}),
});
const data = await res.json();
console.log(data);Last updated