Automate images and PDFs
from one design.
Make the picture once in J2I Studio. When a name, a photo, or a price changes, this image automation API fills those spots and sends back a PNG, JPG, WebP, AVIF, or PDF.
25 free API images · No card required
Try the image API
- 01Send JSON
- 02Fill named layers
- 03Get PNG or PDF
What is jsontoimg?
jsontoimg is a developer-first API that generates images and multi-page PDFs from templates you design once. Name the layers that change, send JSON over REST, the TypeScript SDK, or MCP, and get a finished asset back with no Chromium fleet to maintain.
Image API
Ask for one image.
The request is POST /api/v1/render. You can wait up to 30 seconds for the file, watch progress as it is made, or get a signed notice when it is done.
curl -X POST "https://app.jsontoimg.com/api/v1/render?wait=30" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"template": "tpl_og_brutalist",
"format": "png",
"scale": 2,
"layers": {
"badge": { "text": "Engineering" },
"title": { "text": "Design once. Render every row." },
"subtitle": { "text": "Turn structured JSON into crisp PNG, WebP, and PDF assets at scale." },
"author": { "text": "Maya Chen" }
}
}'import { createClient } from "@j2i/sdk";
const client = createClient({
apiKey: process.env.JSONTOIMG_API_KEY!,
});
const job = await client.renderAndWait({
template: "tpl_og_brutalist",
format: "png",
layers: {
badge: { text: "Engineering" },
title: { text: "Design once. Render every row." },
subtitle: { text: "Turn structured JSON into crisp PNG, WebP, and PDF assets at scale." },
author: { text: "Maya Chen" },
},
});
if (job.status === "done") console.log(job.assetUrl);import os, requests
response = requests.post(
"https://app.jsontoimg.com/api/v1/render",
params={"wait": 60},
headers={"Authorization": f"Bearer {os.environ['JSONTOIMG_API_KEY']}"},
json={
"template": "tpl_og_brutalist",
"format": "png",
"layers": {
"badge": {"text": "Engineering"},
"title": {"text": "Design once. Render every row."},
"subtitle": {"text": "Turn structured JSON into crisp PNG, WebP, and PDF assets at scale."},
"author": {"text": "Maya Chen"},
},
},
timeout=90,
)
print(response.json())<?php
$ch = curl_init('https://app.jsontoimg.com/api/v1/render?wait=60');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('JSONTOIMG_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'template' => 'tpl_og_brutalist',
'format' => 'png',
'layers' => [
'badge' => ['text' => 'Engineering'],
'title' => ['text' => 'Design once. Render every row.'],
'subtitle' => ['text' => 'Turn structured JSON into crisp PNG, WebP, and PDF assets at scale.'],
'author' => ['text' => 'Maya Chen'],
],
]),
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch);bun add -g @j2i/cli
export JSONTOIMG_API_KEY="sk_live_..."
j2i render \
--template tpl_og_brutalist \
--layer badge.text="Engineering" \
--layer title.text="Design once. Render every row." \
--layer author.text="Maya Chen" \
--format png \
--wait 60 \
--out og-design-once.pngWe make the file for you
jsontoimg creates the image. You do not run a browser on your own server to take screenshots.
Template-based image generation APIA link to the picture
Put the link in an
Signed URL guideimgtag or inog:image, the preview people see when a page is shared. Opening it the first time counts as one image. Later opens are free.PNG, JPG, WebP, AVIF
Choose the file type, and a size up to 5× larger, on the same request. PNG, WebP, and AVIF can keep a transparent background.
Image formats
PDF and data layers
The same design can be a PDF.
A certificate, event ticket, badge, or report can use the design you already made. Ask for a PDF. Each page costs the same as one image.
Invoice #INV-2026-0142
Billed to
Northwind Labs
ap@northwind.dev
Issued
Nov 19, 2026
Paid on receipt
Payment
Visa *4242
USD ($)
| Description | Qty | Amount |
|---|---|---|
| Starter plan (1,000) | 1 | $29.00 |
| Prepaid pack (250) | 2 | $10.00 |
| Webhook & PDF delivery | 1 | $0.00 |
- Subtotal
- $39.00
- Tax (0%)
- $0.00
- Total paid
- $39.00
Verify receipt
jsontoimg.com
Page 1 of 1
Tables
Send the headings and the lines, up to 12 columns wide. An invoice can list each item, the quantity, and the price.
Tables on the canvasCharts, QR codes, barcodes
Send numbers and get a chart. Send a code and get a QR code or a barcode (Code 128, EAN-13, or Code 39) drawn on the file.
Charts and barcodesLists that grow
A list in the details, such as the line items on an invoice, can add more lines on the page. Rules can also switch a color or a layout when a condition is true.
PDF generation
Template editor
Name the spots that change.
In J2I Studio you place text, photos, QR codes, charts, and tables. Name only the spots the API may change. The logo and the background stay put.


A typo is reported
Template schemaGET /templates/{id}/schemalists the names you created. If a request uses a name that does not exist, the API returns HTTP 422 instead of a picture with a blank line.The live design stays approved
You can keep editing a draft. Visitors keep getting the version you already approved.
Pin a versionShared colors, fonts, and logos
A workspace can share those with up to 10 people: an owner, admins, and members.
Visual template editor
Integrations
Send the details from tools you already use.
Anything that can send a web request can ask for an image. A coding assistant can do it too, through the MCP server.
No-code & CMS automation
A spreadsheet, WordPress, n8n, or a webhook can send the name, photo, or price.
n8nCommunity node
WordPressBlock, shortcode, and OG images
Google SheetsEach line becomes a picture
AirtableExtension
KlaviyoSigned URL per profile
- S3S3 & R2BYOS bucket on Scale
Connect over HTTP & signed webhooks
- Zapier (HTTP)
- Make (HTTP)
- Webhooks
- Shopify
- GitHub Actions
- REST
- CLI
AI agents, over MCP
Point Claude, Cursor, or VS Code at the MCP server. The assistant lists your templates and asks for a picture, using only designs you already approved. Eleven tools cover that work.
$ claude mcp add --transport http jsontoimg https://app.jsontoimg.com/mcp
> Render an Open Graph card for our v1.4 release post
✓ list_templates · 8 templates
✓ get_template_schema · headline, author, version_tag
✓ create_render · release-v1-4.png
- Cursor
- Claude Code
- Claude Desktop
- VS Code
- Windsurf
Use cases
The same design, a new picture each time.
Change the words and the photo. The layout stays.
- →
Open Graph image
Editorial · 1200×630
- →
Certificate
Classic Double-Border · 1400×990
- →
Product banner
Split Product Hero · 1200×628
- →
Reddit post card
Floating Showcase Card · 1200×800
- →
GitHub release card
Terminal Changelog · 1200×630
- →
Invoice preview
Modern Accent Header · 900×1200
- →
Open Graph image
Editorial · 1200×630
- →
Certificate
Classic Double-Border · 1400×990
- →
Product banner
Split Product Hero · 1200×628
- →
Reddit post card
Floating Showcase Card · 1200×800
- →
GitHub release card
Terminal Changelog · 1200×630
- →
Invoice preview
Modern Accent Header · 900×1200
- →
YouTube thumbnail
Bold Split · 1280×720
- →
Twitter/X post card
Social Backdrop Card · 1200×675
- →
Testimonial card
Social Proof · 1200×675
- →
Instagram post
Carousel Cover · 1080×1080
- →
LinkedIn banner
Founder Launchpad · 1584×396
- →
Quote card
Editorial Serif · 1080×1080
- →
YouTube thumbnail
Bold Split · 1280×720
- →
Twitter/X post card
Social Backdrop Card · 1200×675
- →
Testimonial card
Social Proof · 1200×675
- →
Instagram post
Carousel Cover · 1080×1080
- →
LinkedIn banner
Founder Launchpad · 1584×396
- →
Quote card
Editorial Serif · 1080×1080
Pricing
25 images free, then a price per file.
Studio, all formats, and prepaid packs from $5 that never expire. Failed renders are free. See pricing or the API pricing comparison.
One image is one PNG, JPG, WebP, AVIF, or one PDF page
Free
$0no card
25 API images, lifetime
1 API key, 50 MB storage
StarterPopular
$29/month
1,000 images
1 API key, 1 GB storage
Pro
$59/month
5,000 images
5 API keys, 5 GB storage
Scale
$129/month
15,000 images
10 API keys, 20 GB storage
250 images
$5one-time
Credits never expire
$0.020 per image, files kept 7 days
500 imagesPopular
$10one-time
Credits never expire
$0.020 per image, files kept 7 days
750 images
$15one-time
Credits never expire
$0.020 per image, files kept 7 days
Recent releases.
Updates to J2I Studio, the Render API, the SDKs, and the connectors.
Read the changelogQuestions about credits, files, and plans.
For help with a design or a large batch, write through the contact page.
What is an image automation API?
It makes a finished picture or PDF from a design you create once. You send the parts that change, such as a name, a photo, or a price. jsontoimg returns the file. Your software can ask for that file through the API, so nobody exports it by hand.
What do I send?
You send the details as JSON. JSON is text a program can read, like {"headline": "Welcome, Alex"}. A certificate needs the student name. A banner needs the product and the price. Code, a spreadsheet, WordPress, n8n, or an AI assistant can send it. You can also try our free browser image tools without writing code.
What counts as an image?
One credit is one successful PNG, JPG, WebP, or AVIF, or one PDF page, at any size your plan allows. Work in the editor and watermarked previews are free. A picture that fails to generate does not count.
Do prepaid images expire?
Prepaid packs never expire. Monthly images reset each billing period and do not roll over. Cancelling a subscription leaves the prepaid balance on the account.
Can I cancel anytime?
Monthly access continues through the paid period. Prepaid images stay on the account.
What happens when I hit the image limit?
Rendering stops until you upgrade or buy a prepaid pack. Prepaid images also work as overflow on a monthly plan. The API returns HTTP 402.
Do WebP, AVIF, PDF, or a higher scale cost extra?
PNG, JPG, WebP, AVIF, and scale up to your plan cap do not cost extra. PDF is one image per page. Free scales to 2×, Starter to 3×, Pro to 4×, and Scale to 5×.
How long do you keep the files?
Free files stay 3 days, prepaid 7 days, Starter 14 days, Pro 30 days, and Scale 90 days. After that they move to a 14-day archive and are deleted. Files you upload stay until you delete them, inside the storage limit for your workspace.
Your first 25 images are free.
Design the picture, create an API key, and download a PNG or PDF.