Docs

OpenAI migration — full reference

Reference documentation for migrating from OpenAI to Plugsky. Drop-in compatible, base_url change only.

This is the reference documentation for migrating from OpenAI to Plugsky. The full guide with code samples per language is in /articles/migrate-from-openai.

Quick start

bash
export OPENAI_API_BASE="https://api.plugsky.com/v1"
export OPENAI_API_KEY="sk-live-PLUGSKY-..."
python
from openai import OpenAI
client = OpenAI()
resp = client.chat.completions.create(
    model="plugsky-pro",
    messages=[{"role":"user","content":"Hello"}],
)

Endpoint mapping

OpenAI Plugsky
api.openai.com/v1api.plugsky.com/v1
gpt-4oplugsky-frontier
gpt-4o-miniplugsky-pro
text-embedding-3-smallplugsky-embed-v1
text-embedding-3-largeplugsky-embed-large

See the full guide

Step-by-step migration with samples for every language.

Full guide →