Creates a chat completion with Policy Gateway enforcement and audit metadata. Set stream: true for server-sent events.
Use a JWT or API key as a Bearer token.
Optional target label used for shadow/canary rollout targeting.
Optional end-user identifier for per-user quotas.
Optional project identifier when using JWT auth or project budgets.
Model id.
Conversation messages. content can be a string or a list of parts for multimodal requests.
Sampling temperature.
0 <= x <= 20 <= x <= 1x >= 1x >= 1-2 <= x <= 2-2 <= x <= 2End-user identifier for abuse monitoring.
Optional moderation categories to block for this request. Supported: harassment, hate, illicit, sexual. Self-harm and sexual/minors are always blocked.
Optional policy id to validate against the saved policy.
Optional rollout target label for shadow/canary targeting.
Optional inline policy config. Overrides the saved policy for this request.
Optional end-user identifier for per-user quota enforcement.
Optional project identifier for project key budgets and usage tracking.
Policy-enforced chat completion response