Kimi For Coding Setup

Configure Kimi For Coding in Chatbox with a custom endpoint and model ID, then check model access and context limits.

Model access

Use the models and context limits listed in your Kimi Code console. Kimi Code subscriptions and Moonshot API billing are separate; use the key issued for this endpoint.

Prepare Your Credentials

  1. Create and save an API Key in the Kimi Code Console.
  2. Confirm that your membership allows the model you plan to use.

Add the Kimi Provider

  1. Open Settings and select Model Provider.
💡
On mobile, tap the menu in the top-left corner to expand the sidebar before opening Settings.
  1. Click Add at the bottom of the provider list.
  2. Select Add Custom Provider.
  3. Enter a name such as Kimi, and select OpenAI API Compatible as the API mode.
  4. Return to the provider settings and enter:
SettingValue
API KeyThe key created in Kimi Code Console
API Hosthttps://api.kimi.com/coding/v1
API Path/chat/completions
Kimi provider settings entry point (Desktop)
Open Kimi provider settings
Kimi Model Provider settings (Desktop)
Open the provider list
Add a custom Kimi provider (Desktop)
Add a custom provider
Kimi API configuration (Desktop)
Enter Kimi API settings
Kimi model provider configuration (Desktop)
Finish configuring the Kimi provider

Add a Model

The screenshots illustrate the model editor. Use the exact model ID and limits from your provider console, which may differ from the examples shown.

Scroll to Models, click New, and enter the Model ID, Display Name, and Context Window. Copy the exact Model ID and supported context window from the Kimi Code console. Test the model and save it.

Kimi model editor (Desktop)
Enter the Kimi model details
Kimi model settings (Desktop)
Review Kimi model settings
Save the Kimi model (Desktop)
Save the configured model

Enable the Kimi For Coding Model

Select the configured model from the model list and send a message to start using it.

Use Kimi For Coding in Chatbox (Desktop)
Start chatting with Kimi For Coding

Troubleshooting

  • For a failed model test, check the API Key, https://api.kimi.com/coding/v1, network access, and your membership permissions.
  • For context errors, use the context limit granted to your account and reduce Maximum Output Tokens.

Related guides

All providers · Choose a provider · Connection troubleshooting

Provider reference

Kimi For Coding