API overview
OpenAI-compatible chat completions, plus receipts.
Hosts
| Host | Base |
|---|---|
| Hosted | https://www.promptimizer.site/api |
| Local Next.js | http://localhost:3000/api |
| FastAPI | http://localhost:8000 |
POST /v1/chat/completions accepts the usual OpenAI body. model defaults to auto. Extra response fields: usage.cost and promptimizer. Streaming is not enabled.
Typical flow
01
Account
Create an account and mint a pmz_live_ key
02
Provider
Connect an OpenAI-compatible BYOK host in the console
03
Route
POST /v1/chat/completions with Authorization: Bearer pmz_live_…
04
Measure
POST /v1/benchmark/run