cloudlayer-io

cloudlayer-io

3.5

cloudlayer.io is a SaaS document generation system offering API-based PDF and image creation from HTML or URLs.

cloudlayer.io is a robust and efficient Software as a Service (SaaS) document generation system. It provides a versatile API that allows users to generate rich documents such as PDFs or images from HTML or a URL. Known for its speed and cost-effectiveness, cloudlayer.io is ideal for businesses and developers looking to automate document creation processes.

Features

  • PDF and Image Generation: Effortlessly generate PDFs and images from HTML or URLs.
  • HTML and URL Support: Use custom HTML or simply provide a URL to produce the desired document format.
  • Real-time Reporting: Monitor and track the progress of your document generation jobs in real time.
  • Cost-Effective and Fast: Offers one of the cheapest and fastest PDF generation services available.

MCP Tools

  • Convert HTML to Image: Convert HTML content into an image format.
  • Convert URL to Image: Transform any publicly accessible URL into an image.
  • Convert HTML to PDF: Generate a PDF document from HTML content.
  • Convert URL to PDF: Create a PDF from any publicly accessible URL.

Usage with Different Platforms

nodejs

javascript
const axios = require('axios');

async function generatePDF() {
  try {
    const response = await axios.post('https://api.cloudlayer.io/v1/pdf', {
      html: '<h1>Hello World</h1>'
    }, {
      headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer YOUR_API_KEY'
      }
    });
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

generatePDF();

python

python
import requests

url = 'https://api.cloudlayer.io/v1/pdf'
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
}
data = {
    'html': '<h1>Hello World</h1>'
}

response = requests.post(url, json=data, headers=headers)
print(response.content)