Quickstart
Create a key in your account, then send a file. No SDK and no upload form.
# 1. store your key once
export STUDIO_KEY="sk_jny_..."
# 2. merge two PDFs
curl -X POST https://imjenny.dev/api/v1/tools/pdf-merge \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@cover.pdf" -F "file=@body.pdf" \
-o merged.pdf
Send the key as Authorization: Bearer or X-API-Key. Request bodies are multipart/form-data. Responses are the processed file with a Content-Disposition filename, or JSON for inspection endpoints.
Authentication
Keys look like sk_jny_... and are stored only as a SHA-256 hash. The full key is shown once, when you create it. Creating a new key replaces the old one immediately.
Never put a key in client-side JavaScript. Call the API from a server, a CI job or a local script.
Limits & billing
| Cost | 2 credits per successful call. Failed calls are not charged. |
| File size | 25 MB per file |
| Files per request | 20 |
| Retention | None. Files live in memory only while the request runs. |
| Fair use | Run jobs one after another or a few in parallel. Very high request rates may be throttled. |
A 402 means the account is out of credits; a 401 means the key is missing or unknown.
Endpoints
POST /api/v1/tools/pdf-merge
Concatenates two or more PDFs in the order they are uploaded. Optional pages are normalised and cross-references preserved.
file | multipart · 2–20 PDF files (repeat the field) |
— | Returns application/pdf |
| returns | application/pdf |
curl -X POST https://imjenny.dev/api/v1/tools/pdf-merge \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@cover.pdf" -F "file=@body.pdf" \
-o merged.pdfPOST /api/v1/tools/pdf-split?range=1-3,5
Extracts page ranges, or bursts every page when range is omitted, and returns a ZIP of single-purpose PDFs.
file | multipart · one PDF |
range | query · optional · e.g. 1-3,5 |
| returns | application/zip |
curl -X POST "https://imjenny.dev/api/v1/tools/pdf-split?range=1-3,5" \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@contract.pdf" -o pages.zipPOST /api/v1/tools/pdf-organize
Reorders, rotates and deletes pages without re-rasterising text.
file | multipart · one PDF |
order | form · optional · 1-based page order, e.g. 3,1,2 |
delete | form · optional · pages to drop, e.g. 2,5 |
rotate | form · 0 | 90 | 180 | 270 |
| returns | application/pdf |
curl -X POST https://imjenny.dev/api/v1/tools/pdf-organize \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@scan.pdf" -F "rotate=90" -F "order=3,1,2" \
-o organized.pdfPOST /api/v1/tools/pdf-watermark
Stamps a diagonal text watermark and optional sequential page numbers on every page.
file | multipart · one PDF |
text | form · default CONFIDENTIAL |
opacity | form · 0.02 – 1 · default 0.14 |
fontSize | form · default 56 |
pageNumbers | form · true | false · default true |
| returns | application/pdf |
curl -X POST https://imjenny.dev/api/v1/tools/pdf-watermark \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@draft.pdf" -F "text=DRAFT" -F "opacity=0.2" \
-o draft-watermarked.pdfPOST /api/v1/tools/pdf-metadata
Reads Title, Author, Subject, Creator, Producer, Keywords and both timestamps, then strips or rewrites them. Returns JSON, not bytes.
file | multipart · one PDF |
strip | form · true (default) wipes the Info dictionary and XMP |
title | form · optional rewrite |
author | form · optional rewrite |
| returns | application/json |
curl -X POST https://imjenny.dev/api/v1/tools/pdf-metadata \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@paper.pdf" -F "strip=true"POST /api/v1/tools/pdf-optimize
Rebuilds the document with object streams and no metadata. Response headers report the before/after byte counts.
file | multipart · one PDF |
— | X-Studio-Before / X-Studio-After response headers |
| returns | application/pdf |
curl -X POST https://imjenny.dev/api/v1/tools/pdf-optimize \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@report.pdf" -o report-small.pdfPOST /api/v1/tools/images-to-pdf?pageSize=A4
Compiles PNG/JPEG files into one PDF, one page per image.
file | multipart · 1–20 images |
pageSize | query · A4 | Letter | fit |
| returns | application/pdf |
curl -X POST "https://imjenny.dev/api/v1/tools/images-to-pdf?pageSize=A4" \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@receipt-1.jpg" -F "file=@receipt-2.jpg" \
-o receipts.pdfPOST /api/v1/tools/strip-metadata
Removes JPEG APPn/COM segments and PNG ancillary chunks without decoding a single pixel. Response headers list exactly what was removed.
file | multipart · one PNG, JPEG or WebP |
— | X-Studio-Removed-Bytes / X-Studio-Removed-Segments response headers |
| returns | image/png | image/jpeg | image/webp |
curl -X POST https://imjenny.dev/api/v1/tools/strip-metadata \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@photo.jpg" -D headers.txt -o photo-clean.jpgPOST /api/v1/tools/icon-kit
Builds favicon.ico (16/32/48), apple-touch-icon, PWA icons, site.webmanifest and a 1200×630 OG card, zipped.
png16 … png512 | multipart · exact-size PNGs |
og1200x630 | multipart · 1200×630 PNG |
appName | form · optional |
| returns | application/zip |
curl -X POST https://imjenny.dev/api/v1/tools/icon-kit \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "png16=@16.png" -F "png32=@32.png" -F "png48=@48.png" \
-F "png180=@180.png" -F "png192=@192.png" -F "png512=@512.png" \
-F "og1200x630=@og.png" -F "appName=My App" -o icon-kit.zipGET /api/v1/usage
Returns the authenticated account, plan and remaining Studio Credits. Costs nothing.
— | No body |
| returns | application/json |
curl https://imjenny.dev/api/v1/usage \
-H "Authorization: Bearer $STUDIO_KEY"
Errors
Errors are JSON: { "ok": false, "error": "reason" }. Unreadable or invalid input returns 400, missing credits 402, unknown keys 401.
{
"ok": false,
"error": "One of the images is not a readable PNG or JPEG."
}
Batch scripts
A loop over a folder is a few lines of shell. The same input and options always produce the same output.
#!/usr/bin/env bash
set -euo pipefail
export STUDIO_KEY="sk_jny_..."
mkdir -p out
for f in inbox/*.pdf; do
base=$(basename "$f" .pdf)
curl -sS -X POST https://imjenny.dev/api/v1/tools/pdf-metadata \
-H "Authorization: Bearer $STUDIO_KEY" \
-F "file=@$f" -F "strip=true" \
-o "out/$base.pdf"
done