Skip to main content
Swytcho provides first-party SDKs for Python and Node.js, and is fully compatible with the OpenAI SDK — so if you already have an OpenAI integration, you can switch to Swytcho by changing a single base URL. No matter your stack, you can start making API calls in minutes.
The fastest way to get started is with the OpenAI SDK. Point it at Swytcho’s base URL and your existing code works immediately — no new SDK required.

Available SDKs and Integrations

Python SDK

The official Swytcho Python library. Supports synchronous and async usage, streaming, and all Swytcho-specific features. Install with pip.

Node.js / TypeScript SDK

The official Swytcho Node.js library with full TypeScript types. Works in Node.js, Deno, Bun, and edge runtimes. Install with npm, yarn, or pnpm.

Use the OpenAI SDK

Swytcho is fully OpenAI-compatible. Set base_url (Python) or baseURL (Node.js) to https://api.swytcho.com/v1 and your existing OpenAI code works without further changes.

REST API

Call Swytcho directly over HTTP from any language, tool, or platform. All you need is an API key and the ability to make a POST request.

Installation

Install the official SDK for your language using your preferred package manager.

Quick Start Examples

The examples below show how to send your first chat completion request using each integration path.

Streaming Responses

All SDKs support streaming so you can display tokens as they are generated rather than waiting for the full response.

Source Code and Contributions

Both official SDKs are open source. Explore the source, file issues, or contribute on GitHub.

swytcho-python

GitHub repository for the official Python SDK

swytcho-node

GitHub repository for the official Node.js / TypeScript SDK