Docs

RarxCloud

RarxCloud

Cloud storage and image hosting platform by RARX Network

RarxCloud

Overview#

RarxCloud is a fast, secure cloud storage and image hosting platform built by RARX Network. Upload files via the dashboard or REST API, get instant shareable links, and manage your storage with a clean interface.

Features#

Fast CDN

Files served instantly through optimized delivery

REST API

Upload and manage files programmatically

Dashboard

Clean web interface to manage all your files

Secure

SSL encryption, hashed passwords, encrypted API tokens

Image Tools

Automatic thumbnails, compression, and image processing

URL Shortener

Create short URLs alongside your file uploads

Plans#

Plan Storage Max File Size Price
Free 12 GB 25 MB Free
Starter 25 GB 50 MB €3/month
Pro 50 GB 100 MB €8/month
Business 100 GB 200 MB €20/month

All plans include full API access, dashboard, and unlimited downloads. Yearly billing available with discount.

Getting Started#

  1. Create an account

    Go to rarxcloud.com and click Get Started. Choose your plan and create your account.

  2. Get your API token

    In the dashboard, go to Tokens in the sidebar. Click Reveal to see your API token, and Copy to copy it.

  3. Upload your first file

    You can upload files through the Dashboard (Upload > File) or via the API (see below).

API Usage#

Authentication#

All API requests require your token in the Authorization header:

Text
Authorization: YOUR_TOKEN

Upload a File#

Shell
curl -X POST https://rarxcloud.com/api/upload \
  -H "Authorization: YOUR_TOKEN" \
  -F "[email protected]"

Response:

JSON
{
  "files": [
    {
      "url": "https://rarxcloud.com/u/abc123.png",
      "name": "abc123.png",
      "mimetype": "image/png",
      "size": 12345
    }
  ]
}

Upload Multiple Files#

Shell
curl -X POST https://rarxcloud.com/api/upload \
  -H "Authorization: YOUR_TOKEN" \
  -F "[email protected]" \
  -F "[email protected]"

Shorten a URL#

Shell
curl -X POST https://rarxcloud.com/api/shorten \
  -H "Authorization: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/very/long/url"}'

FiveM Integration#

RarxCloud works perfectly as an image CDN for FiveM servers. Here's how to use it with any resource that needs to upload screenshots or images.

Lua (Server-side)#

Lua
local token = "YOUR_TOKEN"

function UploadToRarxCloud(source, imageData, callback)
    local boundary = "----RarxBoundary" .. tostring(math.random(1000000))
    local body = "--" .. boundary .. "\r\n"
        .. 'Content-Disposition: form-data; name="file"; filename="screenshot.png"\r\n'
        .. "Content-Type: image/png\r\n\r\n"
        .. imageData .. "\r\n"
        .. "--" .. boundary .. "--\r\n"

    PerformHttpRequest("https://rarxcloud.com/api/upload", function(code, data, headers)
        if code == 200 then
            local res = json.decode(data)
            if res and res.files and res.files[1] then
                callback(res.files[1].url)
            end
        else
            print("[RarxCloud] Upload failed: " .. tostring(code))
        end
    end, "POST", body, {
        ["Authorization"] = token,
        ["Content-Type"] = "multipart/form-data; boundary=" .. boundary
    })
end

JavaScript (Server-side)#

JavaScript
const axios = require('axios');
const FormData = require('form-data');

async function uploadToRarxCloud(fileBuffer, fileName) {
    const form = new FormData();
    form.append('file', fileBuffer, { filename: fileName });

    const response = await axios.post('https://rarxcloud.com/api/upload', form, {
        headers: {
            'Authorization': 'YOUR_TOKEN',
            ...form.getHeaders()
        }
    });

    return response.data.files[0].url;
}

Dashboard#

The RarxCloud dashboard gives you full control over your account:

  • Home — Overview of your storage usage and recent uploads
  • Files — Browse, search, and manage all uploaded files
  • Folders — Organize files into folders
  • Upload — Upload files or text directly from the browser
  • URLs — Manage shortened URLs
  • Billing — View your plan, storage usage, and manage subscription
  • Tokens — View, copy, and regenerate your API token
  • Settings — Account settings, avatar, password, 2FA

Two-Factor Authentication#

RarxCloud supports TOTP-based 2FA for extra security:

  1. Go to Settings

    In the dashboard, navigate to Settings.

  2. Enable TOTP

    Find the Two-Factor Authentication section and scan the QR code with your authenticator app (Google Authenticator, Authy, etc.).

  3. Verify

    Enter the 6-digit code from your app to confirm. From now on, you'll need the code every time you log in.

OAuth Login#

RarxCloud supports logging in with:

  • Discord — Link your Discord account for quick login
  • Google — Sign in with your Google account

You can link these providers from Settings in the dashboard.

Troubleshooting#

Upload returns 401 Unauthorized

Make sure your API token is correct and included in the Authorization header. If you recently regenerated your token, update it in all your scripts.

Upload returns 413 or file size error

You're exceeding your plan's max file size limit. Check your plan limits on the Billing page. Upgrade your plan for larger file support.

Storage full

You've reached your plan's storage limit. Delete unused files from the dashboard or upgrade your plan.

FiveM upload not working

Verify: 1) Token is correct, 2) Server has internet access, 3) Endpoint is https://rarxcloud.com/api/upload, 4) File field name is file.

OAuth login error

Make sure your Discord/Google account is linked in Settings. If you get a 500 error, contact support.

Support#

Need help? Reach out to us: