# PromptAvenue Uncensored API Documentation

- [OpenAI-Compatible API Quickstart for Uncensored Models](/docs/quickstart.md)
- [Connect SillyTavern to PromptAvenue Uncensored Models](/docs/sillytavern.md)
- [Connect Aider to an OpenAI-Compatible API](/docs/aider.md)
- [Connect Claude Code to the PromptAvenue Messages API](/docs/claude-code.md)
- [Set Up Cline’s OpenAI Compatible Provider](/docs/cline.md)
- [Set a Custom API Base URL in Continue](/docs/continue.md)
- [Set a Custom OpenAI Base URL in Cursor](/docs/cursor.md)
- [Add an OpenAI-Compatible Provider in Kilo Code](/docs/kilo-code.md)
- [Connect an n8n AI Agent to a Custom Chat Model Endpoint](/docs/n8n.md)
- [Connect Open WebUI to the PromptAvenue API](/docs/open-webui.md)
- [Connect Orca’s OpenCode Agent to the PromptAvenue API](/docs/orca.md)

## Authentication

PromptAvenue uses API key authentication (`apiKey`). Create a key in the PromptAvenue dashboard (see [API Quickstart](/docs/quickstart.md)) and send it over HTTPS. Browser cookies are ignored on `/v1/*` routes.

| Scope | Accepted 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 |

## CORS

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.

| Setting | Behavior |
| --- | --- |
| CORS support (`public-apis`) | `Yes` |
| Allowed routes and methods | `GET`, `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` |
