Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

客户端与工具接入

Lazu 在同一个 API 地址(https://api.lazu.ai)下同时提供原生 Anthropic Messages(/v1/messages)、OpenAI Responses(/v1/responses)、OpenAI Chat Completions(/v1/chat/completions)和 Gemini(/v1beta/models/{model}:generateContent)接口,在控制台创建一把 Key 即可通用。

支持的工具与接入方式

工具接入方式地址与协议详细指南
cc-connect官方内置预设cc-connect provider presets → 选择 Lazucc-connect
llama.vscode官方内置服务商选项https://api.lazu.ai(OpenAI 兼容)llama.vscode
cockpit-tools官方内置预设Claude Code、Claude Desktop 与 Codex 预设cockpit-tools
DeepChat官方内置服务商https://api.lazu.ai/v1 + 自动同步 /v1/modelsDeepChat
PublicProviderConf实时模型目录数据源GET https://lazu.ai/api/pricingPublicProviderConf
Claude Code原生 Anthropic Messageshttps://api.lazu.ai(/v1/messages)Claude Code
Codex CLI原生 OpenAI Responseshttps://api.lazu.ai/v1(wire_api = "responses")Codex CLI
OpenCodeOpenAI 兼容协议https://api.lazu.ai/v1OpenCode
Goose自定义 Provider JSONhttps://api.lazu.ai/v1/chat/completionsGoose
Cursor、Cline、Cherry Studio、ChatboxOpenAI 兼容协议https://api.lazu.ai/v1 + 自动拉取 /v1/models直接填写 Base URL 与 Key

给客户端与开源项目维护者

如果你正在把 Lazu 集成到客户端、Agent 或模型目录里,建议优先动态拉取模型列表而不是写死模型名:

接口鉴权返回内容
GET https://api.lazu.ai/v1/models公开(免 Key)标准 OpenAI { "object": "list", "data": [...] },附带 context_length、max_output_tokens、pricing、capabilities、modality 和 supported_endpoints
GET https://lazu.ai/api/pricing公开(免 Key)实时模型目录与美元/百万 token 价格,适合定时同步脚本
GET https://api.lazu.ai/api/models/catalogBearer Key按该 Key 权限过滤后的可用模型目录

多轮 Agent 会话建议带上稳定的 x-session-id 请求头,让同一会话持续命中同一上游线路并保持 prompt cache 命中率。