The LLM Gateway is in beta.
Choose a request format
The gateway accepts OpenAI Chat Completions, Anthropic Messages, and OpenAI Responses requests. The request format and the provider are independent: a Chat Completions request can call an Anthropic model, and the gateway translates the request and response when the provider uses a different native format. Keep the format your application already uses, and switch providers by changing the model ID. For endpoints, model ID syntax, and translation behavior, see API formats. LangChain chat models and Deep Agents reach the gateway through theLANGSMITH_GATEWAY environment variable, which uses direct model access in each provider’s native format, so no translation applies.
Choose how credentials are managed
The gateway calls each provider with a credential that LangSmith holds: your own provider key, stored as a workspace secret, or Gateway Credits, which LangChain bills to your LangSmith account. For every credential source and who bills it, see Provider authentication.Next steps
Start with the guide for your role:Set up the gateway for your organization
Complete the initial setup to route requests through the gateway.
Send your first request
Send a request from the Simulator, call the gateway from your code, and view the trace.
Connect these docs to your agent of choice via MCP for real-time answers.

