bailian-docs-llm-wiki
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese百炼文档知识库
Tongyi Qianfan Document Knowledge Base
阿里云百炼平台的完整技术文档知识库,涵盖模型使用、应用开发、API 参考等内容。
The complete technical document knowledge base for Alibaba Cloud Tongyi Qianfan Platform, covering model usage, application development, API references, and other content.
何时使用
When to Use
当用户涉及以下场景时激活此 Skill:
- 查询百炼平台的模型列表、模型参数、调用方式(含具体模型的 contextWindow、QPM、定价、sample code 等结构化字段 → 查 )
models/ - 查阅百炼 API 参数、请求/响应格式、错误码
- 了解百炼应用开发(智能体、RAG、知识库、记忆、插件等)
- 选择模型、比较模型能力、了解模型定价与限流
- 使用百炼 SDK / OpenAI 兼容接口
- 语音识别、语音合成、图片生成、视频生成等多模态能力
- Token Plan、计费、免费额度等商务问题
Activate this Skill when users are involved in the following scenarios:
- Querying Qianfan platform's model lists, model parameters, calling methods (including structured fields like contextWindow, QPM, pricing, sample code for specific models → check )
models/ - Looking up Qianfan API parameters, request/response formats, error codes
- Learning about Qianfan application development (Agent, RAG, Knowledge Base, Memory, Plugins, etc.)
- Selecting models, comparing model capabilities, understanding model pricing and rate limits
- Using Qianfan SDK / OpenAI compatible interfaces
- Multimodal capabilities such as speech recognition, speech synthesis, image generation, video generation
- Business issues like Token Plan, billing, free quota, etc.
何时不要使用
When Not to Use
下面这些场景与百炼文档无关,不要激活本 Skill:
- 询问 OpenAI / Anthropic / Google 等其他厂商的 API、模型或定价
- 通用编程问题、框架问题(React、Vue、Spring 等)
- CLI 命令本身的用法(那是
blskill 的职责)bailian-cli - 与百炼无关的阿里云产品(OSS、ECS、RDS 等)
Do not activate this Skill for the following scenarios that are unrelated to Qianfan documents:
- Inquiring about APIs, models or pricing of other vendors like OpenAI / Anthropic / Google
- General programming issues, framework issues (React, Vue, Spring, etc.)
- Usage of the CLI command itself (that's the responsibility of the
blskill)bailian-cli - Alibaba Cloud products unrelated to Qianfan (OSS, ECS, RDS, etc.)
文档层级
Document Layers
1. Wiki 层(合成层) — wiki/
wiki/1. Wiki Layer (Synthesis Layer) — wiki/
wiki/由 LLM 自动合成的结构化 Wiki,包含三类页面:
- 主题页:按功能领域聚合的综合文档(、
wiki/guides/*.md)wiki/api/*.md - 概念页:跨主题的横切概念(,如 RAG、流式输出、Function Calling 等)
wiki/concepts/*.md - 对比页:同类方案的结构化对比分析(,含对比表格)
wiki/comparisons/*.md
优先查阅 ,它是全部 wiki 页面的索引入口。
wiki/index.md每篇主题页末尾都有 段落,列出对应的 raw 原文路径,可用于追溯和深度阅读。
## 来源文档Structured Wiki automatically synthesized by LLM, including three types of pages:
- Topic Pages: Comprehensive documents aggregated by functional domains (,
wiki/guides/*.md)wiki/api/*.md - Concept Pages: Cross-cutting concepts across topics (, such as RAG, streaming output, Function Calling, etc.)
wiki/concepts/*.md - Comparison Pages: Structured comparative analysis of similar solutions (, including comparison tables)
wiki/comparisons/*.md
Prioritize checking , which is the index entry for all wiki pages.
wiki/index.mdEach topic page ends with a section, listing the corresponding raw original document paths for traceability and in-depth reading.
## Source Documents2. Models 层(模型市场结构化数据) — models/
models/2. Models Layer (Structured Data of Model Market) — models/
models/直接从百炼 console 网关 抓取的结构化模型元数据,
对应「模型广场」页面。涉及具体模型的能力、上下文长度、QPM 限流、定价、
官方 sample code 等问题时,优先查这里,比 wiki 更新更准。
listFoundationModels三层产物,单一数据源( / 是机器查询入口, 是 的人类可读视图):
families.jsonlmodels.jsonlindex.mdfamilies.jsonl- — 按主能力分桶的家族索引(中文标签 + 模型代码 + 链接到明细 JSON),适合「概览扫一眼」
models/index.md - — 每行一个家族,含
models/families.jsonl/slug/name/description/primaryCapability(家族下所有 item 的并集)/capabilities/providers/itemCount/ 轻量maxContextWindow摘要(每个 item 只含items[]/model/name/contextWindow/capabilities)/openSource。 适合按家族筛选,例如:detailPath- 列出推理类家族:
jq -c 'select(.primaryCapability=="Reasoning") | {slug,name,itemCount}' families.jsonl - 找包含某个 provider 的家族:
grep '"moonshot-ai"' families.jsonl | jq -c .slug
- 列出推理类家族:
- — 每行一个主干模型(跨家族扁平),含
models/models.jsonl/model/family/capabilities/features/contextWindow/maxInputTokens/maxOutputTokens(精简)/prices(精简)/qpmInfo/docUrl。适合跨家族批量查询,例如:detailPath- 列出所有 contextWindow ≥ 1M 的模型:
jq -c 'select(.contextWindow>=1000000)' models.jsonl - 找支持 function-calling 的文本模型:
grep '"function-calling"' models.jsonl | jq -c '{model,family,contextWindow}'
- 列出所有 contextWindow ≥ 1M 的模型:
两份 JSONL 的 join 字段:。命中后按 打开 取完整字段(、)。
models.jsonl[].family == families.jsonl[].slugdetailPathgroups/<slug>.jsonsamplespredictConfig- — 单个模型家族(如
models/groups/<slug>.json、qwen3-max、deepseek)的完整明细:wan-image-to-video- 家族层:、
namedescription - :该家族下所有主干模型版本(剔除了带日期后缀的快照),已经过裁剪 (丢弃了
items[]/permissions/activationStatus/quota/scope/tags/license/serviceSites等与模型能力无关的账号/UI 字段),保留:modelInfo(API 调用名)、model、modelAlias、contextWindow、maxInputTokens、maxOutputTokens、capabilities、features、provider、docUrl、prices、qpmInfo(调用示例,扁平化结构:samples, 例如samples.<sdk>.<api>.{curl,python,nodejs,java,docUrl}直接是代码字符串)、samples.openai.completionsAPI.python(模型调用入参定义:从predictConfig网关获取, 含getPredictParamConfig/system/temperature/top_p/enable_search等参数的enable_thinking/name/key/default/tip,与百炼 Playground 对齐)range
- 家族层:
- — 增量爬取的指纹缓存,不要给用户引用
models/meta.json
数据通过刷新。pnpm --filter bailian-docs-llm-wiki run crawl:models
Structured model metadata directly crawled from the Qianfan console gateway , corresponding to the "Model Plaza" page. For issues related to specific model capabilities, context length, QPM rate limits, pricing, official sample code, etc., check here first as it is more up-to-date and accurate than the wiki.
listFoundationModelsThree-layer products, single data source ( / are machine query entries, is a human-readable view of ):
families.jsonlmodels.jsonlindex.mdfamilies.jsonl- — Family index grouped by primary capabilities (Chinese labels + model codes + links to detailed JSON), suitable for "quick overview"
models/index.md - — One family per line, including
models/families.jsonl/slug/name/description/primaryCapability(union of all items under the family) /capabilities/providers/itemCount/ lightweightmaxContextWindowsummary (each item only containsitems[]/model/name/contextWindow/capabilities) /openSource. Suitable for filtering by family, for example:detailPath- List reasoning families:
jq -c 'select(.primaryCapability=="Reasoning") | {slug,name,itemCount}' families.jsonl - Find families containing a specific provider:
grep '"moonshot-ai"' families.jsonl | jq -c .slug
- List reasoning families:
- — One backbone model per line (flat across families), including
models/models.jsonl/model/family/capabilities/features/contextWindow/maxInputTokens/maxOutputTokens(simplified) /prices(simplified) /qpmInfo/docUrl. Suitable for cross-family batch queries, for example:detailPath- List all models with contextWindow ≥ 1M:
jq -c 'select(.contextWindow>=1000000)' models.jsonl - Find text models that support function-calling:
grep '"function-calling"' models.jsonl | jq -c '{model,family,contextWindow}'
- List all models with contextWindow ≥ 1M:
Join field for the two JSONL files: . After matching, open via to get complete fields (, ).
models.jsonl[].family == families.jsonl[].sluggroups/<slug>.jsondetailPathsamplespredictConfig- — Complete details of a single model family (such as
models/groups/<slug>.json,qwen3-max,deepseek):wan-image-to-video- Family layer: ,
namedescription - : All backbone model versions under the family (excluding snapshots with date suffixes), which have been trimmed (discarded account/UI fields irrelevant to model capabilities such as
items[]/permissions/activationStatus/quota/scope/tags/license/serviceSites), retaining:modelInfo(API call name),model,modelAlias,contextWindow,maxInputTokens,maxOutputTokens,capabilities,features,provider,docUrl,prices,qpmInfo(call examples, flattened structure:samples, e.g.,samples.<sdk>.<api>.{curl,python,nodejs,java,docUrl}is directly a code string),samples.openai.completionsAPI.python(model call parameter definition: obtained from thepredictConfiggateway, includinggetPredictParamConfig/name/key/default/tipfor parameters likerange/system/temperature/top_p/enable_search, aligned with Qianfan Playground)enable_thinking
- Family layer:
- — Fingerprint cache for incremental crawling, do not reference this for users
models/meta.json
Data is refreshed via.pnpm --filter bailian-docs-llm-wiki run crawl:models
能力代码(capability)映射
Capability Code Mapping
index.mditems[].capabilities[]| 代码 | 中文标签 |
|---|---|
| 文本生成 |
| 推理 |
| 视觉理解 |
| 图像生成 |
| 视频生成 |
| 语音合成 |
| 语音识别 |
| 实时语音识别 |
| 实时语音合成 |
| 实时音频翻译 |
| 实时全模态 |
| 全模态 |
| 多模态嵌入 |
| 翻译 |
| 3D 生成 |
一个模型常常带多个 capability, 中按 (主能力)归类,
查找时按中文标签即可定位章节。
index.mdcapabilities[0]The section titles in and use English short codes, corresponding to Chinese meanings as follows:
index.mditems[].capabilities[]| Code | Chinese Label |
|---|---|
| Text Generation |
| Reasoning |
| Visual Understanding |
| Image Generation |
| Video Generation |
| Speech Synthesis |
| Speech Recognition |
| Realtime Speech Recognition |
| Realtime Text-to-Speech |
| Realtime Audio Translation |
| Realtime Multimodal |
| Multimodal |
| Multimodal Embedding |
| Translation |
| 3D Generation |
A model often has multiple capabilities. In , models are categorized by (primary capability). You can locate the section by Chinese label during search.
index.mdcapabilities[0]3. Raw 层(原始层) — raw/
raw/3. Raw Layer (Original Layer) — raw/
raw/从 help.aliyun.com 爬取的原始文档,按分类存放:
- — 模型使用指南
raw/model-user-guide/ - — 应用使用指南
raw/application-user-guide/ - — 模型 API 参考
raw/model-api-reference/ - — 应用 API 参考
raw/application-api-reference/
当 wiki / models 层信息不足时,从 raw 层获取完整原文。
Original documents crawled from help.aliyun.com, stored by category:
- — Model User Guide
raw/model-user-guide/ - — Application User Guide
raw/application-user-guide/ - — Model API Reference
raw/model-api-reference/ - — Application API Reference
raw/application-api-reference/
When information in the wiki / models layers is insufficient, obtain complete original text from the raw layer.
强约束
Strong Constraints
- 回答必须基于 或
wiki/下的实际文件内容,不得凭印象编造 API、参数名、错误码或定价数字。raw/ - 引用时附带相对路径(如 ),方便用户验证。
wiki/api/qwen-api.md - 如果在 中查到某页面
wiki-metadata.json,直接绕过 wiki 该页,回退到qualityScore <= 2原文回答。raw/
- Answers must be based on actual file content under or
wiki/, do not fabricate APIs, parameter names, error codes or pricing figures from memory.raw/ - Attach relative paths when referencing (e.g., ) to facilitate user verification.
wiki/api/qwen-api.md - If a page has found in
qualityScore <= 2, directly bypass this wiki page and fall back to the original text inwiki-metadata.jsonfor answering.raw/
查阅流程
Lookup Process
- 模型规格类问题先查 models:
- 具体某个模型的能力、上下文、QPM、价格、官方示例代码 → 看 定位家族 → 打开
index.mdgroups/<slug>.json - 跨家族筛选模型(如「上下文 ≥ 1M 的模型」「支持 function-calling 的推理模型」)→ grep
models.jsonl - 按家族维度筛选(如「有哪些纯推理家族」「moonshot 旗下都有哪些家族」)→ grep
families.jsonl - 命中后按 打开对应
detailPath取groups/<slug>.json/samples等完整字段predictConfig
- 具体某个模型的能力、上下文、QPM、价格、官方示例代码 → 看
- 概念/使用方式查 wiki 索引:读取 找到对应的主题页、概念页或对比页
wiki/index.md - 概念/对比优先:跨领域问题或方案选型问题,优先看 与
wiki/concepts/*wiki/comparisons/* - 回溯 raw 原文:从主题页末尾的 列表点进
## 来源文档看完整细节raw/.../*.md - 全文索引:含完整目录树;
llms.txt含全文拼接,可用 grepllms-full.txt - 特定参数/错误码:直接在 下用 grep
raw/
- Check models first for model specification issues:
- Capabilities, context, QPM, pricing, official sample code of a specific model → Locate the family via → Open
index.mdgroups/<slug>.json - Cross-family model filtering (e.g., "models with context ≥ 1M", "reasoning models that support function-calling") → grep
models.jsonl - Family-level filtering (e.g., "which pure reasoning families are there", "what families are under moonshot") → grep
families.jsonl - After matching, open the corresponding via
groups/<slug>.jsonto get complete fields likedetailPath/samplespredictConfig
- Capabilities, context, QPM, pricing, official sample code of a specific model → Locate the family via
- Check wiki index for concepts/usage methods: Read to find the corresponding topic pages, concept pages or comparison pages
wiki/index.md - Prioritize concepts/comparisons: For cross-domain issues or solution selection issues, prioritize checking and
wiki/concepts/*wiki/comparisons/* - Trace back to raw original text: Access from the
raw/.../*.mdlist at the end of topic pages to view complete details## Source Documents - Full-text index: contains the complete directory tree;
llms.txtcontains full-text concatenation, which can be searched with grepllms-full.txt - Specific parameters/error codes: Directly use grep under
raw/
快速定位映射
Quick Location Mapping
| 关键词 | 推荐入口路径 |
|---|---|
| 某模型的 contextWindow / 价格 / QPM / sample code / 入参定义 | |
| 跨家族筛选模型:按 contextWindow / capability / feature / price 批量查找 | |
| 按家族筛选:按 primaryCapability / providers / itemCount / maxContextWindow 找家族 | |
| 模型家族总览 / 按能力分桶浏览 | |
| 模型列表 / Qwen / DeepSeek | |
| 文本对话 / Chat Completion | |
| 语音合成 / TTS | |
| 语音识别 / ASR | |
| 图片生成 / 图片编辑 | |
| 视频生成 | |
| 多模态 / Omni | |
| Function Calling / 工具调用 | |
| RAG / 知识库 | |
| 智能体 / 应用调用 | |
| OpenAI 兼容 | |
| Token / 计费 / 限流 | |
实际文件名以为准;上表若有出入应回到索引页查找。wiki/index.md
| Keywords | Recommended Entry Path |
|---|---|
| contextWindow / pricing / QPM / sample code / parameter definition of a model | |
| Cross-family model filtering: Batch search by contextWindow / capability / feature / price | |
| Family-level filtering: Find families by primaryCapability / providers / itemCount / maxContextWindow | |
| Overview of model families / browsing by capability buckets | |
| Model list / Qwen / DeepSeek | |
| Text chat / Chat Completion | |
| Speech synthesis / TTS | |
| Speech recognition / ASR | |
| Image generation / image editing | |
| Video generation | |
| Multimodal / Omni | |
| Function Calling / Tool Calling | |
| RAG / Knowledge Base | |
| Agent / Application Calling | |
| OpenAI Compatibility | |
| Token / Billing / Rate Limit | |
Actual file names are subject to; if there is any discrepancy in the above table, return to the index page to search.wiki/index.md
注意事项
Notes
- 文档持续更新,如遇矛盾以 >
models/>raw/的顺序为准 (wiki/直接拉自 console 网关,最新;models/是源站爬取;raw/是 LLM 合成可能滞后)wiki/ - 记录每篇 raw 文档的最后修改时间
metadata.json - 记录每个 wiki 页面的合成 hash、时间戳、可选的
wiki-metadata.jsonqualityScore - 是最近一次评测报告(结构问题、断链、长度异常等)
wiki/eval-report.md - 目录可能尚未生成(需运行
wiki/)pnpm --filter bailian-docs-llm-wiki run synthesize
- Documents are continuously updated. In case of conflicts, follow the priority order: >
models/>raw/(wiki/is directly pulled from the console gateway, the most up-to-date;models/is crawled from the source site;raw/is synthesized by LLM and may be lagging)wiki/ - records the last modification time of each raw document
metadata.json - records the synthesis hash, timestamp, and optional
wiki-metadata.jsonof each wiki pagequalityScore - is the latest evaluation report (structural issues, broken links, length anomalies, etc.)
wiki/eval-report.md - The directory may not have been generated yet (need to run
wiki/)pnpm --filter bailian-docs-llm-wiki run synthesize