关于 ChinaAPI
Read-only ChinaAPI model catalogue, price snapshot, cost estimates and request recipes.
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
服务地址
https://api.chinaapi.ai/mcp一键复制安装命令
Claude CodeTerminal
claude mcp add --transport http ai-chinaapi-chinaapi https://api.chinaapi.ai/mcpCursor.cursor/mcp.json
{"mcpServers":{"ai-chinaapi-chinaapi":{"type":"http","url":"https://api.chinaapi.ai/mcp"}}}在 Cursor 中打开VS Code.vscode/mcp.json
{"servers":{"ai-chinaapi-chinaapi":{"type":"http","url":"https://api.chinaapi.ai/mcp"}}}在 VS Code 中打开Claude Desktopclaude_desktop_config.json
{"mcpServers":{"ai-chinaapi-chinaapi":{"type":"http","url":"https://api.chinaapi.ai/mcp"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"ai-chinaapi-chinaapi":{"serverUrl":"https://api.chinaapi.ai/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
4| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| model | string | 是 | 由 chinaapi_list_models 返回的区分大小写的精确模型 ID。 |
| images | integer | 否 | image_n 计量项的图像数量。 |
| requests | integer | 否 | per_call 计量项的请求数。 |
| characters | integer | 否 | input 计量项的字符数(按字符计费的模型)。 |
| input_tokens | integer | 否 | input 计量项的 token 数(按 token 计费的模型)。 |
| audio_seconds | integer | 否 | input 计量项的音频秒数(按 audio_duration 计费的模型)。 |
| output_tokens | integer | 否 | output 计量项的 token 数(按 token 计费的模型)。 |
| video_seconds | integer | 否 | video_second 计量项的秒数。 |
| context_tokens | integer | 否 | 用于选择上下文长度档位的输入上下文长度。仅适用于档位取决于上下文长度的模型;默认值为输入 token 数和缓存 token 数。 |
| cache_read_tokens | integer | 否 | cache_read 计量项的 token 数(按 token 计费的模型)。 |
| audio_input_tokens | integer | 否 | audio_input 计量项的 token 数(按 token 计费的模型)。 |
| cache_write_tokens | integer | 否 | cache_write 计量项的 token 数(按 token 计费的模型)。 |
| image_input_tokens | integer | 否 | image_input 计量项的 token 数(按 token 计费的模型)。 |
| audio_output_tokens | integer | 否 | audio_output 计量项的 token 数(按 token 计费的模型)。 |
| image_output_tokens | integer | 否 | image_output 计量项的 token 数(按 token 计费的模型)。 |
| cache_write_1h_tokens | integer | 否 | 对于按 token 计费的模型,cache_write_1h 计量项的 token 数量。 |
详细介绍
维护者还没有提供详细介绍,可以先查看代码仓库中的 README。
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。