Skip to main content
Developer tools

Restore, colorize and upscale photographs from your own systems. Included with the Enterprise plan: 1,500 credits a month, signed webhooks, per-key limits and a request log.

API access is included with Enterprise

$299 a month, or $249 a month billed annually, with 1,500 credits, a 500-photo batch cap and 24 restorations in flight. Create your first key the moment the plan is active.

What the API does

The API is the same restoration engine the app uses, exposed as JSON. Submit an image with a URL, a multipart upload or base64, choose a mode, and receive the restored file — plus a webhook if you would rather not poll.

REST endpoints

Five restoration modes behind one predictable JSON API, with cursor pagination and idempotent submits.

Signed webhooks

A signed POST the moment a job settles, with exponential retries and a delivery log you can read.

Per-key control

Scoped keys, individual rate limits and a monthly credit cap per key, so one leak cannot drain the account.

Batch capacity

500 photos per batch and 24 restorations in flight, queued server-side instead of failing at the limit.

Shared credits

API jobs draw on the same monthly credit balance as the web app. One credit per image, refunded on failure.

Auditable

Every request is logged with its status, latency and request id, kept for ninety days.

Your first request

Authenticate with a key and post an image URL. The response is the job; poll it or wait for the webhook.

bash
curl -X POST https://pinin.ai/api/v1/restorations \
  -H "Authorization: Bearer $PININ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/family-photo.jpg",
    "mode": "all-in-one"
  }'
https://pinin.ai/api/v1Full endpoint reference

What teams build with it

Photo and asset management software that repairs archives on import
Marketplaces that restore vintage listings automatically
Genealogy and museum platforms processing large family collections
Print and framing shops taking restoration orders online
Studios batching client work overnight
Consumer apps offering one-tap photo restoration

Frequently asked questions

How do I get API access?

Subscribe to the Enterprise plan and open the developer console. Keys are self-serve: create one in seconds, no sales call.

Does the API support asynchronous processing with webhooks?

Both. Submit an image, then poll the job or register a webhook endpoint and receive a signed event when it settles. Retries continue for six attempts with exponential backoff.

What are the API rate limits?

Each key carries its own requests-per-minute limit, up to 300, and an account can spend at most 600 requests a minute across all its keys. A call above either ceiling is refused rather than queued. Enterprise accounts allow 500 photos per fifteen-minute batch and 24 restorations in flight; anything beyond that queues instead of failing.

How are API calls charged?

One credit per image, whatever the mode. A job is charged when it settles and refunded automatically if processing fails. Requests rejected before entering the queue cost nothing.

What programming languages are supported?

Any language that can make an HTTPS request. The documentation includes curl, Node.js and Python examples, plus webhook signature verification in Node.

Ready to integrate Pinin?

Start on the Enterprise plan, create a key and send your first image today.