To use promptfoo with abliteration.ai, set ABLIT_KEY to your ak_... key and add an abliteration:abliterated-model-large provider to your promptfooconfig.yaml. promptfoo ships a thin wrapper around the OpenAI provider that targets the abliteration.ai chat-completions API.
Install
Set the API key
promptfoo reads the ABLIT_KEY environment variable automatically:
You can also pass apiKey directly in the provider config. Provider config values take precedence over environment variables.
Basic configuration
promptfooconfig.yaml
abliteration:<model> is the default syntax; abliteration:chat:<model> is also supported. Replace abliterated-model-large with any model your account targets — see models.
Reasoning output
abliteration.ai models think before answering (see thinking & reasoning effort). Responses can include reasoning_content, which promptfoo includes in eval outputs by default. Set showThinking: false in the provider config to hide it:
Red teaming
abliterated models have their refusal direction removed, so they no longer decline requests the base model would ordinarily refuse. A red-teaming eval sends prompts a safety-aligned model would typically refuse, caveat, or disclaim — then asserts the output contains no refusal language and substantively answers the question.
The prompt template matters: instruct the model to answer directly and thoroughly, without disclaimers, caveats, or safety warnings. promptfoo interpolates each test’s question var into {{question}}.
You can use the generic openai:chat: provider pointed at abliteration.ai instead of the abliteration: wrapper — both target the same chat-completions API. apiKeyEnvar reads the key from the environment without exposing it in the config:
promptfooconfig.yaml
Run the eval with promptfoo eval, then promptfoo view to open the results dashboard.
Multimodal
abliterated-model-large is text-only. For image inputs, use abliterated-model (see models):
prompt.json
promptfooconfig.yaml
Environment variables
Notes
- The abliteration provider wraps the OpenAI provider, so most OpenAI options work — sampling parameters, structured output, multimodal messages. See OpenAI compatibility for the underlying API.
- Policy rules attached to your API key apply to every promptfoo run. See Policy Gateway.
Last modified on August 1, 2026