Unlock the Power of KyaToolsJi
Integrate our high-performance PDF and Image processing engine directly into your applications. Scalable, secure, and lightning fast.
Lightning Fast
Processed on edge servers for sub-second latency on standard operations.
Secure by Design
End-to-end encryption. Files are automatically processed and purged.
Developer First
Clean REST API with intuitive endpoints and comprehensive SDKs.
Authentication
The KyaToolsJi API uses API keys to authenticate requests. You can view and manage your API keys in the Developer Dashboard.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
curl -X GET https://api.kyatoolsji.com/v1/status \
-H "Authorization: Bearer YOUR_API_KEY"
Merge PDFs
Combine multiple PDF documents into a single file. Supports order customization and metadata preservation.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
files |
Array<File> | Yes | List of PDF files to merge (min 2). |
async |
Boolean | No | Set to true for large jobs to process in background. |
Request Example
const axios = require('axios');
const formData = new FormData();
formData.append('files', fs.createReadStream('doc1.pdf'));
formData.append('files', fs.createReadStream('doc2.pdf'));
axios.post('https://api.kyatoolsji.com/v1/pdf/merge', formData, {
headers: { 'Authorization': 'Bearer KEY' }
}).then(response => {
console.log(response.data.download_url);
});
import requests
files = [
('files', open('doc1.pdf', 'rb')),
('files', open('doc2.pdf', 'rb'))
]
headers = {'Authorization': 'Bearer KEY'}
response = requests.post('https://api.kyatoolsji.com/v1/pdf/merge', files=files, headers=headers)
print(response.json()['download_url'])
curl -X POST https://api.kyatoolsji.com/v1/pdf/merge \
-H "Authorization: Bearer KEY" \
-F "files=@doc1.pdf" \
-F "files=@doc2.pdf"
Resize Image
Smart resizing for images. Supports fixed dimensions, percentage scaling, and aspect ratio preservation with AI-powered sharpening.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
file |
File | Yes | The source image file (JPG, PNG, WEBP). |
width |
Integer | No | Target width in pixels. |
height |
Integer | No | Target height in pixels. |
strategy |
String | No | fit | fill | stretch (Default: fit). |
Request Example
{
"width": 1920,
"height": 1080,
"strategy": "cover",
"sharpen": true
}
Error Handling
We use standard HTTP status codes. All error responses will contain a JSON body with more details.
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Success! |
| 400 | Bad Request | Invalid parameters provided. |
| 401 | Unauthorized | API Key missing or invalid. |
| 429 | Too Many Requests | Rate limit exceeded. |
| 500 | Server Error | Something went wrong on our end. |