Overview
To meet developers’ needs for leveraging the Anthropic API ecosystem, our API now supports accessing all models via the Anthropic API interface.It supports 200+ LLMs, including 7 free models.
Quick Start
Install the Anthropic SDK
API Usage
Endpoint:https://aihubmix.com/v1/messages
Compatibility Notes
Supported Parameters
When integrating via the Anthropic API, the following input parameters are supported:| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Supported models can be found in the Model List |
messages | array of MessageParam | Yes | Input messages |
max_tokens | number | No | Maximum number of tokens to generate |
stream | boolean | No | Enable streaming responses |
system | string or array of TextBlockParam | Yes | System prompt |
temperature | number | No | Range: (0.0, 1.0]. Controls output randomness; recommended value is 1 |
top_p | number | No | Nucleus sampling parameter |
thinking | ThinkingConfigParam | No | Reasoning configuration |
Supported Message Types
| Type | Description |
|---|---|
type="text" | Text message |
type="tool_use" | Tool invocation |
type="tool_result" | Tool invocation result |
type="thinking" | Model reasoning output |
Usage Example
Using GPT-5.2 in Claude Code
Although any supported model can be used via AIHubMix, for the best experience we recommend high-capability models such as gpt-5.2 or glm-4.7.1. Install and Configure Claude Code
Refer to the Claude Code installation guide: https://docs.aihubmix.com/cn/api/Claude-Code2. Connect Claude Code to AIHubMix
Claude configuration file:.claude/settings.json
AIHUBMIX_API_KEY with your actual AIHubMix API key.
3. Start a Conversation
Navigate to your project directory and launch Claude Code:4. Verification
You can verify the connection by running the/status command in Claude Code:
Last updated: 2026-06-01