Cline
API Configuration · OpenAI Compatible
- Base URL
https://api.promptavenue.com/v1- API Key
Your PromptAvenue API key- Model ID
deepseek-v4.1-flash-uncensored
Send a Chat Completions request to https://api.promptavenue.com/v1/chat/completions with curl, your PromptAvenue API key, and an Uncensored model ID. For the OpenAI Python or Node.js SDK, set base_url or baseURL to https://api.promptavenue.com/v1. A successful request returns HTTP 200 and a nonempty choices[0].message.content.
In the PromptAvenue dashboard, open the API keys page and select Create API key. Copy the full key when it appears. In your terminal, paste it when prompted by these commands, then press Enter. The input stays hidden.
printf 'PromptAvenue API key: '
IFS= read -rs PROMPTAVENUE_API_KEY
printf '\n'
export PROMPTAVENUE_API_KEY
Run the example in the same terminal session. Keep the key out of files, browser code, screenshots, and shared logs.
curl --silent --show-error --fail-with-body \
'https://api.promptavenue.com/v1/chat/completions' \
-H "Authorization: Bearer ${PROMPTAVENUE_API_KEY:?Set your PromptAvenue API key first}" \
-H 'Content-Type: application/json' \
--data-raw '{
"model": "deepseek-v4.1-flash-uncensored",
"messages": [
{"role": "user", "content": "What does HTTP 429 mean? Answer in one sentence."}
]
}'
The JSON body makes curl send a POST request. The --fail-with-body option keeps the response body visible on HTTP errors. To display the HTTP status, add --write-out '\nHTTP %{http_code}\n' to the curl command.
Create a virtual environment and install the SDK.
python3 -m venv .venv
. .venv/bin/activate
python -m pip install openai
Save this as hello_pa.py and run python hello_pa.py.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.promptavenue.com/v1",
api_key=os.environ["PROMPTAVENUE_API_KEY"],
)
completion = client.chat.completions.create(
model="deepseek-v4.1-flash-uncensored",
messages=[
{"role": "user", "content": "What does HTTP 429 mean? Answer in one sentence."}
],
)
print(completion.choices[0].message.content)
In a new project folder, run npm init -y and npm install openai. Save this as hello-pa.mjs and run node hello-pa.mjs.
import OpenAI from "openai";
const apiKey = process.env.PROMPTAVENUE_API_KEY;
if (!apiKey) throw new Error("Set PROMPTAVENUE_API_KEY first.");
const client = new OpenAI({
baseURL: "https://api.promptavenue.com/v1",
apiKey,
});
const completion = await client.chat.completions.create({
model: "deepseek-v4.1-flash-uncensored",
messages: [{ role: "user", content: "What does HTTP 429 mean? Answer in one sentence." }],
});
console.log(completion.choices[0].message.content);
Both SDKs append /chat/completions to the base URL. To try GLM with the same prompt, change the model ID to glm-5.3-flash-uncensored.
curl should return HTTP 200 with a JSON body containing a nonempty choices[0].message.content. The Python and Node.js examples print that field. Expect a sentence explaining that HTTP 429 means too many requests in a given time. The wording can vary. Here 429 is the subject of the question. The request itself should succeed.
{
"choices": [{
"message": {
"role": "assistant",
"content": "HTTP 429 means you sent too many requests in a given time."
}
}]
}
401Token not providedAuthorization: Bearer <your API key>.401Invalid token401This token status is unavailable403Insufficient user quota, remaining quota: {{.Remaining}}403Not enough quota to pre-consume for this request: {{.Remaining}} remaining, {{.Required}} requiredmax_tokens lowers the amount reserved.429You have reached the request limit: maximum {{.Max}} requests in {{.Minutes}} minutes503Model {{.Model}} is not configured for any group available to this request503No available channel for model {{.Model}} under group {{.Group}} (distributor)429The current group is at capacity. Please try again later, or upgrade your account for better service.error.message for the reason. Chat Completions returns request_rejected in error.code. Messages includes this code only for pay-as-you-go requests. No charge applies.payg_s3payg_chat_onlyrelay_failed500upstream error: do request failed| Symptom | What to check |
|---|---|
| Missing environment variable | Set PROMPTAVENUE_API_KEY in the terminal where you run the example. |
| Authentication error | Check that the key was created in PromptAvenue and pasted in full. curl sends it after Bearer. |
| Route or model error | Check the model ID character for character. curl uses the full /v1/chat/completions URL. SDK settings end at /v1. |
| Balance or rate-limit error | Read the returned error message. Check the dashboard balance if the error mentions funds. If the request is rate-limited, wait before retrying. |
| Python import or Node.js module error | Install openai in the active Python environment or in the folder with your .mjs file. |
API Configuration · OpenAI Compatible
https://api.promptavenue.com/v1Your PromptAvenue API keydeepseek-v4.1-flash-uncensored
Example provider configuration for DeepSeek V4.1 Flash Uncensored.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"promptavenue": {
"name": "PromptAvenue",
"env": [
"PROMPTAVENUE_API_KEY"
],
"models": {
"deepseek-v4.1-flash-uncensored": {
"name": "DeepSeek V4.1 Flash Uncensored"
}
},
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://api.promptavenue.com/v1"
}
}
}
}
API Connections → Chat Completion → Custom (OpenAI-compatible)
https://api.promptavenue.com/v1Your PromptAvenue API keydeepseek-v4.1-flash-uncensored
Settings → Chat Bot · Custom API · OpenAI Compatible
https://api.promptavenue.com/v1/chat/completionsYour PromptAvenue API keydeepseek-v4.1-flash-uncensored
Uncensored identifies the model variant. DeepSeek V4.1 Flash Uncensored is abliterated. The modification method for GLM-5.3-Flash Uncensored has not been disclosed. Models can still refuse individual requests. The Acceptable Use Policy applies.