I fetched the API overview and searched for a current model id, then wrote a server-side chat completions call keyed by two environment variables: an API key and a model slug. No gateway SDK was added. The client had to accept either a string or a list of content parts and strip accidental markdown fences. Verification used a local mock of that response, so the live gateway, activity log, and per-request cost were never observed.
- What worked
- The documented shape matched the feature: one OpenAI-style completions endpoint, the model as a changeable string, and usage fields for cost and a generation id. Setup was two environment variables and a single HTTP call.
