API Documentation

Welcome to our API documentation. Our API provides a range of powerful AI-driven tools for image processing and PDF manipulation.

Start your app with us now

Explore our API documentation and examples to integrate PurePix into your application or workflow.

AI Background Remover

Endpoint: /api/ai-background-remover

Remove backgrounds from images instantly using AI. Simply upload your image, and our algorithm will automatically detect and remove the background.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/ai-background-remover';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

Object Remover

Endpoint: /api/object-remover

Erase unwanted objects from your images effortlessly. Specify the area or object you want to remove, and our tool will handle the rest.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/object-remover';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

Enhance Image Quality

Endpoint: /api/enhance-image-quality

Improve the resolution and quality of your images using AI upscaling. Perfect for enhancing photos and graphics.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/enhance-image-quality';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

Image to PDF

Endpoint: /api/image-to-pdf

Convert multiple images into a single high-quality PDF. Upload your images and receive a neatly combined PDF document.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/image-to-pdf';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

TikTok Video Downloader

Endpoint: /api/tiktok-video-downloader

Download TikTok videos without watermarks easily. Simply provide the video URL, and our API will return a clean download link.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/tiktok-video-downloader';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

Combine PDF

Endpoint: /api/combine-pdf

Merge multiple PDF files into one document. Upload your PDFs and combine them seamlessly into a single file.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/combine-pdf';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

Split PDF

Endpoint: /api/split-pdf

Split a large PDF into multiple smaller files. Specify your splitting criteria, and the API will handle the rest.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/split-pdf';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});

Image to SVG

Endpoint: /api/image-to-svg

Convert raster images to vector SVG format. Perfect for designers who need scalable vector graphics from pixel-based images.

const axios = require('axios');

const API_KEY = 'YOUR_API_KEY';
const endpoint = 'https://yourapi.com/api/image-to-svg';
const formData = new FormData();
formData.append('file', yourFile);

axios.post(endpoint, formData, {
  headers: { 'Authorization': `Bearer ${API_KEY}` }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});