Promptimizer

Introduction

BYOK router for OpenAI-compatible APIs.

Promptimizer is middleware, not a new model vendor. You bring an OpenAI-compatible key. We classify each request, route it to the cheapest adequate tier, cache repeated system and context prefixes, and measure cost saved versus always-frontier — with a quality score, so silent degradation is visible.

What you get

PieceJob
ClassifierComplexity L1–L5, category, quality risk
RouterCheapest selected model in the adequate tier. Step up, never down
Prompt cacheSHA-256 of system + long context. Repeat prefixes bill at 50% input
Quality guardThin or refusing answers on hard tasks retry one tier higher
BenchmarkFixed 15-task gold set. Cost and quality vs always-frontier

Quality is measured

Each request has a quality gate. The benchmark reports routed quality, frontier quality, and the delta so cheap answers that fail are visible.

How it ships

Create an account, store a provider, mint a pmz_live_ key. The TypeScript SDK and any OpenAI-compatible client talk to /api/v1. FastAPI is the self-hosted gateway.