Quickstart
·
5 min min read
Replace OpenAI API in 5 minutes
Why switch?
Keep OpenAI-compatible requests while gaining:
- custom/open models
- stronger data sovereignty
- lower costs
- smart routing across deployments
1) Create deployment or agent
Create a Mycelis deployment and note its slug (for model).
2) Create API key
Generate a key in Dashboard → API Keys (myk_...).
3) Change two lines
from openai import OpenAI
client = OpenAI(
api_key="myk_...",
base_url="https://your-domain.com/api/proxy/v1"
)
All other API calls stay the same.