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

# AnythingLLM 集成

> 在 AnythingLLM 中配置 APIAny.AI API Key、Base URL 和推荐模型。

[AnythingLLM](https://anythingllm.com/) 可以通过 OpenAI 兼容配置接入 APIAny.AI。完成配置后，你可以在同一个客户端中使用对话、推理、翻译和多模态模型。

## 准备工作

* 已安装 AnythingLLM。
* 已在 [APIAny.AI 控制台](https://apiany.ai/zh/dashboard/api-keys) 创建 API Key。
* 已准备一个要使用的模型 ID，例如 `gpt-5.4-mini` 或 `gpt-4o-mini`。

## 配置值

| 字段       | 填写内容                   |
| -------- | ---------------------- |
| LLM mode | `Generic OpenAI`       |
| Base URL | `https://apiany.ai/v1` |
| API Key  | 你的 APIAny.AI API Key   |
| 聊天模型     | `gpt-5.4-mini`         |

## 配置步骤

1. 打开工作区设置，进入 LLM 配置。
2. 选择 Generic OpenAI。
3. 填写 Base URL、API Key、模型名称和上下文长度。
4. 保存后在工作区发起一次测试对话。

## 推荐模型

| 模型 ID               | 适用场景                        |
| ------------------- | --------------------------- |
| `gpt-5.5`           | 适合复杂推理、编码和生产级工作流，优先推荐。      |
| `gpt-5.4`           | 适合高级对话、Agent 和通用生产任务。       |
| `gpt-5.4-mini`      | 速度、质量和成本均衡，适合日常高频使用。        |
| `gpt-4o-mini`       | 适合简单对话、翻译和轻量任务，速度快、成本低。     |
| `claude-sonnet-4-6` | 适合 Claude 兼容配置的长文本、写作和编码任务。 |
| `gemini-3.5-flash`  | 适合 Gemini 兼容配置的快速多模态任务。     |

## 操作截图

以下截图展示 AnythingLLM 中的关键配置入口和保存后的使用界面。截图中的 API 地址和名称均已按 APIAny.AI 调整。

### 步骤 1

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/anythingllm/main-interface.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=802c0df04227f57904553d38d700ce38" alt="AnythingLLM 配置截图 1" width="1920" height="1008" data-path="images/integrations/anythingllm/main-interface.png" />

### 步骤 2

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/anythingllm/llm-provider-selection.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=a29ce0ae351c42e1faa08da0163a0b39" alt="AnythingLLM 配置截图 2" width="1920" height="1008" data-path="images/integrations/anythingllm/llm-provider-selection.png" />

### 步骤 3

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/anythingllm/api-configuration.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=82842c31afb946eafe618d4247a2e410" alt="AnythingLLM 配置截图 3" width="1920" height="1008" data-path="images/integrations/anythingllm/api-configuration.png" />

## 常见问题

### 返回 401 或认证失败

确认 API Key 已完整复制，前后没有多余空格，并且已经在 APIAny.AI 控制台中启用。

### 模型无法选择或调用失败

手动输入模型 ID，并确认该模型在 [模型目录](/zh/models/chat-models) 中可用。不同工具可能不会自动拉取模型列表。

### Base URL 应该怎么填

OpenAI 兼容配置通常使用 `https://apiany.ai/v1`；Claude 兼容配置通常使用 `https://apiany.ai`；需要完整接口地址的工具使用 `https://apiany.ai/v1/chat/completions`。
