[![apistore.cloud logo](https://apistore.cloud/logo-mark.png) apistore.cloud](https://apistore.cloud/zh/)

[登录](https://apistore.cloud/login)[获取 API 密钥](https://apistore.cloud/signup)

# 在 Claude Code 中使用 GPT、Gemini、DeepSeek、Seedance 和 Seedream

API Store 提供托管的 MCP 服务器。将它添加到 Claude Code 后，你的智能体无需离开终端，就能生成图像和视频，或请 DeepSeek 给出另一种意见。Claude Code 仍用它自己的模型进行对话；API Store 的模型是它调用的工具。

## 开始之前

- 已安装 Claude Code
- 一个 API Store 密钥（以 sk- 开头）和一定余额

## 步骤

1. 运行下方命令，将 sk-... 替换为你的密钥。
2. 启动 Claude Code，运行 /mcp 检查 apistore 是否已连接。
3. 提出一个需要用到工具的请求，例如：“用 Seedance 2.0 mini 生成一段 5 秒的 720p 视频，内容是湖面上的一只纸船。”

需要填写的值

```
claude mcp add --transport http apistore https://api.apistore.cloud/mcp \
  --header "Authorization: Bearer sk-..."
```

https://api.apistore.cloud/mcp

## 工具能做什么

- list_models：在售的模型及你的价格
- chat：向模型发送提示词或 messages 并获取回答
- create_image：生成图像并获取链接
- create_video：发起视频任务并获取其 id
- get_video：视频的状态，完成后获取文件链接
- get_balance：你的密钥还可消费的金额

## 费用控制

- 每次工具调用都按正常价格从你的 API Store 余额中扣费。
- 为 Claude Code 单独创建一个设有每日消费上限的密钥。
- 视频任务会按可能最长的结果预扣费用，只按实际生成的内容收费。

## 故障排查

- 服务器无法连接。请检查密钥，并确认 URL 以 /mcp 结尾，而不是 /v1。
- 402 insufficient_balance。请充值，或提高该密钥的每日上限。

[获取 API 密钥](https://apistore.cloud/signup)

配置指南: [Cursor](https://apistore.cloud/zh/docs/cursor) · [Cline](https://apistore.cloud/zh/docs/cline) · [LiteLLM](https://apistore.cloud/zh/docs/litellm) · [Docs](https://apistore.cloud/zh/docs)

[![apistore.cloud logo](https://apistore.cloud/logo-mark.png) apistore.cloud](https://apistore.cloud/zh/)

© 2026 apistore.cloud

---

Source: https://apistore.cloud/zh/docs/claude-code
