optimize_prompt_payload
Rewrite an OpenAI Chat/Responses or Anthropic Messages request body so its static prefix is provider-cacheable (Anthropic cache_control breakpoints, OpenAI prompt_cache_key). Returns the optimized body, what changed, the token profile and the projected per-request saving. Never changes the tokens the model sees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The request body | |
| endpoint | No | ||
| strategy | No |