Skip to content

Providers

OpenAI

Use the OpenAI SDK through the OpenAI-compatible endpoint.

The /v1 endpoint is fully OpenAI-compatible. Chat completions, responses, embeddings and images are supported.

client.py
from openai import OpenAI client = OpenAI(    base_url="https://gateway.ospin.dev/v1",    api_key=os.environ["OSPIN_KEY"],)

Provider-side containment

When you connect an OpenAI admin key, Ospin creates a dedicated project per workspace with a hard monthly budget, so the provider enforces a ceiling too.