Switch from OpenAI, Anthropic, or other providers in minutes. Drop-in API compatibility with minimal code changes.
Competitive pricing with volume discounts and context caching
Faster rate limits and larger context windows
OpenAI-compatible API for easy migration
Our SDK is a drop-in replacement for the OpenAI SDK:
pip install mythicdot
Change just 2 lines of code:
from openai import OpenAI client = OpenAI() response = client.chat.completions.create( model="gpt-4o", messages=[ {"role": "user", "content": "Hello!"} ] )
from mythicdot import MythicDot client = MythicDot() response = client.chat.completions.create( model="mythic-4", messages=[ {"role": "user", "content": "Hello!"} ] )
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" )
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 |
import anthropic client = anthropic.Anthropic() message = client.messages.create( model="claude-3-5-sonnet", max_tokens=1024, messages=[ {"role": "user", "content": "Hello!"} ] )
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:
chat.completions.create() instead of messages.create()role: "system"| 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) |
Start your free trial with $100 in credits. No credit card required.