> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anchorage.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Call a model

> Point an OpenAI-compatible client at Anchorage Agentic Banking.

## 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](/agentic-banking/concepts/budgets#what-an-org-admin-configures-today) 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](/agentic-banking/guides/connect-an-agent#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.

```
POST https://inference.agentic.anchorage.com/v1/chat/completions
Authorization: Bearer agentic_ak_...
Content-Type: application/json

{"model": "...", "messages": [...]}
```

## 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](/agentic-banking/concepts/inference#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](/agentic-banking/concepts/inference) for the full flow, the failure modes, and approvals.


## Related topics

- [Changelog](/agentic-banking/changelog.md)
- [Agents](/agentic-banking/concepts/agents.md)
- [Overview](/knowledge-base/platform/developers/stablecoins/overview.md)
- [Mapping wallets to on-chain addresses](/knowledge-base/platform/developers/wallet-address-model.md)
- [Setting up](/knowledge-base/platform/developers/setting-up.md)
