Get started
Quickstart
Create an account, add prepaid credit, and make your first Chat Completions request with the OpenAI client you already use.
Get a key
- Sign in to your account and open API keys.
- Create a key for your application. Set its model permissions and spending limit.
- 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.
The local development environment uses labelled mock models and test credits. Live inference remains disabled until the operator completes provider authorization and launch configuration.
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://api.yourdomain.com/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://api.yourdomain.com/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}'