Skip to main content
Build image and video workflows with generator-ready checkpoints and LoRAs, predictable credit accounting, stable request IDs, polling, and signed webhooks.

Make your first request

Create an API key, select a catalog model, and submit a generation.

Explore the reference

Inspect endpoint parameters and try authenticated requests in the API playground.

Understand request IDs

Build reliable workflows with idempotency, polling, and stable request IDs.

Receive webhooks

Verify signed terminal events and handle at-least-once delivery safely.

What you can build

  • Text-to-image and generated-library image workflows
  • Text-to-video and generated-library image-to-video workflows
  • Catalog discovery for generator-ready checkpoints and LoRAs
  • Credit-aware generation with idempotent submission
  • Polling and signed webhook completion flows
Source media must come from the authenticated account’s completed generated library. Browser uploads and arbitrary remote media URLs are not accepted by the developer API.

Base URL

All v1 endpoints use HTTPS and JSON. Authenticate with a Bearer API key that starts with pfai_.

Create an API key

Open your Porn Factory AI account, create a scoped key, and copy the key and webhook secret while they are visible.