LLM Providers

Moonshot Kimi

Connect Kimi Code subscriptions or Moonshot API keys, with explicit international and China endpoints.

Fabric Agents supports Kimi Code membership keys and Moonshot Open Platform API keys. Choose the service and region where you created your key.

Which preset to pick

PresetPi API base URLAccount
Kimi Code (International)https://api.kimi.ai/coding/v1Kimi Code membership outside China, including US users
Kimi Code (China)https://api.kimi.com/coding/v1Kimi Code membership in China
Moonshot AIhttps://api.moonshot.ai/v1International Open Platform, metered API usage
Moonshot AI (CN)https://api.moonshot.cn/v1China Open Platform, metered API usage

Kimi documents these as international/overseas and China endpoints; the international endpoint is not a promise of US data residency. See the official protocol and regional endpoint table and account/key guidance.

Kimi Code subscription keys and Moonshot metered API keys belong to different services. Use a key from the matching console. A Kimi website subscription does not make an Open Platform key a subscription key.

Connect in Fabric Agents

  1. Open Settings → AI → Connections → Add and choose API-key setup.
  2. Select the matching preset from the table above. For an international Kimi Code account, select Kimi Code (International).
  3. Paste the key created in your service's API-key console.
  4. Choose models available to your account, then test and save the connection.

The saved endpoint identifies the region. Fabric does not infer the region from the key or retry it against another regional host. An existing Kimi connection without an explicit endpoint keeps the SDK's China default. To use an international account, edit the connection, select Kimi Code (International), and supply the corresponding key.

Protocols and existing connections

Pi-backed Kimi Code connections use the SDK's native OpenAI Chat Completions transport. The full international request URL is https://api.kimi.ai/coding/v1/chat/completions; China's equivalent uses api.kimi.com.

Kimi also supports Anthropic-compatible clients at https://api.kimi.ai/coding/ and https://api.kimi.com/coding/. The Claude-compatible API-key setup uses these bases. When an older saved Pi connection contains one of those official /coding bases, Fabric adds /v1 for its Chat Completions transport and keeps the selected host.

Models

Kimi Code and Moonshot Open Platform use different model IDs. For example, the Code catalog includes k3.1-pro, k3, and kimi-for-coding; Open Platform IDs may use names such as kimi-k3. Model access depends on your account and plan.

Fabric's Pi model catalog supplies protocol, context, tool-calling and reasoning capabilities. The retired Fabric-only kimi-for-coding descriptor is no longer used. Existing saved model IDs remain unchanged; select a currently available model if your account no longer offers one.

Troubleshooting

401 or invalid key — check both service and region, then confirm the key is active in that service's console. Changing a Moonshot key's URL to a Kimi Code endpoint does not change its entitlement.

404 or model unavailable — verify the selected model is offered to your account. For a manually entered Chat Completions endpoint, include /coding/v1.

Quota or rate limit — check usage in the console that issued the key. Kimi Code membership quota and Moonshot metered usage are separate.

On this page