# Connect SillyTavern to Unrestricted AI

Use Unrestricted AI as a Custom (OpenAI-compatible) Chat Completion source in SillyTavern. Base URL, API key and model ID in under a minute.

## What you need

An Unrestricted AI API key from https://tryunrestrictedai.com/api/console#keys, plus these values. SillyTavern works with any OpenAI-compatible chat completions endpoint; this is not an official SillyTavern integration.



| Setting | Value |
| --- | --- |
| Custom Endpoint (Base URL) | https://tryunrestrictedai.com/v1 |
| Model | venice-uncensored-1-2 |
| API key | Your key from the console (starts with ua_) |

## Set up SillyTavern



- 1. Open API Connections Click the plug icon in the top bar of SillyTavern.
- 2. Set API to “Chat Completion”
- 3. Set Chat Completion Source to “Custom (OpenAI-compatible)”
- 4. Paste the base URL into “Custom Endpoint (Base URL)”: https://tryunrestrictedai.com/v1 Use the base URL only. SillyTavern adds /chat/completions itself.
- 5. Paste your key into “Custom API Key” The key starts with ua_. Paste it without the word Bearer.
- 6. Pick the model: venice-uncensored-1-2 Choose it from Available Models after connecting, or type the model ID into “Enter a Model ID”.
- 7. Click “Connect”, then “Test Message” A green status dot and a reply to the test message mean you are connected.


## Recommended settings

Model output limit: 4,096 tokens. Context window: 32,768 tokens.

- In AI Response Configuration, keep “Max Response Length (tokens)” at or below the output limit above.
- Keep “Multiple swipes per generation” at 1. Each swipe is a separate request.
- Labels can shift slightly between SillyTavern releases; the Custom (OpenAI-compatible) source is the one to use.


## Troubleshooting





| Status | Code | Fix |
| --- | --- | --- |
| 401 | invalid_api_key | The key is missing, mistyped or revoked. Paste the whole key (it starts with ua_) without “Bearer”, or create a new key in the console. |
| 402 | insufficient_credit · key_budget_exceeded · plan_limit | No usage left. Choose a plan or add credit in Billing, create a key with a higher spending limit, or lower the max response length. |
| 429 | rate_limit | More than 30 requests a minute or 3 at once. Turn off multiple swipes, auto-continue and parallel generations, then wait a minute. |
| 503 | inference_unavailable | The model is not accepting requests right now, or the model ID does not match a live model. Check the model ID and the status page, then retry. |
| 400 / 413 | unknown_model · invalid_request · context_limit | Wrong model ID, a response length above the output limit, or a context that is too long. Copy the model ID again and lower context or response size. |

## Limits and terms

Text chat with streaming is supported. Usage is billed per token from your plan allowance or credit, and each key has its own lifetime spending limit. Our terms and the selected model provider’s terms apply to role-play use the same as any other use: you must be 18 or older and the content must be lawful.




## Sources

- [SillyTavern docs: Chat Completion sources](https://docs.sillytavern.app/usage/api-connections/openai/)

Canonical: https://tryunrestrictedai.com/api/integrations/sillytavern
