Beta: The LLM Gateway is in beta.The gateway is also available on BYOC, where it runs inside your data plane. Send requests to your data plane endpoint behind the
/gateway path prefix, and authenticate with an API key scoped to a workspace in that data plane. For more information, see Use a BYOC data plane.Self-hosted availability: LLM Gateway is not included in the LangSmith v0.16.0 self-hosted stable release. It will be available in a future stable release. To express interest, submit the LLM Gateway self-hosted access request. You can also try LLM Gateway on v17 RC versions or BYOC (bring your own cloud) ahead of the stable release.
Make your first request
An administrator must enable the gateway, add a provider secret, and grant access once for your workspace. After setup, developers need only a workspace-scoped LangSmith API key.
200 response confirms that the gateway, your LangSmith API key, permissions, and the selected provider secret are configured correctly. For Python, TypeScript, alternative API formats, and troubleshooting, follow the quickstart.
What the gateway provides
- One key, multiple providers: Developers authenticate with a LangSmith API key instead of storing provider keys locally.
- One request format, multiple models: Use Chat Completions, Messages, or Responses with models across configured providers.
- Built-in observability: Every gateway call appears as a LangSmith trace.
- Central governance: Apply spend limits, rate limits, and data-protection policies.
Use the standard API
Choose the request format already used by your application. The format does not limit which configured provider you can call.
Set
model to a provider-prefixed bring-your-own-key ID such as openai/gpt-5.4-mini or anthropic/claude-opus-5, or use a Gateway Credits model slug such as moonshotai/kimi-k3. The model ID determines the upstream route. When the selected provider uses a different native format, the gateway translates the request and response.
On BYOC, the same paths sit behind the /gateway prefix, such as POST /gateway/v1/chat/completions.
For base URLs, examples, translation behavior, regional endpoints, and BYOC data plane endpoints, see API formats.
Choose how credentials are managed
Go further
Quickstart
Make a request with cURL, Python, or TypeScript, then view its trace.
Administrator setup
Enable the gateway, add provider credentials, and grant developer access.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

