Image-to-base64

Convert an image URL to a base64 string.

Request Information

POST https://exorion.xyz/api/image-to-base64

HTTP Headers
Name
Value

Authorization

API_KEY

Content-type

application/json


Request Payload
Name
Value

url

"https://example.png"

Code Examples

Request.py
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())

Last updated