Brutal AI
Get an API keyPrepaid, from $10

Brutal AIModelsGuidesLiteLLM uncensored models: add XField to the SDK or proxy

Setup4 min read

LiteLLM uncensored models: add XField to the SDK or proxy

Prefix the XField model id with openai/, set api_base to the XField base URL and pass your key. That works in the LiteLLM SDK and in the proxy config, so every tool behind the proxy gets abliterated models.

What you need

  • LiteLLM, as the Python SDK (pip install litellm) or as the proxy (pip install 'litellm[proxy]').
  • An XField API key in the environment variable XFIELD_API_KEY. No key yet? Sign up.
  • The base URL https://xfield.cloud.brutal.ai/api/v1. It already ends in /v1.

In Python code

Prefix the model id with openai/ so LiteLLM treats XField as an OpenAI-compatible endpoint, and pass the base URL and key:

import os
import litellm

reply = litellm.completion(
    model="openai/deepseek-v4.1-flash-1017-uncensored",
    api_base="https://xfield.cloud.brutal.ai/api/v1",
    api_key=os.environ["XFIELD_API_KEY"],
    messages=[{"role": "user", "content": "..."}],
)
print(reply.choices[0].message.content)

As a proxy for your team or your agents

The LiteLLM proxy gives every tool one endpoint and one set of model names. Add the XField models to config.yaml:

model_list:
  - model_name: deepseek-uncensored
    litellm_params:
      model: openai/deepseek-v4.1-flash-1017-uncensored
      api_base: https://xfield.cloud.brutal.ai/api/v1
      api_key: os.environ/XFIELD_API_KEY
  - model_name: kimi-uncensored
    litellm_params:
      model: openai/kimi-k3.1-pro-uncensored
      api_base: https://xfield.cloud.brutal.ai/api/v1
      api_key: os.environ/XFIELD_API_KEY
  - model_name: glm-flash-uncensored
    litellm_params:
      model: openai/glm-5.3-flash-uncensored
      api_base: https://xfield.cloud.brutal.ai/api/v1
      api_key: os.environ/XFIELD_API_KEY

Start it with litellm --config config.yaml. Your tools then call the proxy with the short names, for example deepseek-uncensored, and the key stays on the proxy.

Which model to pick

JobModel idWhy
Most coding and agent workdeepseek-v4.1-flash-1017-uncensoredThe most used model on XField: fast, 1M context, cheap once the prompt is cached
Hard agentic coding, very long outputskimi-k3.1-pro-uncensoredMoonshot AI's flagship, up to 922K output tokens; costs more, so use it where it matters
Long reports, a second opinionglm-5.3-uncensored128K output, a different model family
Cheap background work, summariesglm-5.3-flash-uncensoredThe lighter GLM, built for volume
Quick chat and draftsqwen-3.8-27b-uncensoredSmallest and fastest to answer

Context and output limits

Tell Roo Code the limits, otherwise it guesses low and condenses too early. Turn image input on only for models that read images.

Model idContextMax outputReads images
deepseek-v4.1-flash-1017-uncensored1M64KYes
kimi-k3.1-pro-uncensored1M922KYes (and video)
glm-5.3-uncensored1M128KNo
glm-5.3-flash-uncensored1M32KYes
qwen-3.8-27b-uncensored128K32KYes

Context and output limits

Model idContextMax outputReads images
deepseek-v4.1-flash-1017-uncensored1M64KYes
kimi-k3.1-pro-uncensored1M922KYes (and video)
glm-5.3-uncensored1M128KNo
glm-5.3-flash-uncensored1M32KYes
qwen-3.8-27b-uncensored128K32KYes

Send images only to models that read them. GLM 5.3 rejects image input.

Check the key and URL first

If this returns a JSON list of models, the base URL and key are right and any remaining problem is in the tool's settings:

curl -sS "https://xfield.cloud.brutal.ai/api/v1/models" -H "Authorization: Bearer $XFIELD_API_KEY"

Troubleshooting

  • Not Found. The api_base must end in /api/v1.
  • LiteLLM does not know the provider. The model needs the openai/ prefix in front of the XField id.
  • 401 Unauthorized. The key is empty or wrong; on the proxy, check that XFIELD_API_KEY is set in its environment.
  • Model not found. The XField id must match exactly, including -uncensored.

Why an uncensored model behind LiteLLM

Stock models stop mid-task on legitimate work: an exploit proof of concept for your own bug bounty, a fuzzing harness, malware triage, a detection rule that has to describe the attack it detects. In an agent loop one refusal breaks the whole run. Our models are abliterated: the direction in the weights that leads to refusals is removed, the rest of the model stays the same. How abliteration works.

More setups

Get a key

XField is the model API of Brutal AI in Vienna. It is hosted in the EU, does not store prompts or completions (data handling), and use is bound by our acceptable use policy. Sign up.

Access

Create an account on XField, add prepaid credits from $10, create a key and call any model. One key works for all of them.

Uncensored models don't change what is allowed: you stay responsible for use and results under our acceptable use policy.

More guides