Migration Guide

Switch from OpenAI, Anthropic, or other providers in minutes. Drop-in API compatibility with minimal code changes.

Why Migrate?

💰

30% Lower Costs

Competitive pricing with volume discounts and context caching

Higher Limits

Faster rate limits and larger context windows

🔌

Drop-in Compatible

OpenAI-compatible API for easy migration

Migration from OpenAI

pip install mythicdot
❌ Before (OpenAI)
from openai import OpenAI

client = OpenAI()

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", 
         "content": "Hello!"}
    ]
)
✓ After (MythicDot)
from mythicdot import MythicDot

client = MythicDot()

response = client.chat.completions.create(
    model="mythic-4",
    messages=[
        {"role": "user", 
         "content": "Hello!"}
    ]
)

💡 Pro Tip: OpenAI Compatibility Mode

You can even use the OpenAI SDK directly by just changing the base URL:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.mythicdot.ai/v1",
    api_key="your-mythicdot-key"
)

Model Mapping

Find the equivalent MythicDot model for your current provider:

OpenAI Model MythicDot Model Notes
gpt-4o mythic-4 Direct replacement, similar performance
gpt-4o-mini mythic-4-mini Fast and cost-effective
o1 mythic-o1 Advanced reasoning model
text-embedding-3-large mythic-embed-3 State-of-the-art embeddings
dall-e-3 mythic-image-1 High-quality image generation
whisper-1 mythic-stt-1 Speech-to-text
tts-1-hd mythic-tts-1 Text-to-speech

Migration from Anthropic

❌ Before (Anthropic)
import anthropic

client = anthropic.Anthropic()

message = client.messages.create(
    model="claude-3-5-sonnet",
    max_tokens=1024,
    messages=[
        {"role": "user", 
         "content": "Hello!"}
    ]
)
✓ After (MythicDot)
from mythicdot import MythicDot

client = MythicDot()

message = client.chat.completions.create(
    model="mythic-4",
    max_tokens=1024,
    messages=[
        {"role": "user", 
         "content": "Hello!"}
    ]
)

Key differences from Anthropic:

Feature Compatibility

Feature OpenAI MythicDot
Chat Completions ✓ (identical API)
Streaming ✓ (identical API)
Function Calling ✓ (identical API)
Vision ✓ (identical API)
JSON Mode ✓ (identical API)
Assistants API ✓ (coming soon)

Ready to Migrate?

Start your free trial with $100 in credits. No credit card required.

Get Started Free Talk to Sales