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:Request Format
- Content-Type:
application/json - Request bodies are JSON
- Dates use ISO 8601 format
Response Format
Successful responses return JSON with relevant data: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
429withcode: "quota_exceeded", while the video and workflow endpoints return402with the same code. Treatquota_exceededas “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
429without aquota_exceededcode and DO send standardx-ratelimit-*headers andretry-after— those are genuinely retryable after backing off.
429 is: check the code field first. quota_exceeded means credits, not rate.
Pagination
List endpoints return paginated results:HTTP Status Codes
Idempotency
POST requests can include anIdempotency-Key header for safe retries: