这个资源提供什么What this offer provides
LongCat-2.0 is one model with two access paths: an official API whose free quota is not confirmed, and downloadable weights whose license permits access but still requires storage and GPU infrastructure.LongCat-2.0 is one model with two access paths: an official API whose free quota is not confirmed, and downloadable weights whose license permits access but still requires storage and GPU infrastructure.
关键信息Key details
上下文窗口Context window
256K tokens256K tokens. 来源Source ↗
使用入口Access paths
| 入口Path | 用途Use | 免费状态Free status | 访问条件Access | 官方链接Official links |
|---|---|---|---|---|
| API 调用API api | 在线调用 LongCat APILongCat API | 免费额度未确认See official terms | Email / phoneEmail / phone | API docsAPI docs ↗ FAQFAQ ↗ |
| 下载权重Access path open_weights | 下载 LongCat-2.0 权重并在本地运行LongCat-2.0 | 权重免费,算力不免费, | GlobalGlobal | Official GitHubOfficial GitHub ↗ Hugging FaceHugging Face ↗ |
如何使用How to use
通过 LongCat 官方平台调用模型 API;也可下载权重本地部署LongCat API;
前置条件Prerequisites
- LongCat 账号(API 路径)LongCat (API )
- 确认 API 资格和计费规则,或满足本地部署硬件要求API ,
步骤Steps
- 选择 API 调用或下载权重入口API
- API 路径创建凭据发送请求;权重路径打开模型仓库并启动本地推理API ;
curlcurl
curl --request POST https://api.longcat.chat/openai/v1/chat/completions --header 'Authorization: Bearer ${LONGCAT_API_KEY}' --header 'Content-Type: application/json' --data '{"model":"LongCat-Flash-Chat","messages":[{"role":"user","content":"Hello"}]}'shellshell
python -m pip install -U huggingface_hub
huggingface-cli download meituan-longcat/LongCat-2.0 --local-dir ./LongCat-2.0
官方来源Official sources
Official API docs confirm API access but do not confirm a durable free quota; the official repository documents LongCat-2.0 downloadable weights and the model license.Official API docs confirm API access but do not confirm a durable free quota; the official repository documents LongCat-2.0 downloadable weights and the model license.