base_url and API key to point at Swytcho, and every SDK call works exactly as before. This makes Swytcho a true drop-in replacement for OpenAI, and means you can migrate incrementally: route one model or one feature at a time while leaving the rest of your application untouched.
Configure the OpenAI SDK
Setbase_url (Python) or baseURL (Node.js) to https://api.swytcho.com/v1 and replace your OpenAI API key with your Swytcho API key. Everything else stays the same.
Supported Endpoints
Swytcho supports the following OpenAI-compatible endpoints:Differences from OpenAI
Swytcho is designed to be a seamless replacement, but there is one key difference to keep in mind: model names. Swytcho hosts its own model lineup — you pass Swytcho model names (such asswytcho-1) where you would otherwise pass gpt-4o or another OpenAI model name.
Use
GET /v1/models to retrieve the full list of models currently available on your Swytcho account. The response follows the same schema as OpenAI’s models endpoint, so any tooling that parses that format will work without modification.