Skip to main content

Node.js Integration Guide

This guide shows how to use the PixCraft API from a Node.js application using the built-in fetch API.

Installation

No additional packages needed — Node.js 18+ includes fetch natively. For older versions, install node-fetch:

Basic usage

Generate and save a PDF

Process a local image (base64)

Error handling with retry for rate limits

Check usage before processing

Express.js middleware example