Observe
Request, response, token, cost, latency, identity, and route context.
// OpenAI-compatible integration
Connect compatible requests to Punk. It finds repeated tasks, tests whether a proven result can safely serve them, and keeps new or uncertain work with your original model.
Compatibility applies to supported model API traffic. Tool execution, application identity, outcomes, and provider-specific features should be verified for your implementation.
// first connection
Generate a key and choose the environment where you want to establish a baseline.
Keep your existing request shape where supported and send a small test workload first.
Verify app context, messages, model, tokens, cost, latency, and route explanations before expanding traffic.
Collect representative evidence before evaluating caches, workflows, substitutions, or any serving change.
// from traffic to savings
Punk learns from compatible traffic, tests candidate reuse against past and current work, and serves a reusable path only when it remains eligible. Otherwise, the original model responds.
Request, response, token, cost, latency, identity, and route context.
Policy evaluation and conservative handling for declared agent actions.
Evidence-gated caches, plans, declarative workflows, or model routes where justified.
Limitations: exact API coverage varies. Test streaming, structured outputs, tool calls, multimodal inputs, provider-specific options, and error behavior before routing production traffic.
Start with a representative task. Punk will show what repeats before you decide whether anything should change.