Bring your own model requires an Enterprise plan. The AI model section appears in your dashboard only when your contract includes it.
Supported providers
- OpenRouter
- Anthropic, with an API key or linked billing
- OpenAI
- Amazon Bedrock
Configure your model
Editors and admins can configure the model.- Select the project you want to configure.
- Navigate to the API keys page in your dashboard.
- In the AI model section, enable Bring your own model.
- Select a provider. For Amazon Bedrock, also select a Region.
- Select an Assistant model.
- Optional: Select an Agent model to run the agent, automations, and Autopilot on a different model. If you leave it empty, they use the assistant model.
- Enter your provider API key. For Amazon Bedrock, use an Amazon Bedrock API key. Mintlify doesn’t support AWS access keys or IAM role credentials. For Anthropic, you can link your Claude organization instead.
- Click Save.
Link your Claude organization
Linked billing with Claude Platform is in public preview.
- A Claude Platform organization that Anthropic bills directly. If you buy Claude through Amazon Bedrock, Google Cloud Vertex AI, Microsoft Foundry, or a cloud marketplace, use an API key instead.
- The Owner, Admin, or Billing role in your Claude organization.
- The admin or owner role in your Mintlify organization. After your organization is linked, editors can choose linked billing on a project.
1
Choose linked billing
- Select the project you want to configure.
- Navigate to the API keys page in your dashboard.
- In the AI model section, enable Bring your own model.
- Select Anthropic as the provider.
- Select Linked billing as the Billing method.
2
Link your Claude organization
Click Link your Claude organization.
3
Approve the link
Sign in to Claude, then review and approve the link. Claude returns you to the API keys page.
4
Choose your models and save
- Select an Assistant model.
- Optionally, select an Agent model.
- Click Save.
Linked usage billing
Anthropic bills linked usage to your Claude organization’s prepaid balance or, if your organization is billed monthly, to its invoice. Some credits can’t pay for linked usage, including the monthly API credits that come with Max, Ultra, and Team plans and credits from Anthropic’s partner, VC, and startup programs. If your Claude account has no balance or can’t be invoiced, Anthropic refuses the requests and stops Mintlify’s AI features on projects that use linked billing.Set a spend limit
You can set an optional monthly spend limit for Mintlify when you approve the link or later on the Linked platforms page in the Claude Console, where it’s called a spend cap. You can also set a default limit for all linked platforms. A limit you set for Mintlify replaces the default.- When usage reaches the limit, Anthropic refuses requests until you raise the limit or the limit resets at the start of the next month. A request that crosses the limit still completes, so usage can go slightly over.
- The limit counts usage at list price, before any discount you negotiated with Anthropic. With a discount, you can reach the limit before your bill reaches that amount.
- Your Claude organization’s own monthly spend limit still applies. Whichever limit you reach first stops requests.
- Your Claude organization’s admins get an email when usage reaches 80% of the limit and another at 100%.
Unlink your Claude organization
You can unlink Mintlify at any time on the Linked platforms page in the Claude Console. An admin or owner in your Mintlify organization can also click Unlink in the AI model section of the API keys page in your dashboard. Unlinking usually stops new requests within 10 seconds. Requests already running finish and are billed to your Claude organization. Anthropic emails your Claude organization’s owners, admins, and billing members when Mintlify unlinks it. Unlinking affects every project in your Mintlify organization that uses linked billing. AI features on those projects stop working until you link again or switch the project to an API key. To switch a project to an API key:- Select the project you want to configure.
- Navigate to the API keys page in your dashboard.
- Select API key as the Billing method.
- Enter your key.
- Click Save.