Convert files programmatically with our powerful RESTful API
The HQMX Converter API allows you to convert files between different formats programmatically. Perfect for developers building applications that need file conversion capabilities.
https://api.hqmx.net/converter
Currently, our API uses rate limiting by IP address. For production usage and higher limits, please contact us at [email protected].
/convert
Upload a file and convert it to the specified format.
| Parameter | Type | Status | Description |
|---|---|---|---|
file |
File | Required | The file to convert (multipart/form-data) |
target_format |
String | Required | Target format (e.g., "pdf", "jpg", "png", "mp4") |
quality |
String | Optional | Output quality: "low", "medium", "high" (default: "high") |
curl -X POST https://api.hqmx.net/converter/convert \
-F "file=@/path/to/your/file.png" \
-F "target_format=jpg" \
-F "quality=high"
import requests
url = "https://api.hqmx.net/converter/convert"
files = {"file": open("document.png", "rb")}
data = {
"target_format": "jpg",
"quality": "high"
}
response = requests.post(url, files=files, data=data)
if response.status_code == 200:
with open("converted.jpg", "wb") as f:
f.write(response.content)
const FormData = require('form-data');
const fs = require('fs');
const axios = require('axios');
const form = new FormData();
form.append('file', fs.createReadStream('document.png'));
form.append('target_format', 'jpg');
form.append('quality', 'high');
axios.post('https://api.hqmx.net/converter/convert', form, {
headers: form.getHeaders(),
responseType: 'stream'
}).then(response => {
response.data.pipe(fs.createWriteStream('converted.jpg'));
});
On success, returns the converted file as binary data with appropriate content-type header.
Content-Type: image/jpeg
Content-Disposition: attachment; filename="converted.jpg"
[Binary file data]
For higher limits, custom solutions, or enterprise support, contact us at [email protected]. We offer:
JPG, PNG, GIF, BMP, WEBP, TIFF, SVG, ICO
PDF, DOCX, DOC, TXT, RTF, ODT, XLSX, XLS, PPTX, PPT
MP4, AVI, MOV, MKV, WEBM, FLV, WMV
MP3, WAV, AAC, FLAC, OGG, M4A, WMA
| Status Code | Meaning | Description |
|---|---|---|
200 |
OK | Conversion successful |
400 |
Bad Request | Invalid parameters or file format |
413 |
Payload Too Large | File exceeds size limit |
429 |
Too Many Requests | Rate limit exceeded (28/day for free tier) |
500 |
Internal Server Error | Conversion failed, please retry |
Have questions or need custom solutions? We're here to help!
For Enterprise Inquiries: Please include your use case, expected volume, and budget in your email.