Migration
Migrate from OpenAI to an OpenAI-compatible endpoint
Use the instant migration tool to patch your OpenAI snippets in seconds.
Validate the change with a test vector before routing production traffic.
Quick start
Base URL
Base URL + key swap
- base_url = "PROVIDER_BASE_URL" - api_key = "PROVIDER_KEY" + base_url = "https://api.abliteration.ai/v1" + api_key = "$ABLIT_KEY"
Free preview for 5 messages. Sign up to continue.
Service notes
- Pricing model: Usage-based pricing (~$5 per 1M tokens) billed on total tokens (input + output). See the API pricing page for current plans.
- Data retention: No prompt/output retention by default. Operational telemetry (token counts, timestamps, error codes) is retained for billing and reliability.
- Compatibility: OpenAI-style /v1/chat/completions request and response format with a base URL switch.
- Latency: Depends on model size, prompt length, and load. Streaming reduces time-to-first-token.
- Throughput: Team plans include priority throughput. Actual throughput varies with demand.
- Rate limits: Limits vary by plan and load. Handle 429s with backoff and respect any Retry-After header.
Migration checklist
- Point your client at https://api.abliteration.ai/v1.
- Replace provider keys with ABLIT_KEY.
- Swap model ids to "abliterated-model".
- Run a small prompt before sending production traffic.
Patch existing code
Paste a snippet into the instant migration tool to auto-update base URL, model, and env vars.
Verification payload
Test vector payload
{
"model": "abliterated-model",
"messages": [
{ "role": "user", "content": "Reply with: migration from OpenAI complete." }
],
"temperature": 0.2
}Mini playground
Response will appear here.
Expected output should include migration from OpenAI complete.
Test vector
Expected output should include migration from OpenAI complete.
Request payload
{
"model": "abliterated-model",
"messages": [
{
"role": "user",
"content": "Reply with: migration from OpenAI complete."
}
],
"temperature": 0.2,
"stream": false
}Common errors & fixes
- 401 Unauthorized: Check that your API key is set and sent as a Bearer token.
- 404 Not Found: Make sure the base URL ends with /v1 and you call /chat/completions.
- 400 Bad Request: Verify the model id and that messages are an array of { role, content } objects.
- 429 Rate limit: Back off and retry. Use the Retry-After header for pacing.