Docs
API referenceSign in

Quickstart

Create an account, add prepaid credit, and make your first Chat Completions request with the OpenAI client you already use.

Get a key

  1. Sign in to your account and open API keys.
  2. Create a key for your application. Set its model permissions and spending limit.
  3. Copy the secret when it is shown. Store it in your server's environment.
Environment variables
export UNCENSOREDLABS_API_KEY="ul_..."

# PowerShell
$env:UNCENSOREDLABS_API_KEY = "ul_..."

Add credits

Open Billing / Credits and create a deposit invoice. Credit is available after the payment is verified. A successful return-page visit alone does not confirm a payment.

Your first call

Use your configured API domain and an approved model ID from GET /v1/models. Keep your API key on the server.

POST /v1/chat/completions
curl "https://uncensoredlabs.dev/v1/chat/completions" \
  -H "Authorization: Bearer $UNCENSOREDLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"YOUR_APPROVED_MODEL_ID","messages":[{"role":"user","content":"Hello"}],"max_tokens":256}'

Stream the response

Set stream: true to read response deltas as server-sent events. A completed stream ends with data: [DONE].

Streaming
curl -N "https://uncensoredlabs.dev/v1/chat/completions" \
  -H "Authorization: Bearer $UNCENSOREDLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"YOUR_APPROVED_MODEL_ID","messages":[{"role":"user","content":"Hello"}],"max_tokens":256,"stream":true}'

Next