MIGRATION

OpenAI-compatible client setup

Point a standard OpenAI SDK client at this API base URL and use your paid access key.

Base URL

https://api.whoisjohngalt.ai/v1

Authorization: Bearer <YOUR_ACCESS_KEY>

Unauthenticated requests receive HTTP 401 with a structured JSON authentication error and an x-request-id.

Gotchas vs OpenAI

Keep the contract honest.

  1. 1
    Auth first

    Missing keys return structured 401 invalid_api_key. They never run inference or return model-failure oracles.

  2. 2
    Model ids

    Use ids from GET /v1/models. Do not assume OpenAI public model names.

  3. 3
    Refusals and jobs

    Policy declines are terminal for that prompt. Prefer admitted jobs from GET /v1/jobs and keep request ids for support.

  4. 4
    No provider branding

    Responses do not expose upstream provider labels. Treat the Workspace Service as the product identity.

curl

List models

curl https://api.whoisjohngalt.ai/v1/models \ -H "Authorization: Bearer $WHOISJOHNGALT_API_KEY" \ -H "Accept: application/json"

Python

OpenAI SDK

import os from openai import OpenAI client = OpenAI( api_key=os.environ["WHOISJOHNGALT_API_KEY"], base_url="https://api.whoisjohngalt.ai/v1", ) models = client.models.list() print([m.id for m in models.data])

Node.js

OpenAI SDK

import OpenAI from "openai"; const client = new OpenAI({ apiKey: process.env.WHOISJOHNGALT_API_KEY, baseURL: "https://api.whoisjohngalt.ai/v1", }); const models = await client.models.list(); console.log(models.data.map((m) => m.id));

Health

Service check

curl -sS https://api.whoisjohngalt.ai/health