Skip to main content
Bring your own model requires an Enterprise plan. The AI model section appears in your dashboard only when your contract includes it.
By default, Mintlify selects the models that power the assistant, agent, and Autopilot. To use a specific model with your own provider account, supply an API key and choose the model. Mintlify then runs inference against your provider. If you use Anthropic, you can link your Claude organization instead of supplying an API key. One configuration covers every AI product on a project: the assistant, agent, automations, and Autopilot. You select a model for each project individually, not for your entire organization. If your organization has more than one project, configure each one separately. Projects you don’t configure use Mintlify’s default models.

Supported providers

  • OpenRouter
  • Anthropic, with an API key or linked billing
  • OpenAI
  • Amazon Bedrock
With any supported provider, the assistant, agent, automations, and Autopilot all use your provider account and your model. Supporting AI tasks also run on your provider account instead of Mintlify’s. These include page-specific starter questions and the commit messages and pull request details Mintlify writes when you publish from the editor. For these tasks, Mintlify uses a model from your provider that suits the task instead of the model you selected. If your account can’t access that model, Mintlify retries with your selected model. Each provider supports a fixed set of models. The model menus list only the models available for the provider you select. For Amazon Bedrock, the available models depend on the region you select.

Configure your model

Editors and admins can configure the model.
  1. Select the project you want to configure.
  2. Navigate to the API keys page in your dashboard.
  3. In the AI model section, enable Bring your own model.
  4. Select a provider. For Amazon Bedrock, also select a Region.
  5. Select an Assistant model.
  6. 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.
  7. 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.
  8. Click Save.
Mintlify stores your key encrypted and never displays it again after you save it.
Linked billing with Claude Platform is in public preview.
If you use Anthropic, you can link your Claude Platform organization instead of entering an API key. Anthropic bills Claude API usage from the assistant, agent, automations, and Autopilot directly to your Claude organization. Mintlify doesn’t store an Anthropic API key for projects that use linked billing. Mintlify bills your subscription separately. Link your Claude organization once for your Mintlify organization. Then, choose linked billing for any projects that should use it. A Claude organization can link to only one Mintlify organization.
Linked billing only changes how you are billed. Requests still run in Mintlify’s Claude organization, so Mintlify’s settings and data arrangements with Anthropic apply, not yours. If your Claude organization has zero data retention (ZDR), it doesn’t cover linked usage. Your business associate agreement (BAA), customer-managed keys, and IP allowlists don’t apply either. If you need HIPAA, FERPA, or CMEK, don’t link your Claude organization during the public preview.
To link your organization, you need:
  • 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

  1. Select the project you want to configure.
  2. Navigate to the API keys page in your dashboard.
  3. In the AI model section, enable Bring your own model.
  4. Select Anthropic as the provider.
  5. Select Linked billing as the Billing method.
If your Mintlify organization is already linked, the Linked billing row shows Linked. Skip to step four.
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

  1. Select an Assistant model.
  2. Optionally, select an Agent model.
  3. Click Save.
If you don’t have the Owner, Admin, or Billing role in your Claude organization, or you decline the request, Claude returns you to your dashboard without linking. Ask someone with one of those roles in your Claude organization to link it. They also need the admin or owner role in your Mintlify organization. When your organization is linked, Anthropic emails the owners, admins, and billing members of your Claude organization. Anthropic doesn’t send these emails to some organizations, such as those under HIPAA.

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%.
If Anthropic refuses requests because of a spend limit, missing credit, or another billing problem, AI features stop working on projects that use linked billing. Check your spend limits, balance, and account in the Claude Console. 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:
  1. Select the project you want to configure.
  2. Navigate to the API keys page in your dashboard.
  3. Select API key as the Billing method.
  4. Enter your key.
  5. Click Save.
For questions about Mintlify, contact support. For questions about your Claude organization or its billing, contact Anthropic.

End-user identifiers

Mintlify sends a hashed identifier for the end user with each request to OpenAI, Anthropic, and OpenRouter. If your provider’s safety systems flag abusive traffic, the provider can block that one user instead of your whole API key. The identifier is an HMAC hash of your project and the user’s IP address, conversation, or Mintlify account. It does not contain the raw IP address, email, or other personal details. The same user gets the same identifier across requests, so you can match flagged activity in your provider’s dashboard.

Rotate or remove your key

Mintlify reuses your saved key across models for the same provider on that project. Enter a key again only when you rotate it, switch providers, or configure another project. To rotate your key, enter the new key in the API key field, then click Save. To stop using your own model, disable Bring your own model. Mintlify deletes the stored configuration and key for that project, and its AI products return to Mintlify’s default models. Other projects keep their own configurations. Disabling bring your own model on a project doesn’t unlink your Claude organization.