# 通过API/SDK调用

### AI 模型计费策略 <a href="#ai-mo-xing-ji-fei-ce-lve" id="ai-mo-xing-ji-fei-ce-lve"></a>

**基岩AI API** 与通过 **网页** 使用的计费方式是相同的 (相同接口)。

详见[ **AI模型计费**](https://docs.ai.wujiyan.cc/pricing)

### 获取 API Key <a href="#huo-qu-api-key" id="huo-qu-api-key"></a>

{% hint style="danger" %}
请妥善保管您的 API Key！请不要在公开环境（如 GitHub 公开仓库）中泄露 API Key！
{% endhint %}

在 基岩AI 登录后，您可以在右上角头像下拉菜单中，生成 API Key。复制 API Key，这将会在下面的介绍中使用。

### 下一步 <a href="#xia-yi-bu" id="xia-yi-bu"></a>

[Python SDK](https://github.com/Deeptrain-Community/chatnio-api-python)

[JavaScript SDK](https://github.com/Deeptrain-Community/chatnio-api-node) (for browser)

[Golang SDK](https://github.com/Deeptrain-Community/chatnio-api-go)

[Java SDK](https://github.com/hujiayucc/ChatNio-SDK-Java) (感谢 [@hujiayucc](https://github.com/hujiayucc))
