Design your certificate in HTML/CSS. Send names and data via API. Get back pixel-perfect certificate images — thousands per minute.
// Generate a course completion certificate const html = ` <div style="width:1400px;height:1000px;background:white;display:flex; flex-direction:column;align-items:center;justify-content:center; border:12px solid #1e293b;padding:60px;font-family:Georgia,serif"> <div style="font-size:18px;letter-spacing:6px;color:#64748b"> CERTIFICATE OF COMPLETION </div> <div style="width:120px;height:2px;background:#22d3ee;margin:24px 0"></div> <div style="font-size:48px;color:#0f172a;margin:20px 0"> ${recipientName} </div> <div style="font-size:18px;color:#475569;max-width:600px;text-align:center"> has successfully completed the course <strong>${courseName}</strong> on ${completionDate} </div> </div> `; const res = await fetch('https://renderpix.dev/v1/render', { method: 'POST', headers: { 'X-API-Key': 'rpx_your_key', 'Content-Type': 'application/json' }, body: JSON.stringify({ html, width: 1400, height: 1000, format: 'png' }) }); const certImage = await res.arrayBuffer();