Skip to main content
Swytcho’s API is fully compatible with the OpenAI SDK. You don’t need to learn a new client library or rewrite existing code — just update your 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

Set base_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 as swytcho-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.
All request and response schemas — including streaming, function calling, and role-based messages — match the OpenAI spec exactly. If you find a discrepancy, contact support.