> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom models

Qoder supports accessing third-party provider model resources via API keys.

<Note>
  **Preset providers include**: Alibaba Cloud Model Studio, DeepSeek, Z.ai, Kimi, MiniMax, Xiaomi MIMO, OpenAI, Google, and OpenRouter

  **Custom providers**: OpenAI Compatible and Anthropic Compatible
</Note>

<Warning>
  **Special Note**:

  Repo Wiki uses a fixed model and is billed separately. When generating, there will be a prompt notifying you of the additional credit consumption.
</Warning>

## Adding Custom Models

<Steps>
  <Step title="Open Qoder Settings">
    Open **Qoder Settings**.
  </Step>

  <Step title="Open the Models panel">
    Select **Models** in the left navigation.
  </Step>

  <Step title="Add a model">
    Click **+ Add**, then choose one of the following configuration methods:

    - **Preset provider**: Select a provider and model, then enter your API key.
    - **Custom Base URL**: Open **Provider** and select **OpenAI Compatible** or **Anthropic Compatible** under **Custom**.
      - For **OpenAI Compatible**, select **Chat Completions API** or **Responses API**.
      - Enter the **Base URL**, **API Key**, and at least one **Model ID**. To configure more models for the same endpoint, click **Add Model ID**.

    <Tip>
      For a preset provider, click **Get API Key** to open its key management page. For a custom provider, enter the exact Base URL supplied by the model service. Qoder displays `https://api.example.com/v1` as an example format.
    </Tip>
  </Step>

  <Step title="Configure model capabilities">
    Click **Next**, then configure the following settings based on the capabilities published by the model provider:

    - **Display name**: Set the name shown for the model in Qoder. The Model ID cannot be changed here.
    - **Context windows**: Select one or more values supported by the model under **Supported Context Windows**, then choose a **Default Context Window** from those values.
    - **Vision**: Enable this capability if the model supports image input.
    - **Thinking Mode**: Enable this capability if the model supports reasoning, then select its supported reasoning effort levels.
  </Step>

  <Step title="Validate and add the model">
    Click **Validate and Add Model**. Qoder validates the connection and saves the model after validation succeeds.
  </Step>

  <Step title="Use the model">
    After configuration, select the configured model in the chat interface to start using it.
  </Step>
</Steps>

## Managing Custom Models

In the "Models" panel, you can perform the following operations on custom models:

| **Operation** | **Description**                             |
| ------------- | ------------------------------------------- |
| Edit          | Update the API key used by the model        |
| Delete        | Remove model, cannot be used after deletion |

## FAQ

### 1. Does using custom models consume Credits?

Custom model fees are billed directly to your provider API account and do not use Qoder Credits. However, Repo Wiki uses a fixed model and consumes Qoder Credits. A prompt appears when generating content.

### 2. How to obtain API keys?

Provider API key URLs:

- **DeepSeek**: [platform.deepseek.com](https://platform.deepseek.com/)
- **GLM**: [open.bigmodel.cn](https://open.bigmodel.cn/)
- **Kimi**: [platform.moonshot.cn](https://platform.moonshot.cn/)
- **MiniMax**: [platform.minimaxi.com](https://platform.minimaxi.com/)
- **Xiaomi MIMO**: [platform.xiaomimimo.com](https://platform.xiaomimimo.com/)
- **Alibaba Cloud Model Studio**: [bailian.console.aliyun.com](https://bailian.console.aliyun.com/)

### 3. What to do if adding a model fails?

Please check the following:

1. Whether the Base URL is complete and the selected compatible protocol and API type match the endpoint
2. Whether the API key is correct with no extra spaces, and has not expired or been disabled
3. Whether the Model ID is correct and accessible to the provider account
4. Whether the provider account has sufficient balance
5. Whether the network connection is normal

### 4. Can I add multiple models from the same provider?

Yes. You can add different versions of models from the same provider or use different API keys.
