REST API: build it into your product
- Two-endpoint contract: submit a draft, poll the job. Plain JSON, no SDK required (an official TypeScript SDK exists if you want one).
- Only succeeded rewrites consume credits. Failed jobs, rejected requests, and polling are free.
- Safe retries with Idempotency-Key, documented rate-limit headers, and a published OpenAPI spec.