SDKs & Integrations

GateML exposes an OpenAI-compatible REST API, so any library that supports a custom base URL works out of the box. We also publish thin official SDKs for the most popular languages.

install$ pip install gateml openai
# gateml is a thin wrapper — it extends the OpenAI client from gateml import GateML client = GateML(api_key="gml-sk-live_...") # API is identical to OpenAI SDK response = client.chat.completions.create( model="gpt-4o", # or claude-sonnet-4-6, gemini-2.0-flash, ... messages=[{"role": "user", "content": "Summarize this contract."}], max_tokens=500, ) print(response.choices[0].message.content) # Use your existing OpenAI code unchanged: from openai import OpenAI from gateml import get_config client = OpenAI(**get_config(api_key="gml-sk-live_..."))
Compatible without an SDK

GateML works with any OpenAI-compatible client — just set the base URL:

LangChain (Python)
from langchain_openai import ChatOpenAI llm = ChatOpenAI(api_key="gml-sk-live_...", base_url="https://api.gateml.io/v1")
LlamaIndex
from llama_index.llms.openai import OpenAI llm = OpenAI(api_key="gml-sk-live_...", api_base="https://api.gateml.io/v1")
Vercel AI SDK
import { createOpenAI } from '@ai-sdk/openai'; const gateml = createOpenAI({ apiKey: 'gml-sk-live_...', baseURL: 'https://api.gateml.io/v1' });
liteLLM
import litellm litellm.api_base = "https://api.gateml.io/v1" litellm.api_key = "gml-sk-live_..."