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

# TRAE

> Enter DreamTo's endpoint and API key under Settings → Models → Add Model in TRAE to use custom models.

[TRAE](https://www.trae.ai) is an AI-native IDE from ByteDance that supports adding custom models. DreamTo connects using the OpenAI Chat Completions format.

## Prerequisites

* A recent TRAE version (3.5.51 or later) that supports a custom request URL. Older versions only offer built-in providers, so upgrade first.
* An API key created on the **API Keys** page of the [DreamTo console](https://www.dreamto.ai/console).
* A Chat Completions model ID, such as `deepseek-v4.1-flash-1017` or `gpt-6.2-sol`.

## Setup

**1. Open Add Model**

Go to **Settings → Models → Add Model** and choose **Custom Configuration**.

**2. Fill in the configuration**

| Field | Value |
| - | - |
| API Format | OpenAI Chat Completions |
| Full URL | Off |
| Custom Request URL | `https://api.dreamto.ai/v1` (no trailing `/`) |
| API Key | Your DreamTo API key (`sk-xxxx`) |
| Model ID | e.g. `deepseek-v4.1-flash-1017` |

With Full URL off, TRAE appends `/chat/completions` automatically; with Full URL on, enter `https://api.dreamto.ai/v1/chat/completions`. Set the multimodal toggle according to the model's capabilities. Click **Add Model** to save.

**3. Select it in chat**

Open the chat panel, click the model selector below the input box, **turn off Auto Mode**, select the model you just added, and send a test message.

> [!WARNING]
>
> * Enter the full model ID from the Model Marketplace, not the display name.
> * This configuration uses the OpenAI Chat Completions format, so use GPT, DeepSeek, Kimi, GLM and similar models. For Claude models, use a TRAE configuration that supports the Anthropic format (if available).
> * With Auto Mode on, TRAE may switch to another model automatically, so turn it off while testing.

## FAQ

> [accordion] 401
>
> Make sure the API key is complete with no extra spaces.

> [accordion] 404 / model not found
>
> Check that the Full URL toggle matches the URL you entered: with it off, use `https://api.dreamto.ai/v1`; with it on, include `/v1/chat/completions`. The model ID must match the [Model Marketplace](https://www.dreamto.ai/models).

> [accordion] Custom Request URL is missing
>
> Your TRAE version is too old. Upgrade to 3.5.51 or later.

> [!NOTE]
>
> This page is based on the TRAE 3.5.x interface; menu names may change in later versions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.