Two values
The provider’s credential is not one of them. It stays on the registry entry,
and rotating either never touches the other.
Point a stock SDK at it
X-AG-API-Key, x-api-key or Authorization: Bearer — a
bearer that starts with ag_ is recognised as an application key — so the
OpenAI and Anthropic SDKs work unchanged with their own api_key parameter.
Which dialect
The path after the slug is the dialect your client speaks, not the provider that answers. Anthropic’s SDK talks to/v1/messages, OpenAI’s to
/v1/chat/completions or /v1/responses, Cohere’s to /v2/chat, Gemini’s to
/v1beta/models/…. Any of them can be routed to any provider; the gateway
translates. Chat has the full list and the honest
limits of translation.
What goes in model
This is the one thing that depends on how the application is configured:
@provider/model pins a provider when the application reaches several. The
Connect tab already shows the right form; Routing
explains why.
Private deployments
AddX-AG-Gateway-Slug: <gateway-slug> when several gateways share one data
plane host. SaaS never needs it, and the Connect tab includes it only when it
applies.
Reading the answer
Every response carriesX-Selected-Provider and X-Selected-Model. When a
request landed somewhere you did not expect, read those before anything else.
Refusals come back in your client’s dialect. A model outside the application’s
allowed set is refused before any provider is called; a policy refusal names the
policy; a rate limit carries Retry-After.