Docs / Frameworks & integrations

OpenAI SDK

The official OpenAI client libraries work as a drop-in replacement: point base_url at the gateway and use your JACKZ.AI key.

Install

Add the package to your project:

bash
pip install openai

Configure

Point the client at the gateway base URL with your key:

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.jackz.ai/v1",
    api_key="JACKZ_API_KEY",
)

resp = client.chat.completions.create(
    model="anthropic/claude-sonnet-5",
    messages=[{"role":"user","content":"Hello"}],
)
print(resp.choices[0].message.content)

Notes

Any model slug from the catalog works. Refer to the tool's own documentation for advanced configuration.

Official docs: github.com/openai/openai-python ↗