Skip to main content
Menu
Guides / Migrate from another gateway
Guides

Migrate from another gateway

Move from a generic model gateway or router: model ids, provider preferences, unknown fields, keys and verification.

5 minute readUpdated 15 November 2026curl · Python · TypeScript

What usually differs#

  • Model ids: Panward uses canonical vendor/name ids and resolves no aliases.
  • Provider selection: Panward chooses the capacity. You choose the tier, the region and the fallback models; parameters that pick a provider are not accepted.
  • Reasoning: send reasoning and read reasoning_content.
  • Cost: responses carry token counts and no cost. Read spend from the usage API or the console.
  • Headers: Panward's own headers start with panward- (Tiers and routing headers).

Map provider preferences to Panward controls#

What you asked the gateway forWhat you do on Panward
A private or enclave provider onlypanward-tier: sealed per request, or Sealed only for the project (Policies)
Allow fallbackspanward-fallback: allow with the project's list of fallback models (panward-fallback)
A data regionThe regional host and the policy's allowed regions (Keep data in your region)
Sorting by price or latencyNot exposed: Panward chooses among eligible offers.
Tier and fallback are headers; the body holds only OpenAI fields and a canonical model id
curl https://api.eu.panward.ai/v1/chat/completions \
  -H "Authorization: Bearer $PANWARD_API_KEY" \
  -H "Content-Type: application/json" \
  -H "panward-tier: sealed" \
  -H "panward-fallback: allow" \
  -d '{"model": "z-ai/glm-5.3", "messages": [{"role": "user", "content": "Hello"}]}'

Unknown fields are refused#

A body field that is not part of the OpenAI-compatible request is refused with 400 invalid_request, and param names it. Remove fields that belong to your previous gateway before you switch.

Keys and limits#

Create one Panward key per service and environment, and recreate the limits and the IP allowlist each key had. The lowest limit among key, project and organization applies (Restrict a key).

Verification is new#

Every response has a signed receipt. Store the panward-receipt-id with your record, attest the gateway and verify receipts in your pipeline (Attest the gateway, Verify in CI).

Checklist#

  • Model ids replaced by canonical ids (how)
  • Provider-selection fields removed from request bodies (how)
  • Tier, fallback and region set as Panward controls (how)
  • Keys recreated with their limits and allowlists (how)
  • Spend read from the usage API or the console (how)
  • Receipt ids stored (how)
Was this page helpful?Suggest an edit