Change the base URL and keep the SDK.
The gateway serves the OpenAI, Anthropic, and Gemini protocols on their own paths. Point the OpenAI SDK at https://llm.leaflow.cloud/v1 and the Anthropic SDK at https://llm.leaflow.cloud. Gemini uses the same origin and its native generateContent path. Requests are forwarded unchanged except for the model name and credentials, and the gateway does not convert between protocols. Send a model only to an endpoint it supports.
OpenAI SDK
- Base URL https://llm.leaflow.cloud/v1
- Bearer token in the Authorization header
- Chat Completions, Responses, and embeddings
Anthropic and Gemini SDKs
- Base URL https://llm.leaflow.cloud
- Anthropic accepts x-api-key or Authorization
- Gemini accepts x-goog-api-key or Authorization