How to use Vortex API for file hosting
Upload files to Vortex using a POST request to the upload endpoint.
curl -X POST \ -F "file=@/path/to/your/image.png" \ https://vortexcheatz.win/api/upload
{
"id": "uuid-here",
"filename": "uuid.png",
"originalName": "image.png",
"size": 1024,
"uploadedAt": "2025-10-21T...",
"url": "/api/files/uuid.png"
}Upload images from Discord bot and get shareable links.
const FormData = require('form-data');
const fetch = require('node-fetch');
async function uploadToVortex(fileBuffer, filename) {
const formData = new FormData();
formData.append('file', fileBuffer, filename);
const response = await fetch('https://vortexcheatz.win/api/upload', {
method: 'POST',
body: formData
});
const result = await response.json();
return `https://vortexcheatz.win${result.url}`;
}
client.on('messageCreate', async (message) => {
if (message.attachments.size > 0) {
const attachment = message.attachments.first();
const response = await fetch(attachment.url);
const buffer = await response.buffer();
const hostedUrl = await uploadToVortex(buffer, attachment.name);
message.reply(`Hosted: ${hostedUrl}`);
}
});import requests
def upload_to_vortex(file_path):
url = "https://vortexcheatz.win/api/upload"
with open(file_path, 'rb') as file:
files = {'file': file}
response = requests.post(url, files=files)
if response.status_code == 200:
data = response.json()
return f"https://vortexcheatz.win{data['url']}"
else:
raise Exception(f"Upload failed: {response.text}")
# Usage
hosted_url = upload_to_vortex("image.png")
print(f"File hosted at: {hosted_url}")Access uploaded files using the direct link.
• Maximum file size: 25 MB
• No authentication required (for now)
• Files are stored permanently until manually deleted
• Please don't abuse the service
• Inappropriate content will be removed