Prerequisites
- An agent whose budget admits the inference provider as a merchant. The default allow-all setting does; a budget restricted to a specific allowlist needs the provider added, or every call fails with
payment_refused. - An API key for that agent. Mint one on the agent’s page. See Headless and server-side clients.
Set up the client
Point your OpenAI-compatible client at these values.base_urlishttps://inference.agentic.anchorage.com/v1.- The API key is the agent’s API key, sent as the bearer token.
modelis whatever identifier you want, as long as it’s one the provider serves.
Control repeat requests (optional)
Send anIdempotency-Key header to control whether a repeated request shares a charge or pays again. See Managing idempotency keys.