REST API

브라우저와 동일한 엔진을 HTTP로

파일을 전송하면 처리된 파일을 바로 돌려받습니다. 호출 1회당 2 크레딧이 차감되며, 파일은 메모리에서만 처리된 후 응답이 끝나면 즉시 삭제됩니다.

아래 API 레퍼런스 문서는 영어로만 제공됩니다.

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

Cost2 credits per successful call. Failed calls are not charged.
File size25 MB per file
Files per request20
RetentionNone. Files live in memory only while the request runs.
Fair useRun 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.

filemultipart · 2–20 PDF files (repeat the field)
—Returns application/pdf
returnsapplication/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.pdf

POST /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.

filemultipart · one PDF
rangequery · optional · e.g. 1-3,5
returnsapplication/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.zip

POST /api/v1/tools/pdf-organize

Reorders, rotates and deletes pages without re-rasterising text.

filemultipart · one PDF
orderform · optional · 1-based page order, e.g. 3,1,2
deleteform · optional · pages to drop, e.g. 2,5
rotateform · 0 | 90 | 180 | 270
returnsapplication/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.pdf

POST /api/v1/tools/pdf-watermark

Stamps a diagonal text watermark and optional sequential page numbers on every page.

filemultipart · one PDF
textform · default CONFIDENTIAL
opacityform · 0.02 – 1 · default 0.14
fontSizeform · default 56
pageNumbersform · true | false · default true
returnsapplication/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.pdf

POST /api/v1/tools/pdf-metadata

Reads Title, Author, Subject, Creator, Producer, Keywords and both timestamps, then strips or rewrites them. Returns JSON, not bytes.

filemultipart · one PDF
stripform · true (default) wipes the Info dictionary and XMP
titleform · optional rewrite
authorform · optional rewrite
returnsapplication/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.

filemultipart · one PDF
—X-Studio-Before / X-Studio-After response headers
returnsapplication/pdf
curl -X POST https://imjenny.dev/api/v1/tools/pdf-optimize \
  -H "Authorization: Bearer $STUDIO_KEY" \
  -F "file=@report.pdf" -o report-small.pdf

POST /api/v1/tools/images-to-pdf?pageSize=A4

Compiles PNG/JPEG files into one PDF, one page per image.

filemultipart · 1–20 images
pageSizequery · A4 | Letter | fit
returnsapplication/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.pdf

POST /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.

filemultipart · one PNG, JPEG or WebP
—X-Studio-Removed-Bytes / X-Studio-Removed-Segments response headers
returnsimage/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.jpg

POST /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 … png512multipart · exact-size PNGs
og1200x630multipart · 1200×630 PNG
appNameform · optional
returnsapplication/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.zip

GET /api/v1/usage

Returns the authenticated account, plan and remaining Studio Credits. Costs nothing.

—No body
returnsapplication/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