# Phlegethon API v2

Source: [https://phlegethon.icu/docs](https://phlegethon.icu/docs)

Base URL: `https://app.phlegethon.icu/api/v1`

Authenticate with `Authorization: Bearer phg_…` (create keys in the app under Settings → API Keys). Default rate limit is 100 requests/minute per key.

## Surfaces

- **Forge** (`POST /api/v1/process`) — stealth-process an existing photograph against AI detectors.
- **Studio** (`POST /api/v1/studio/jobs`) — generate or edit images (Acheron) and video (Styx) from a prompt.
- **Utilities** (`/api/v1/utilities`) — prepare and enhance images.
- **Credits** (`GET /api/v1/credits`) — current balance.

Async endpoints return `202` with a `jobId`. Poll the matching `GET …/jobs/:jobId` every 2–5s until `done` or `failed`.

The public REST API lives on the app host, not on this marketing origin. Requests to `https://phlegethon.icu/api/*` redirect to `https://app.phlegethon.icu/api/*`.
