TongoRender — API de HTML a PDF, Imagen y Captura de Pantalla

HTML PDF, Image
& Screenshot API

Deja de luchar con Puppeteer en producción. Genera documentos, imágenes para redes sociales y capturas de pantalla con una sola solicitud POST.

Try it live — no signup required
Request
curl -X POST https://api.tongorender.io/v1/pdf \
  -H "Authorization: Bearer rf_live_sk_..." \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Hello World</h1>"}}'
Response · 200 OK
{
  "id": "rj_550e8400...",
  "status": "completed",
  "url": "https://files.tongorender.io/..."
}

TongoRender is a cloud-based HTML rendering API that converts HTML documents, Mustache-style templates, and live URLs into PDF files, PNG/JPEG/WebP images, and full-page screenshots through a single REST endpoint. Developers integrate TongoRender with one API call using the official TypeScript SDK, tongo CLI, or MCP server for AI-powered IDEs like Cursor, Claude Code, and Windsurf. Built on managed headless Chromium, TongoRender eliminates browser crashes, memory leaks, and Chrome version mismatches that plague self-hosted Puppeteer setups. With sub-2-second average render times, a 99.9% uptime SLA on paid plans, and four global edge locations, TongoRender has processed over 10 million renders for teams generating invoices, reports, social media graphics, and automated website screenshots. A generous free tier includes 100 renders per month with no credit card required.

Trusted by developers at

VercelShopifyStripeLinearSupabaseRailway
< 2s

Average render time (p50)

99.9%

Uptime SLA (paid plans)

10M+

Renders processed since launch

4

Global edge locations

Cómo Funciona

Tres pasos. Una llamada de API. Cualquier formato de salida.

1

Envía HTML

Envía tu HTML o una URL a nuestra API mediante POST. Incluye estilos, fuentes o recursos personalizados.

2

Nosotros Renderizamos

Nuestra flota de Chromium genera resultados perfectos en milisegundos con soporte completo de CSS.

3

Obtén el Resultado

Descarga tu PDF, PNG o JPEG mediante URL. O recíbelo por webhook cuando esté listo.

Todo lo que Necesitas para Renderizar

Funciones potentes, API simple. Hecho para desarrolladores.

Generación de PDF

HTML a PDF con encabezados, pies de página, números de página y márgenes personalizados.

Renderización de Imágenes

Crea PNG, JPEG, WebP desde HTML. Perfecto para imágenes OG y tarjetas para redes sociales.

Capturas de URLs

Captura cualquier página web con viewports personalizados y emulación de dispositivos.

Plantillas Prediseñadas

Más de 50 plantillas para facturas, informes y más. Envía JSON, obtén documentos.

Servidor MCP

Los agentes de IA pueden usar TongoRender directamente a través del Model Context Protocol.

Soporte de Webhooks

Recibe notificaciones cuando las renderizaciones se completen. Sin necesidad de polling.

Renderización por Lotes

Procesa múltiples renderizaciones en una sola solicitud para máxima eficiencia.

Fuentes Personalizadas

Usa Google Fonts o sube las tuyas propias para una tipografía perfecta.

Works With Your Stack

Drop-in SDKs for your language, framework integrations, and AI-native via MCP Server.

Languages

Node.jsPythonPHPRubyGoJava

Frameworks

Next.jsLaravelDjangoRailsExpressFastAPI

AI Tools

CursorClaude CodeWindsurfvia MCP Server →

Built for Real Use Cases

From invoices to social cards to automated screenshots.

Invoices & Documents

Generate pixel-perfect invoices, contracts, and reports from HTML templates. Dynamic data, consistent formatting, every time.

Learn more

Social Media Graphics

Create dynamic OG images, Twitter cards, and social media posts programmatically. No design tools needed.

Learn more

Website Screenshots

Capture full-page screenshots of any URL. Dark mode, ad blocking, custom viewports. Perfect for monitoring and archiving.

Learn more

Start rendering for free — no credit card required

See It in Action

From HTML to PDF in a single POST request — under 2 seconds

invoice.html
<!DOCTYPE html>
<html>
  <body style="font-family:system-ui">
    <h1>Invoice #1042</h1>
    <table>
      <!-- items -->
      <tr>
        <td>Widget Pro</td>
        <td>$29.99 × 5</td>
      </tr>
    </table>
    <p>Total: $149.95</p>
  </body>
</html>
POST/api/v1/pdf1.2s
✓ 200 OK
Response
{
  "status": "completed",
  "url": "https://files.tongorender.io/inv-1042.pdf",
  "pages": 1,
  "size_bytes": 24576,
  "duration_ms": 1247
}

Invoice #1042

Widget Pro$29.99 × 5

Total: $149.95

invoice-1042.pdf — 24 KB

Developer Tools That Just Work

Official SDK for type-safe integration and a powerful CLI for rendering from your terminal. Ship faster with tools built for developers.

TypeScript SDK

npm install @tongo/sdk
app.ts
import { TongoClient } from '@tongo/sdk';

const tongo = new TongoClient('rf_live_sk_...');

// Render PDF and wait for completion
const job = await tongo.pdf.renderAndWait({
  html: '<h1>Invoice</h1>',
  options: { format: 'A4' }
});

console.log(job.url); // signed S3 URL
  • Zero dependencies
  • Full TypeScript types
  • Auto-polling built in
  • ESM + CJS support

tongo CLI

npm install -g @tongo/cli
Terminal
$ tongo login
  Email: dev@company.com
  Password: ••••••••
  ✓ Authenticated as John (Growth plan)

$ tongo render pdf invoice.html --output invoice.pdf
  ◌ Rendering PDF... (completed)
  ✓ PDF saved to invoice.pdf (142 KB, 3 pages)

$ tongo render screenshot https://example.com
  --full-page --dark-mode --output shot.png
  ✓ Screenshot saved to shot.png

$ tongo usage
  Usage  ██████░░░░░░░░░░░░░░  32%
  Renders: 8,000 / 25,000
  • Login & render in seconds
  • Pipe from stdin
  • Progress indicators
  • JSON output for CI/CD

Integra en Minutos

Funciona con cualquier lenguaje. Aquí tienes algunos ejemplos.

cURL
curl -X POST https://api.tongorender.io/v1/pdf \
  -H "Authorization: Bearer rf_live_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1>Invoice #1042</h1><p>Total: $299</p>",
    "format": "A4",
    "margin": { "top": "20mm", "bottom": "20mm" }
  }'

Precios Simples y Transparentes

Empieza gratis. Escala a medida que crezcas. Sin cargos ocultos.

Gratuito

$0/mes

100 renders/mes

5 req/min

  • Salida en PDF, PNG, JPEG
  • Renderización de HTML y URL
  • Soporte de la comunidad
  • Retención de archivos por 7 días
  • Plantillas básicas

Starter

$19/mes

5,000 renders/mes

30 req/min

  • Todo lo del plan Gratuito
  • Cola de renderización prioritaria
  • Retención de archivos por 30 días
  • Formato de salida WebP
  • Tamaños de página personalizados
  • Soporte por email
Popular

Growth

$49/mes

25,000 renders/mes

60 req/min

  • Todo lo del plan Starter
  • Notificaciones por webhook
  • Fuentes personalizadas (Google + carga)
  • Retención de archivos por 90 días
  • Todas las 50+ plantillas
  • Soporte prioritario
  • Encabezados y pies de página personalizados

Scale

$149/mes

100,000 renders/mes

120 req/min

  • Todo lo del plan Growth
  • API de renderización por lotes
  • Garantía de SLA (99.9%)
  • Retención de archivos por 1 año
  • Acceso al servidor MCP
  • Soporte dedicado
  • Integraciones personalizadas
  • Infraestructura prioritaria

Loved by Developers

See what developers are saying about TongoRender

"Replaced our entire Puppeteer setup with 3 lines of code. Our invoice generation went from 12 seconds to under 2. The TypeScript SDK is beautifully designed."

SC

Sarah Chen

Lead Engineer at Vercel

"The CLI tool is a game changer for our CI/CD pipeline. We generate 15k+ reports per day and haven't had a single timeout. The MCP Server integration with Cursor is chef's kiss."

MR

Marcus Rodriguez

CTO at Stealth Startup

"We evaluated PDFShift, DocRaptor, and API2PDF before choosing TongoRender. Better DX, faster renders, and the free tier let us prototype without commitment."

AP

Aisha Patel

Full Stack Developer at Shopify

Frequently Asked Questions

¿Listo para empezar a renderizar?

Obtén tu clave de API gratuita y comienza a generar PDFs, imágenes y capturas de pantalla en minutos.