mcpField
C

ChinaAPI

远程服务
dash.chinaapi.aiAI 与智能体
访问官网

关于 ChinaAPI

Read-only ChinaAPI model catalogue, price snapshot, cost estimates and request recipes.

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://api.chinaapi.ai/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

4
参数类型必填说明
modelstring是由 chinaapi_list_models 返回的区分大小写的精确模型 ID。
imagesinteger否image_n 计量项的图像数量。
requestsinteger否per_call 计量项的请求数。
charactersinteger否input 计量项的字符数(按字符计费的模型)。
input_tokensinteger否input 计量项的 token 数(按 token 计费的模型)。
audio_secondsinteger否input 计量项的音频秒数(按 audio_duration 计费的模型)。
output_tokensinteger否output 计量项的 token 数(按 token 计费的模型)。
video_secondsinteger否video_second 计量项的秒数。
context_tokensinteger否用于选择上下文长度档位的输入上下文长度。仅适用于档位取决于上下文长度的模型;默认值为输入 token 数和缓存 token 数。
cache_read_tokensinteger否cache_read 计量项的 token 数(按 token 计费的模型)。
audio_input_tokensinteger否audio_input 计量项的 token 数(按 token 计费的模型)。
cache_write_tokensinteger否cache_write 计量项的 token 数(按 token 计费的模型)。
image_input_tokensinteger否image_input 计量项的 token 数(按 token 计费的模型)。
audio_output_tokensinteger否audio_output 计量项的 token 数(按 token 计费的模型)。
image_output_tokensinteger否image_output 计量项的 token 数(按 token 计费的模型)。
cache_write_1h_tokensinteger否对于按 token 计费的模型,cache_write_1h 计量项的 token 数量。

详细介绍

维护者还没有提供详细介绍,可以先查看代码仓库中的 README。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。