Skip to content
Anthropic

Configure Anthropic

Anthropic is a leading AI safety research company that developed the Claude series of large language models. Claude is known for its powerful reasoning capabilities, long context processing, and safety alignment features, providing multi-tiered AI services from fast responses to deep analysis.

1. Get Anthropic API Key

1.1 Access Anthropic Platform

Visit Anthropic Console and log in: https://console.anthropic.com/

Access Anthropic Platform

1.2 Go to API Keys Page

After logging in, click API Keys in the left menu.

Go to API Keys Page

1.3 Create a New API Key

Click the Create Key button in the upper right corner.

Click Create Button

1.4 Set API Key Information

In the popup dialog:

  1. Enter a name for the API Key (e.g., CueMate)
  2. Click the Create Key button

Set API Key Information

1.5 Copy API Key

After successful creation, the system will display the API Key.

Important: Please copy and save it securely immediately. The API Key starts with sk-ant-api03-.

Copy API Key

Click the copy button, and the API Key will be copied to your clipboard.

2. Configure Anthropic Model in CueMate

2.1 Go to Model Settings Page

After logging into the CueMate system, click Model Settings in the dropdown menu in the upper right corner.

Go to Model Settings

2.2 Add New Model

Click the Add Model button in the upper right corner.

Click Add Model

2.3 Select Anthropic Provider

In the popup dialog:

  1. Provider Type: Select Anthropic
  2. Click to automatically proceed to the next step

Select Anthropic

2.4 Fill in Configuration Information

Fill in the following information on the configuration page:

Basic Configuration

  1. Model Name: Give this model configuration a name (e.g., Claude-Sonnet-4.5)
  2. API Key: Paste the Anthropic API Key you just copied
  3. API URL: Keep the default https://api.anthropic.com
  4. Model Version: Select or enter the model to use (recommend using full version numbers)
    • claude-sonnet-4-5 or claude-sonnet-4-5-20250929: Latest and strongest, top-tier coding capability
    • claude-haiku-4-5 or claude-haiku-4-5-20251001: High value, fast and low cost
    • claude-opus-4-1 or claude-opus-4-1-20250805: Top-tier reasoning, suitable for complex tasks
    • claude-sonnet-4-20250514: Claude 4 Sonnet (must use full version number)
    • claude-3-7-sonnet: Claude 3.7 Sonnet
    • claude-3-5-sonnet-20241022: Claude 3.5 Sonnet (October 2024)
    • claude-3-5-sonnet-20240620: Claude 3.5 Sonnet (June 2024)
    • claude-3-5-haiku-20241022: Claude 3.5 Haiku
    • claude-3-opus-20240229: Claude 3 Opus (retiring soon)
    • claude-3-sonnet-20240229: Claude 3 Sonnet (retired)
    • claude-3-haiku-20240307: Claude 3 Haiku

Fill in Basic Configuration

Advanced Configuration (Optional)

Expand the Advanced Configuration panel to adjust the following parameters:

Parameters adjustable in CueMate interface:

  1. Temperature: Controls output randomness

    • Range: 0-1
    • Recommended Value: 0.7
    • Function: Higher values produce more random and creative output, lower values produce more stable and conservative output
    • Usage Suggestions:
      • Creative writing/brainstorming: 0.8-1.0
      • Regular conversation/Q&A: 0.6-0.8
      • Code generation/precise tasks: 0.3-0.5
    • Note: Claude's temperature range is 0-1, different from OpenAI's 0-2
  2. Max Tokens: Limits single output length

    • Range: 256 - 64000 (depending on model)
    • Recommended Value: 8192
    • Function: Controls the maximum word count per model response
    • Model Limits:
      • Claude Sonnet 4.5: Max 64K tokens
      • Claude Haiku 4.5: Max 64K tokens
      • Claude Opus 4.1: Max 32K tokens
      • Claude Sonnet 4: Max 64K tokens
      • Claude 3.7 Sonnet: Max 64K tokens
      • Claude 3.5 series: Max 8K tokens
      • Claude 3 series: Max 4K tokens
    • Usage Suggestions:
      • Brief Q&A: 1024-2048
      • Regular conversation: 4096-8192
      • Long text generation: 16384-32768
      • Ultra-long output: 65536 (4.5/4/3.7 series only)

Advanced Configuration

Other advanced parameters supported by Anthropic Claude API:

While the CueMate interface only provides temperature and max_tokens adjustments, if you call Claude directly via API, you can also use the following advanced parameters:

  1. top_p (nucleus sampling)

    • Range: 0-1
    • Default: -1 (disabled, uses temperature)
    • Function: Samples from the smallest candidate set whose cumulative probability reaches p
    • Relationship with temperature:
      • Claude officially recommends adjusting only one of them
      • If setting top_p, recommend setting temperature to 1.0
    • Usage Suggestions:
      • Maintain diversity but avoid extremes: 0.9-0.95
      • More conservative output: 0.7-0.8
    • Note: Setting to -1 disables this parameter
  2. top_k

    • Range: Positive integer (usually 1-100)
    • Default: -1 (disabled)
    • Function: Samples from the k tokens with highest probability
    • Usage Suggestions:
      • More diversity: 40-100
      • More conservative: 5-20
    • Note: Claude supports both top_p and top_k, but recommend using only one
  3. stop_sequences

    • Type: String array
    • Default: null
    • Maximum: 4 strings
    • Function: Stops when generated content contains specified strings
    • Example: ["\n\nHuman:", "\n\nAssistant:", "###"]
    • Use Cases:
      • Structured output: Use delimiters to control format
      • Dialogue systems: Prevent model from continuing to generate dialogue turns
      • Code block control: Use code block end markers
  4. stream (streaming output)

    • Type: Boolean
    • Default: false
    • Function: Enables SSE streaming return, returns as it generates
    • In CueMate: Automatically handled, no manual setting needed
    • Advantages:
      • Faster time to first byte
      • Better user experience
      • Suitable for long text generation scenarios
  5. metadata

    • Type: Object
    • Function: Attaches metadata for logging and analysis
    • Example: {"user_id": "12345"}
    • Use Cases: Tracking user sessions, A/B testing, usage analysis

Claude Special Features:

  1. system (system prompt)
    • Type: String
    • Function: Sets system-level prompts, defines model behavior and role
    • Maximum Length: 32K tokens (Claude 4.5/4/3.7)
    • Usage Suggestions:
      • Define professional domain roles
      • Set output format requirements
      • Specify language and style preferences
    • Example: "You are a senior technical interviewer, skilled at evaluating candidates' programming abilities and technical depth."
Scenariotemperaturemax_tokenstop_ptop_kstop_sequences
Creative Writing0.8-1.04096-8192-1-1null
Code Generation0.2-0.52048-4096-1-1null
Q&A System0.6-0.81024-2048-1-1null
Summarization0.3-0.5512-1024-1-1null
Structured Output0.52048-1-1["###", "\n\n"]

2.5 Test Connection

After filling in the configuration, click the Test Connection button to verify if the configuration is correct.

Test Connection

If the configuration is correct, a success message will be displayed along with a sample response from the model.

Test Success

If the configuration is incorrect, an error log will be displayed, and you can view specific error information through log management.

2.6 Save Configuration

After successful testing, click the Save button to complete the model configuration.

Save Configuration

3. Use the Model

Go to the system settings page through the dropdown menu in the upper right corner, and select the model configuration you want to use in the LLM provider section.

After configuration, you can select this model in features like interview training and question generation. You can also select this model configuration for a specific interview in the interview options.

Select Model

4. Supported Model List

4.1 Claude 4.5 Series (2025 Latest)

No.Model NameModel IDMax OutputUse CaseRelease Date
1Claude Sonnet 4.5claude-sonnet-4-5 or claude-sonnet-4-5-2025092964K tokensWorld's strongest coding model, AI Agent2025-09
2Claude Haiku 4.5claude-haiku-4-5 or claude-haiku-4-5-2025100164K tokensHigh value, fast, low cost2025-10

4.2 Claude 4 Series

No.Model NameModel IDMax OutputUse CaseRelease Date
1Claude Opus 4.1claude-opus-4-1 or claude-opus-4-1-2025080532K tokensTop-tier reasoning, complex tasks2025-08
2Claude Sonnet 4claude-sonnet-4-2025051464K tokensFlagship model, high value2025-05

4.3 Claude 3.7 Series

No.Model NameModel IDMax OutputUse CaseRelease Date
1Claude 3.7 Sonnetclaude-3-7-sonnet64K tokensHigh performance, long text processing2025-02

4.4 Claude 3.5 Series

No.Model NameModel IDMax OutputUse CaseRelease Date
1Claude 3.5 Sonnet (Oct)claude-3-5-sonnet-202410228K tokensRegular dialogue, coding assistance2024-10
2Claude 3.5 Sonnet (Jun)claude-3-5-sonnet-202406208K tokensGeneral scenarios2024-06
3Claude 3.5 Haikuclaude-3-5-haiku-202410228K tokensFast response, lightweight2024-10

4.5 Claude 3 Series (Classic Versions)

No.Model NameModel IDMax OutputUse CaseStatus
1Claude 3 Opusclaude-3-opus-202402294K tokensDeep analysis, classic modelRetiring soon
2Claude 3 Sonnetclaude-3-sonnet-202402294K tokensGeneral scenariosRetired
3Claude 3 Haikuclaude-3-haiku-202403074K tokensUltra-lightweight tasksAvailable
  • Coding/Agent Scenarios: claude-sonnet-4-5 (strongest)
  • High Value Scenarios: claude-haiku-4-5 (fast, low cost)
  • Complex Reasoning Scenarios: claude-opus-4-1 (top-tier reasoning)
  • General Dialogue Scenarios: claude-3-5-sonnet-20241022

5. FAQ

5.1 Model Name Not Found (404 Error)

Symptom: model: xxx not found or 404 error when testing connection

Solutions:

  1. Check if model name is correct, must use complete API model name
  2. Recommend using full version numbers with date suffix, such as claude-3-5-sonnet-20241022
  3. Some models support short aliases (like claude-sonnet-4-5), but some models must use full version numbers
  4. Wrong example: claude-sonnet-4 (short alias not supported, will return 404)
  5. Correct examples:
    • claude-sonnet-4-20250514 (Claude 4 must use full version number)
    • claude-sonnet-4-5 or claude-sonnet-4-5-20250929 (4.5 supports short alias)
    • claude-3-5-sonnet-20241022 (3.5 uses full version number)

5.2 Invalid API Key

Symptom: API Key error when testing connection

Solutions:

  1. Check if API Key starts with sk-ant-api03-
  2. Confirm API Key is completely copied
  3. Check if account has available credits

5.3 Request Timeout

Symptom: Long wait time with no response when testing connection or using the model

Solutions:

  1. Check if network connection is normal
  2. If in China, may need to use a proxy
  3. Check firewall settings

5.4 Insufficient Quota

Symptom: Quota exhausted or insufficient balance message

Solutions:

  1. Log in to Anthropic Console to check account balance
  2. Top up or upgrade account plan
  3. Check API Key usage limits

Released under the GPL-3.0 License.