Skip to content

AWS Bedrock and Google Vertex as the upstream: status

Documents are shown as written.

Not supported today. This page says so plainly rather than describing a path that does not exist.

What the gateway forwards to

The gateway has exactly three upstream shapes:

Route Default upstream Auth the gateway can send
POST /v1/chat/completions https://api.openai.com/v1 Authorization: Bearer <key>
POST /v1/messages https://api.anthropic.com/v1 x-api-key: <key> + anthropic-version: 2023-06-01
POST /v1/models/{model}:generateContent https://generativelanguage.googleapis.com/v1beta x-goog-api-key: <key>

The upstream hostname can be changed per request with X-zer0pii-Upstream-URL or per deployment by the operator, but the auth header and the request path stay the same. There is no request signing (AWS SigV4), no Google OAuth bearer token exchange, no :invoke / :rawPredict path mapping, and no anthropic_version body field.

Why a base URL override is not enough

  • Bedrock authenticates model calls with SigV4-signed requests (or a Bedrock API key) against paths like /model/<id>/invoke and /model/<id>/converse, with its own request body shape. None of these can be produced by pointing X-zer0pii-Upstream-URL at a Bedrock endpoint.
  • Vertex AI uses a short-lived Google OAuth bearer token and the :generateContent / :rawPredict paths under a project- and region-scoped URL. The gateway can only send a static x-goog-api-key, which Vertex does not accept.

Per Anthropic's gateway protocol guide as of 2026-09-22, the Anthropic Messages format, Bedrock and Vertex are three distinct API formats a gateway must implement separately. zer0pii implements the first.

What works now if your models live on Bedrock or Vertex

  • If the same models are also reachable for you through the provider's public API (OpenAI, Anthropic, Gemini), point the tool at zer0pii and let it forward there. The decision is a billing and data-residency one for your team; zer0pii does not change what the provider receives beyond masking.
  • If your organisation runs an OpenAI-compatible front (for example a vLLM or LiteLLM deployment) in front of Bedrock or Vertex on a public hostname, the gateway can forward to it via X-zer0pii-Upstream-URL on the /v1/chat/completions route, using whatever bearer token that front expects in X-zer0pii-Upstream-Key. Private and internal addresses are refused by design.