# Add an OpenAI-Compatible Provider in Kilo Code

In Kilo Code, open Settings → Providers → Custom provider and choose OpenAI Compatible. Set Base URL to `https://api.promptavenue.com/v1`, then enter your PromptAvenue API key and an Uncensored model ID. Select the model in Ask mode and check that `typeof 42` returns `"number"`.

[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=kilo-code) with API balance.
- VS Code with Kilo Code.
- A sample workspace for the first chat.

## 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. Add an OpenAI-compatible custom provider in Kilo Code

1. Open **Settings → Providers → Custom provider**.
2. Set **Provider ID** to `promptavenue` and **Display name** to **PromptAvenue**.
3. Under **Provider API**, choose **OpenAI Compatible**. Set **Base URL** to `https://api.promptavenue.com/v1` and paste your PromptAvenue key in **API key**.
4. Under **Models**, select `deepseek-v4.1-flash-uncensored` or enter that ID manually. Choose **Submit**.

## 3. Verify the connection in Ask mode

In the extension you're setting up, select the PromptAvenue model in a new Ask session. Send the following prompt.

> In JavaScript, what does `typeof 42` return? Answer in one sentence.

Expect a reply saying the expression returns the string `"number"`.

## Common errors

| Symptom | What to check |
| --- | --- |
| Authentication error | Open the provider profile and check that its API key is the one created in PromptAvenue. |
| Model missing or rejected | Check the base URL and model ID. In Kilo Code, add the model manually if discovery returns an empty list. |
| Balance or rate-limit error | Check the dashboard balance if the error mentions funds. For rate limits, wait before retrying. |
