MIGRATION GUIDE • 60 SECONDS

Switch from OpenAI
in 60 seconds

Same OpenAI SDK. Just change base_url and api_key. Get 104 models for $5.99/mo flat instead of $20-200/mo per-token. EU-hosted, GDPR compliant.

Get free brnl- keySee savings

Step 1: Get your free key (15 sec)

Sign up at app.brainiall.com/quickstart with Google. No credit card. Get brnl-... key on dashboard.

Step 2: Change 2 lines in your code (15 sec)

Python

from openai import OpenAI

# Before:
# client = OpenAI(api_key="sk-...")

# After (only 2 lines change):
client = OpenAI(
    base_url="https://api.brainiall.com/v1",  # ← changed
    api_key="brnl-..."  # ← changed
)

# Everything else stays the same:
response = client.chat.completions.create(
    model="claude-sonnet-4-6",  # or gpt-5, gemini-3-pro, deepseek-v3, llama-4-maverick
    messages=[{"role": "user", "content": "Hello!"}]
)

JavaScript / TypeScript

import OpenAI from "openai";

// Before:
// const client = new OpenAI({ apiKey: "sk-..." });

// After:
const client = new OpenAI({
  baseURL: "https://api.brainiall.com/v1",  // ← changed
  apiKey: "brnl-..."  // ← changed
});

const response = await client.chat.completions.create({
  model: "claude-sonnet-4-6",
  messages: [{ role: "user", content: "Hello!" }]
});

Step 3: Test it (15 sec)

Run any existing OpenAI call. The SDK works identically. chat.completions, embeddings, images, audio.transcriptions all forward to 104 models.

What carries over from OpenAI?

✅ Same SDK (openai package)
✅ Same .chat.completions API
✅ Same .embeddings API
✅ Same .images.generate API
✅ Streaming (SSE) identical
✅ Tool/function calling JSON schema
✅ LangChain/LlamaIndex compat
✅ Cursor/Continue.dev compat

Model name mapping (OpenAI → Brainiall)

OpenAI model nameBrainiall equivalentBonus alternatives
gpt-4o / gpt-5gpt-5claude-sonnet-4-6, gemini-3-pro
gpt-4o-mini / gpt-5-minigpt-5-miniclaude-haiku-4-5, deepseek-v3
o1 / o3-minio3-minideepseek-r1, qwen-qwq
text-embedding-3-smalltext-embedding-3-smallcohere-embed-multilingual-v3
dall-e-3gpt-5-imageflux-2-klein, seedream-4-5

Why people switch from OpenAI to Brainiall

💰 Cost

$5.99/mo flat replaces $20-200+/mo per-token bills. 76-98% savings for high-volume.

🌐 Multi-model

Test Claude vs GPT vs Gemini in 1 line of code change. Pick best per task.

🇪🇺 EU compliance

Frankfurt + Madrid hosted. GDPR DPA + AVV. AI Act Art 50 ready.

🚫 No data training

Zero data retention option. OpenAI defaults to opt-in for training.

🎨 Multi-modal stack

Image+video+audio+embeddings in same API. No 5 vendors to manage.

⚡ Auto-failover

Cross-provider failover ao first 5xx. No single-point-of-failure.

Make the switch in 60 seconds

7-day free trial. No card required. Cancel anytime.

Get brnl- key →

60s quickstart · Cost analysis · All alternatives · Pricing comparison

Earn 30% recurring

Refer Brainiall to others — get 30%/mo for every active referral.

Become an affiliate →