This gateway serves an OpenAI-compatible API. To migrate, change the request base URL to this site and use a model name the site actually serves; the path, auth header and request body stay the same as OpenAI. The examples below use the same endpoint as the usage docs page.
The model name must be one this deployment actually serves — see the model pricing page for what is available. The API key in the examples is a placeholder.
Upstream protocol references: OpenAI API reference · Anthropic (Claude) API overview · Google Gemini API docs
Replace <YOUR_API_KEY> with your key and the model with one the site serves.
Only base_url and api_key change; the rest is identical to calling OpenAI.