PromptAvenue Uncensored API Documentation

PromptAvenue request examples and settings for OpenAI-compatible clients.

Markdown

PromptAvenue supports OpenAI-compatible Chat Completions. Use https://api.promptavenue.com/v1 as base_url in Python or baseURL in Node.js. Set PROMPTAVENUE_API_KEY in your terminal before running an example. See the Quickstart for SDK installation and API key setup.

curl

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."}
    ]
  }'

Python (OpenAI SDK)

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)

JavaScript (OpenAI SDK for Node.js)

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);

PromptAvenue uses API key authentication (apiKey). Create a key in the PromptAvenue dashboard (see Create an API key) and send it over HTTPS. Browser cookies are ignored on /v1/* routes.

ScopeAccepted credential
Auth type (public-apis)apiKey
All API routes (/v1/chat/completions, /v1/models, /v1/messages)Authorization: Bearer <API_KEY>
Anthropic Messages (/v1/messages)Also accepts x-api-key: <API_KEY> (with anthropic-version); stripped on other /v1/* routes

Cross-origin browser requests are supported (CORS: Yes) on the public /v1/* API endpoints. Keep API keys out of public frontend bundles unless end users supply their own keys locally.

SettingBehavior
CORS support (public-apis)Yes
Allowed routes and methodsGET, OPTIONS on /v1/models; POST, OPTIONS on /v1/chat/completions and /v1/messages
Preflight (OPTIONS)HTTP 204 with Access-Control-Allow-Origin: *, Access-Control-Allow-Methods: GET, POST, OPTIONS, Access-Control-Max-Age: 86400
Allowed request headers (Access-Control-Allow-Headers)Authorization, Content-Type, Accept, X-Api-Key, Anthropic-Version, Anthropic-Beta, HTTP-Referer, X-Title
Response headers (GET / POST)Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Retry-After, Access-Control-Allow-Credentials: true