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

# Anthropic Claude

Use Claude models such as Claude Sonnet 4.6, Claude Haiku, Claude Opus on TypingMind via API!

Here’s how to set up on TypingMind.

## Step 1: Create an Anthropic API account

* Create an Anthropic Claude API account at [https://platform.claude.com/login](https://platform.claude.com/login)

![image.png](https://mintcdn.com/typingmind/pm53BB_D69NXvWmb/manage-and-connect-ai-models/anthropic-claude/image.webp?fit=max\&auto=format\&n=pm53BB_D69NXvWmb\&q=85\&s=49152b9da4eb5c364064ec06db6a052a)

## Step 2: Top up your API credit

Go to [Billing](https://platform.claude.com/settings/billing) section to top up your API credit to use the models:

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/anthropic-claude/image%201.webp)

## Step 3: Get your API key

* Create a new API key at [https://platform.claude.com/settings/keys](https://platform.claude.com/settings/keys)
* Copy the key to a safe place

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/anthropic-claude/image%202.webp)

## Step 4: Enter your API key to TypingMind

* Go to [**typingmind.com**](https://www.typingmind.com/)
* Navigate the Models menu on the left sidebar → Switch to API key tab
* Input the copied API key

![Api Key Tab](https://mintcdn.com/typingmind/f18I_2hiObU32xEr/images/api-key-tab.webp?fit=max\&auto=format\&n=f18I_2hiObU32xEr\&q=85\&s=cd0e293a1514cb9d086e8754ac1106ee)

After entering the API key for Anthropic, switch back to Models tab → select Anthropic as the AI provider → enable Claude models you want to chat with.

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/anthropic-claude/image%204.webp)

## Advanced settings

**Custom endpoint:** Use the direct endpoint `https://api.anthropic.com/v1/messages` or configure your own custom chat completions endpoint.

![image.png](https://mintlify.s3.us-west-1.amazonaws.com/typingmind/manage-and-connect-ai-models/anthropic-claude/image%205.webp)

> [!NOTE]
>
> Common issue:
>
> `“Could not connect to Anthropic API. Please try again later. Error code:400”`
>
> This issue may appear when your credit balance is too low to access the Claude API. Please check and add your credit balance at [https://platform.claude.com/settings/billing](https://platform.claude.com/settings/billing), then try again.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.