Skip to main content
1

Create an API key

Sign in to Porn Factory AI and open the Developer tab. Create a key and save both one-time values: the pfai_ API key and the whsec_ webhook secret.
2

Find a checkpoint

Query the catalog for a generator-ready checkpoint.
Save the model_id and version_id from one result.
3

Submit a generation

Use a unique idempotency key for this logical request.
4

Poll the request

The submit response includes a stable request_id and poll_url. Poll until the status is COMPLETED or FAILED.
Retry a timed-out submit with the same Idempotency-Key and the exact same body. The API returns the original request instead of charging twice.