SUZENT / 文档
SUZENT 使用手册

Kimi Code

Use your Kimi Code subscription with its own API key.

此页面目前提供英文内容,中文翻译尚未完成。

Use the models in your Kimi Code subscription, Kimi's coding plan, with the API key from its console.

Set up

  1. Get an API key from www.kimi.com/code/console.
  2. Open Settings → Providers. Under Add a provider, find Kimi Code (or type its name in the search box) and click it to open its card.
  3. On the API keys tab, pick your Region (see region choices), then paste the key and click Save.
  4. Click Test connection, then tick the models you want on the Models tab.

Changes save on their own, and Kimi Code then moves up to the providers you have set up.

Region choices

Pick the region your key was created for. It decides where Suzent sends requests.

RegionBase URL
Chinahttps://api.kimi.com/coding/v1
Globalhttps://api.kimi.ai/coding/v1

Custom URL lets you type any other address, such as a proxy.

China and Global accounts are separate, so a key from one won't work with the other.

Settings

FieldEnvironment variableNotes
API KeyKIMI_CODE_API_KEYStarts with sk-.
Base URLKIMI_CODE_BASE_URLFilled in by your Region choice; shown only for Custom URL.

You can set these environment variables before starting Suzent instead of typing the values in. Settings then marks the value Environment. A value you save in the app takes priority over it.

Good to know

A Kimi Code key only works here. For a pay-as-you-go Moonshot key, use Kimi (Moonshot).

在 GitHub 上编辑此页 ↗

本页内容