Documentation
Developer Guides
Integration guides, SDK quickstarts, and API references.
Getting started
Base URL switches, Postman collection, and quickstarts to get live fast.
OpenAI compatibility (base URL switch)
Switch your OpenAI client to abliteration.ai by changing the base URL and API key. OpenAI-compatible /v1/chat/completions requests.
Compatibility Matrix
Compatibility overview of popular SDKs and frameworks that work with abliteration.ai, with links to ready-to-run guides.
Postman collection and OpenAPI spec
Run the abliteration.ai API in Postman, download the collection/environment, and import the OpenAPI schema into tooling.
Python SDK quickstart
Use the OpenAI Python SDK with abliteration.ai by setting base_url and api_key. OpenAI-compatible chat completions.
Node.js SDK quickstart
Use the OpenAI Node SDK with abliteration.ai by setting baseURL and apiKey. OpenAI-compatible chat completions.
Frameworks & SDKs
Plug abliteration.ai into popular AI tooling and edge runtimes.
LangChain integration
Connect LangChain to abliteration.ai with a base URL and API key. Use ChatOpenAI against an OpenAI-compatible endpoint.
LlamaIndex integration
Point LlamaIndex's OpenAI LLM to abliteration.ai by setting api_base and api_key. OpenAI-compatible chat completions.
Vercel AI SDK integration
Use the Vercel AI SDK OpenAI-compatible provider with abliteration.ai. Configure baseURL and apiKey once.
Cloudflare Workers integration
Call abliteration.ai from a Cloudflare Worker using fetch. Store your API key in env and call /v1/chat/completions.
Integrations
Production-ready examples for web frameworks, runtimes, and app stacks.
Next.js integration
Call abliteration.ai from a Next.js Route Handler with a minimal fetch wrapper. OpenAI-compatible /v1/chat/completions.
FastAPI integration
Proxy abliteration.ai through FastAPI with an async httpx client. OpenAI-compatible chat completions.
Spring Boot integration
Send OpenAI-compatible chat completions from Spring Boot using WebClient.
Bun integration
Call the OpenAI-compatible /v1/chat/completions endpoint from Bun with fetch.
Cloud Run integration
Deploy a minimal Cloud Run service that proxies prompts to abliteration.ai.
AWS Lambda integration
Call abliteration.ai from AWS Lambda with a minimal handler and fetch.
SillyTavern Integration Guide
How to use abliteration.ai as a developer-controlled, less-censored backend for SillyTavern roleplay.
Uncensored LLM for PHP & Laravel
How to use abliteration.ai with PHP. A drop-in replacement for OpenAI in Laravel applications.
Uncensored LLM for Ruby on Rails
Call the OpenAI-compatible /v1/chat/completions endpoint from Ruby or Rails with your abliteration.ai API key.
Uncensored LLM for Go
Send OpenAI-compatible chat completions from Go by pointing your HTTP client at abliteration.ai.
Uncensored LLM API for Rust
Call the OpenAI-compatible /v1/chat/completions endpoint from Rust using reqwest.
Uncensored AI for Unity Games
Send OpenAI-compatible chat completions from Unity with UnityWebRequest.
Uncensored LLM for iOS
Use URLSession in Swift to call the OpenAI-compatible /v1/chat/completions endpoint.
Uncensored AI for Java
Send OpenAI-compatible chat completions from Java using java.net.http.HttpClient.
Core API
Streaming, vision, and platform behavior you need before shipping.
Streaming chat completions
Stream chat completions with abliteration.ai. Set stream: true and iterate over delta chunks.
Vision and multimodal inputs
Send images and text to vision-capable models using the OpenAI-compatible message content array.
Rate limits and retries
Learn how rate limits work and how to implement backoff, retries, and concurrency control.
Use cases
Roleplay, interactive entertainment, and domain-specific guides.
More docs
Additional references and guides that don't fit elsewhere.
abliterated-model
Model specs and benchmark scores for abliterated-model.
Does abliteration ruin models? A technical explanation
Technical explanation of why abliteration does not ruin models, covering refusal vector ablation, model integrity, and LLM performance validation.
How to use LangChain with an OpenAI-compatible endpoint (Python)
LangChain integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use LangChain with an OpenAI-compatible endpoint (JavaScript)
LangChain integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use LlamaIndex with an OpenAI-compatible endpoint (Python)
LlamaIndex integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use LlamaIndex with an OpenAI-compatible endpoint (TypeScript)
LlamaIndex integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Vercel AI SDK with an OpenAI-compatible endpoint (TypeScript)
Vercel AI SDK integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Vercel AI SDK with an OpenAI-compatible endpoint (JavaScript)
Vercel AI SDK integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use OpenAI SDK with an OpenAI-compatible endpoint (Python)
OpenAI SDK integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use OpenAI SDK with an OpenAI-compatible endpoint (JavaScript)
OpenAI SDK integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use LiteLLM with an OpenAI-compatible endpoint (Python)
LiteLLM integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Haystack with an OpenAI-compatible endpoint (Python)
Haystack integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Semantic Kernel with an OpenAI-compatible endpoint (Python)
Semantic Kernel integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Semantic Kernel with an OpenAI-compatible endpoint (C#)
Semantic Kernel integration guide for C#. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Semantic Kernel with an OpenAI-compatible endpoint (Java)
Semantic Kernel integration guide for Java. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AutoGen with an OpenAI-compatible endpoint (Python)
AutoGen integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use CrewAI with an OpenAI-compatible endpoint (Python)
CrewAI integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Next.js with an OpenAI-compatible endpoint (TypeScript)
Next.js integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Next.js with an OpenAI-compatible endpoint (JavaScript)
Next.js integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Express with an OpenAI-compatible endpoint (JavaScript)
Express integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Express with an OpenAI-compatible endpoint (TypeScript)
Express integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use FastAPI with an OpenAI-compatible endpoint (Python)
FastAPI integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Django with an OpenAI-compatible endpoint (Python)
Django integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Flask with an OpenAI-compatible endpoint (Python)
Flask integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use NestJS with an OpenAI-compatible endpoint (TypeScript)
NestJS integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use SvelteKit with an OpenAI-compatible endpoint (TypeScript)
SvelteKit integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use SvelteKit with an OpenAI-compatible endpoint (JavaScript)
SvelteKit integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Nuxt with an OpenAI-compatible endpoint (TypeScript)
Nuxt integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Nuxt with an OpenAI-compatible endpoint (JavaScript)
Nuxt integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Remix with an OpenAI-compatible endpoint (TypeScript)
Remix integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Remix with an OpenAI-compatible endpoint (JavaScript)
Remix integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Ruby on Rails with an OpenAI-compatible endpoint (Ruby)
Ruby on Rails integration guide for Ruby. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Laravel with an OpenAI-compatible endpoint (PHP)
Laravel integration guide for PHP. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Spring Boot with an OpenAI-compatible endpoint (Java)
Spring Boot integration guide for Java. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use ASP.NET Core with an OpenAI-compatible endpoint (C#)
ASP.NET Core integration guide for C#. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Go net/http with an OpenAI-compatible endpoint (Go)
Go net/http integration guide for Go. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Gin with an OpenAI-compatible endpoint (Go)
Gin integration guide for Go. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Fiber with an OpenAI-compatible endpoint (Go)
Fiber integration guide for Go. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Deno with an OpenAI-compatible endpoint (TypeScript)
Deno integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Deno with an OpenAI-compatible endpoint (JavaScript)
Deno integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Bun with an OpenAI-compatible endpoint (TypeScript)
Bun integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Bun with an OpenAI-compatible endpoint (JavaScript)
Bun integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Cloudflare Workers with an OpenAI-compatible endpoint (TypeScript)
Cloudflare Workers integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Cloudflare Workers with an OpenAI-compatible endpoint (JavaScript)
Cloudflare Workers integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AWS Lambda with an OpenAI-compatible endpoint (Python)
AWS Lambda integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AWS Lambda with an OpenAI-compatible endpoint (JavaScript)
AWS Lambda integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AWS Lambda with an OpenAI-compatible endpoint (TypeScript)
AWS Lambda integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AWS Lambda with an OpenAI-compatible endpoint (Go)
AWS Lambda integration guide for Go. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AWS Lambda with an OpenAI-compatible endpoint (Java)
AWS Lambda integration guide for Java. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AWS Lambda with an OpenAI-compatible endpoint (C#)
AWS Lambda integration guide for C#. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use AWS Lambda with an OpenAI-compatible endpoint (Ruby)
AWS Lambda integration guide for Ruby. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Azure Functions with an OpenAI-compatible endpoint (Python)
Azure Functions integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Azure Functions with an OpenAI-compatible endpoint (JavaScript)
Azure Functions integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Azure Functions with an OpenAI-compatible endpoint (TypeScript)
Azure Functions integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Azure Functions with an OpenAI-compatible endpoint (C#)
Azure Functions integration guide for C#. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use GCP Cloud Functions with an OpenAI-compatible endpoint (Python)
GCP Cloud Functions integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use GCP Cloud Functions with an OpenAI-compatible endpoint (JavaScript)
GCP Cloud Functions integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use GCP Cloud Functions with an OpenAI-compatible endpoint (TypeScript)
GCP Cloud Functions integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use GCP Cloud Functions with an OpenAI-compatible endpoint (Go)
GCP Cloud Functions integration guide for Go. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Supabase Edge Functions with an OpenAI-compatible endpoint (TypeScript)
Supabase Edge Functions integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Supabase Edge Functions with an OpenAI-compatible endpoint (JavaScript)
Supabase Edge Functions integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Netlify Functions with an OpenAI-compatible endpoint (JavaScript)
Netlify Functions integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Netlify Functions with an OpenAI-compatible endpoint (TypeScript)
Netlify Functions integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Vercel Serverless with an OpenAI-compatible endpoint (JavaScript)
Vercel Serverless integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Vercel Serverless with an OpenAI-compatible endpoint (TypeScript)
Vercel Serverless integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Vercel Serverless with an OpenAI-compatible endpoint (Python)
Vercel Serverless integration guide for Python. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Fastify with an OpenAI-compatible endpoint (JavaScript)
Fastify integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Fastify with an OpenAI-compatible endpoint (TypeScript)
Fastify integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Hono with an OpenAI-compatible endpoint (JavaScript)
Hono integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Hono with an OpenAI-compatible endpoint (TypeScript)
Hono integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Astro with an OpenAI-compatible endpoint (JavaScript)
Astro integration guide for JavaScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
How to use Astro with an OpenAI-compatible endpoint (TypeScript)
Astro integration guide for TypeScript. Connect to an OpenAI-compatible endpoint with a base URL swap and keep the same request schema.
OpenAI API base URL not working
Fix base URL issues when calling an OpenAI-compatible endpoint.
401 unauthorized OpenAI-compatible
Resolve authentication errors when using an OpenAI-compatible API.
Streaming chunks not parsing
Fix broken SSE parsing when streaming OpenAI-compatible responses.
Tool calling schema invalid
Validate tool calling payloads for OpenAI-compatible endpoints.
Migrate from OpenAI to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from OpenAI in minutes with OpenAI-compatible requests.
Migrate from Azure OpenAI to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Azure OpenAI in minutes with OpenAI-compatible requests.
Migrate from Anthropic to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Anthropic in minutes with OpenAI-compatible requests.
Migrate from Google Gemini to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Google Gemini in minutes with OpenAI-compatible requests.
Migrate from Cohere to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Cohere in minutes with OpenAI-compatible requests.
Migrate from Mistral to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Mistral in minutes with OpenAI-compatible requests.
Migrate from Perplexity to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Perplexity in minutes with OpenAI-compatible requests.
Migrate from Groq to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Groq in minutes with OpenAI-compatible requests.
Migrate from Together AI to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Together AI in minutes with OpenAI-compatible requests.
Migrate from Fireworks AI to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Fireworks AI in minutes with OpenAI-compatible requests.
Migrate from DeepSeek to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from DeepSeek in minutes with OpenAI-compatible requests.
Migrate from xAI to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from xAI in minutes with OpenAI-compatible requests.
Migrate from OpenRouter to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from OpenRouter in minutes with OpenAI-compatible requests.
Migrate from AWS Bedrock to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from AWS Bedrock in minutes with OpenAI-compatible requests.
Migrate from Hugging Face Inference to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Hugging Face Inference in minutes with OpenAI-compatible requests.
Migrate from Replicate to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Replicate in minutes with OpenAI-compatible requests.
Migrate from AI21 to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from AI21 in minutes with OpenAI-compatible requests.
Migrate from Aleph Alpha to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Aleph Alpha in minutes with OpenAI-compatible requests.
Migrate from NVIDIA NIM to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from NVIDIA NIM in minutes with OpenAI-compatible requests.
Migrate from IBM watsonx to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from IBM watsonx in minutes with OpenAI-compatible requests.
Migrate from Vertex AI to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Vertex AI in minutes with OpenAI-compatible requests.
Migrate from Databricks to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Databricks in minutes with OpenAI-compatible requests.
Migrate from Cerebras to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from Cerebras in minutes with OpenAI-compatible requests.
Migrate from AnyScale to an OpenAI-compatible endpoint
Swap base URL and API key to migrate from AnyScale in minutes with OpenAI-compatible requests.
OpenAI-compatible endpoints supported
Compatibility matrix of endpoints and features (chat, streaming, embeddings, responses, tool calling).
OpenAI-compatible rate limit matrix
Understand rate limits, headers, and retry guidance for OpenAI-compatible APIs.
OpenAI-compatible example payloads
Copy-ready request payloads for chat, streaming, and tool calling schemas.