Skip to main content
How Policy Gateway fits into your request flow.

Proxy the request

Point your client at abliteration.ai’s policy surface instead of the compat surface:
client = OpenAI(
    base_url="https://api.abliteration.ai/policy/v1",
    api_key=os.environ["ABLIT_KEY"],
)
Every request made with that key is resolved to a project → policy, evaluated, and audited. See policy endpoints for the full surface and the optional headers (X-Policy-Project, X-Policy-Target, X-Policy-User).

Reading decisions on the client

  • Non-streaming: the response body includes a policy field alongside the upstream response.
  • Streaming: every SSE frame includes a policy field. See streaming policy metadata.
  • Policy log: every decision is emitted to your configured connector.