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

# AI 模型 API 资源导航：官方文档与接入页面

> 按厂商汇总 OpenAI、Anthropic、Google、阿里云百炼、火山方舟、xAI 等官方 API 文档，并对应到老张API的接入页面和控制台入口。

下面按厂商列出老张API所接模型的官方 API 文档，以及对应的老张API接入页面。官方文档用来查字段、模型能力和弃用计划；Base URL、API Key、模型 ID 和价格以老张API文档、[模型与价格总表](/models)和控制台为准。

## 老张API常用入口

* **控制台**：[令牌管理](https://api.laozhang.ai/token)（创建 API Key、选择令牌分组）、[模型与价格](https://api.laozhang.ai/account/pricing)、[调用日志](https://api.laozhang.ai/log)
* **接入文档**：[API 开发文档](/api-manual)、[文本生成 API](/api-capabilities/text-generation)、[图像 API 选型](/api-capabilities/image-generation-guide)、[计费说明](/pricing)
* **公告**：[网站公告](/changelog)、Telegram 公告频道 [@laozhang\_ai](https://t.me/laozhang_ai)
* **给 AI 编程助手**：[skill.md](https://docs.laozhang.ai/skill.md)、[llms.txt](https://docs.laozhang.ai/llms.txt)
* **联系支持**：邮件 [hi@laozhang.ai](mailto:hi@laozhang.ai)、Telegram [@laozhang\_cn](https://t.me/laozhang_cn)

## 各厂商官方文档

| 厂商 | 官方文档 | 老张API页面 |
| - | - | - |
| OpenAI | [API 文档](https://developers.openai.com/api/docs)、[模型](https://developers.openai.com/api/docs/models)、[弃用计划](https://developers.openai.com/api/docs/deprecations) | [OpenAI 模型接入](/api-reference/openai)、[GPT Image 2.5](/api-capabilities/gpt-image-2-5) |
| Anthropic | [Messages API](https://platform.claude.com/docs/zh-CN/api/messages)、[流式输出](https://platform.claude.com/docs/zh-CN/build-with-claude/streaming) | [Claude 协议](/api-reference/claude) |
| Google | [Gemini API](https://ai.google.dev/gemini-api/docs?hl=zh-cn)、[图像生成](https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn)、[弃用计划](https://ai.google.dev/gemini-api/docs/deprecations?hl=zh-cn) | [Gemini 协议](/api-reference/gemini)、[Nano Banana](/api-capabilities/nano-banana-image) |
| 阿里云百炼 | [万相文生视频 API](https://help.aliyun.com/zh/model-studio/text-to-video-api-reference)、[通义千问 API](https://help.aliyun.com/zh/model-studio/qwen-api-reference/)、[模型价格](https://help.aliyun.com/zh/model-studio/model-pricing) | [Wan 2.7 视频生成](/api-capabilities/wan-video-generation)、[Embeddings](/api-capabilities/text-embedding) |
| 火山方舟 | [视频生成 API](https://www.volcengine.com/docs/82379/1520757)、[图片生成 API](https://www.volcengine.com/docs/82379/1541523)、[模型价格](https://www.volcengine.com/docs/82379/1544106) | [Seedance 2.0](/api-capabilities/seedance2-video-generation)、[Seedream](/api-capabilities/seedream-image) |
| xAI | [Grok API](https://docs.x.ai/overview)、[图像生成](https://docs.x.ai/developers/model-capabilities/images/generation) | [Grok Imagine](/api-capabilities/grok-imagine-image) |
| Black Forest Labs | [FLUX.2 文档](https://docs.bfl.ai/flux_2/flux2_overview) | [FLUX.2](/api-capabilities/flux-image-generation) |
| DeepSeek | [API 文档](https://api-docs.deepseek.com/zh-cn/)、[Anthropic API](https://api-docs.deepseek.com/zh-cn/guides/anthropic_api) | [OpenAI 协议](/api-reference/chat-completions)、[Claude 协议](/api-reference/claude) |
| 智谱 | [GLM-5.2](https://docs.bigmodel.cn/cn/guide/models/text/glm-5.2) | [OpenAI 协议](/api-reference/chat-completions)、[Claude 协议](/api-reference/claude) |

Grok、通义千问、DeepSeek、GLM 等文本模型都通过 [OpenAI 协议](/api-reference/chat-completions)调用，其中 `glm-5.2`、`deepseek-v4-pro`、`deepseek-v4-flash` 也支持 Anthropic Messages 格式的 [Claude 协议](/api-reference/claude)。

Moonshot、MiniMax 等其他厂商的模型 ID 与价格见[模型与价格总表](/models)。

Claude 模型自 2026 年 9 月 24 日起未在老张API上架，上架时会在[网站公告](/changelog)通知。

## 使用官方文档时注意

* **地址和密钥**：官方文档中的 Base URL、API Key 获取方式、价格和速率限制不适用于老张API。请求发到 `https://api.laozhang.ai`（OpenAI SDK 用 `https://api.laozhang.ai/v1`），使用老张API密钥。
* **模型 ID**：以[模型与价格总表](/models)为准。部分 ID 是老张API的线路 ID，例如 `gpt-image-2-vip`、`gpt-image-2.5-web`，官方文档中没有。
* **参数**：先按老张API对应页面的示例发送最小请求，再对照官方文档逐项添加参数；某个参数报错时，以错误正文为准调整。
* **下线计划**：上游模型的停止服务日期看厂商的弃用计划页面，老张API的实际停止时间可能不同，以[网站公告](/changelog)为准。例如 Google 价格页曾提示 `gemini-2.5-flash-image` 于 2026 年 10 月 2 日停止，弃用页后来改列 2027 年 3 月 15 日，截至 10 月 5 日老张API仍可调用该模型。
* **可用性**：官方文档中的模型能否在老张API调用，以总表和控制台为准；排查方法见[模型可用性说明](/faq/model-availability)。


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