Skip to main content

Trae

Trae is an AI IDE developed by ByteDance, which features multiple high-quality models and supports one-click switching. Users can integrate MoArk's model resources using API keys (access tokens) in Trae Chat mode, enabling personalized configuration and usage.

Obtain Your Access Token

  1. Log in to the MoArk official website (or register an account if you don't have one).
  2. Navigate to the Dashboard, click Settings in the top-right corner, and select Access Tokens.
  3. Generate a new token and copy it for later use.

How to Switch Models

In the bottom-right corner of the input box, click the current model name to open the model list, then choose the model you want to use.

Hover your mouse over a model name to preview its capabilities. Model Switching

Call Built-in Models

  1. Click the model name in the bottom-right corner of the input box to open the model list window.

  2. In the model list window, scroll to the bottom and click the Add Model button.

    Add Built-in Model

  3. Follow the prompts in the pop-up window to select the service provider "gitee" and the desired model, then enter the previously copied access token as the API key. Click Add to complete the process.

    Confirm Model

Add Other Models

You can also add other models that are not built-in in Trae:

  1. In the Add Model pop-up window, select Use Other Models.

    Use Other Models

  2. Enter the ID of the target model and fill in the corresponding API key. Click Add to complete the process.

    Enter Model ID

  3. Return to the Trae main interface. In the conversation window, you will see the newly added model. Select it to start a chat or generate code.

    Model List