Skip to main content

API Overview

The Pictify API is a RESTful JSON API for generating images, GIFs, and PDFs programmatically.

Base URL

Authentication

All requests require a Bearer token:
See Authentication for details.

Request Format

  • Content-Type: application/json
  • Request bodies are JSON
  • Dates use ISO 8601 format

Response Format

Successful responses return JSON with relevant data:
Error responses are plain JSON with a human-readable message under message or error (see Error Handling for every shape):

Rate Limits and Credits

Two separate limits apply, and — for historical reasons — they surface under different status codes per endpoint family:
  • Monthly credits — every render (image, GIF, PDF page, video) consumes credits. When they run out, the image, GIF, HTML-template and batch endpoints return 429 with code: "quota_exceeded", while the video and workflow endpoints return 402 with the same code. Treat quota_exceeded as “wait for the monthly reset or upgrade” — never as “retry with backoff”: no amount of retrying refills a monthly quota.
  • Per-endpoint rate limits — a few endpoints (unauthenticated public rendering, template previews) carry fixed per-minute limits. These return 429 without a quota_exceeded code and DO send standard x-ratelimit-* headers and retry-after — those are genuinely retryable after backing off.
So the rule for 429 is: check the code field first. quota_exceeded means credits, not rate.

Pagination

List endpoints return paginated results:
Response includes pagination metadata:

HTTP Status Codes

Idempotency

POST requests can include an Idempotency-Key header for safe retries:
The same key with the same request will return the cached response for 24 hours.

Versioning

The API does not currently use URL-based versioning. All endpoints are accessed directly from the base URL. Breaking changes will be communicated in advance via release notes.

SDK Libraries

Official SDKs handle authentication, retries, and error handling:

Endpoints

Generation

Templates

Batch Operations

Webhooks

Bindings