Promptimizer

API overview

OpenAI-compatible chat completions, plus receipts.

Hosts

HostBase
Hostedhttps://www.promptimizer.site/api
Local Next.jshttp://localhost:3000/api
FastAPIhttp://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

  1. 01

    Account

    Create an account and mint a pmz_live_ key

  2. 02

    Provider

    Connect an OpenAI-compatible BYOK host in the console

  3. 03

    Route

    POST /v1/chat/completions with Authorization: Bearer pmz_live_…

  4. 04

    Measure

    POST /v1/benchmark/run