Skip to main content

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_url is https://inference.agentic.anchorage.com/v1.
  • The API key is the agent’s API key, sent as the bearer token.
  • model is whatever identifier you want, as long as it’s one the provider serves.

Control repeat requests (optional)

Send an Idempotency-Key header to control whether a repeated request shares a charge or pays again. See Managing idempotency keys.

Raise your client’s timeout

Inference requests can take longer than expected. Before your request even reaches the provider, it has to authenticate, check your budget, and sign the payment. Give your client more than three minutes, so it doesn’t give up on a call you already paid for. See Paid inference for the full flow, the failure modes, and approvals.