Skip to content
ConsolePreview data
Back to site

Overview

Loading…

Quick start

Point any OpenAI SDK at OpenModel. Swap MODEL_ID for a live model from the catalog.

from openai import OpenAI

client = OpenAI(
    base_url="https://openmodel.club/v1",
    api_key="om_live_...",
)

resp = client.chat.completions.create(
    model="MODEL_ID",  # any id from GET /v1/models
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)