# Set a Custom API Base URL in Continue

In Continue’s local `config.yaml`, set `provider: openai`, `apiBase: https://api.promptavenue.com/v1`, and `useResponsesApi: false` for your PromptAvenue Uncensored model. Set the API key, restart VS Code, and select the configured model in Continue Chat. Ask what `[1, 2, 3].length` returns and check for `3`.

[Model pricing](https://promptavenue.com/pricing) · [Run the API quickstart](https://promptavenue.com/docs/quickstart)

## What you need

- A [PromptAvenue account](https://api.promptavenue.com/sign-up?utm_source=docs&utm_medium=guide&utm_campaign=continue) with API balance.
- VS Code with the Continue extension and access to its local `config.yaml`.

## 1. Create a PromptAvenue API key

In the PromptAvenue dashboard, open the API keys page and select **Create API key**. Copy the full key when it appears.

## 2. Configure the OpenAI-compatible provider in `config.yaml`

Set `PROMPTAVENUE_API_KEY` in `~/.continue/.env` on macOS or Linux, or in `%USERPROFILE%\.continue\.env` on Windows. Keep this file out of version control. Replace `PASTE_YOUR_KEY` with your PromptAvenue key.

```dotenv
PROMPTAVENUE_API_KEY=PASTE_YOUR_KEY
```

The `apiBase` option points Continue to the custom API endpoint. Open the active local configuration in Continue. If it already contains models, add the item under the existing `models` list. For a new local configuration, use this example.

```yaml
name: Local PromptAvenue
version: 1.0.0
schema: v1
models:
  - name: PromptAvenue DeepSeek Flash
    provider: openai
    model: deepseek-v4.1-flash-uncensored
    apiBase: https://api.promptavenue.com/v1
    apiKey: ${{ secrets.PROMPTAVENUE_API_KEY }}
    roles:
      - chat
    useResponsesApi: false
```

The `useResponsesApi` setting keeps this model on Chat Completions. Save the files and restart VS Code so Continue can load the key.

## 3. Verify the connection in Continue Chat

Open a new Continue chat, select **PromptAvenue DeepSeek Flash**, and send the following question.

> What does `[1, 2, 3].length` return in JavaScript? Answer in one sentence.

Expect a reply that says the result is `3`.

## Common errors

| Symptom | What to check |
| --- | --- |
| Model missing from Chat | Check that Continue is using the local configuration you edited and that the model has the `chat` role. |
| Authentication error | Check the secret name in both files and restart VS Code after saving the key. |
| Route or model error | Check that `apiBase` ends in `/v1`, `useResponsesApi` is `false`, and the model ID matches the YAML example. |
| Balance or rate-limit error | Check the dashboard balance if the error mentions funds. For rate limits, wait before retrying. |
