Skip to main content
Use one LangSmith API key to call models across configured providers. Switch providers by changing the model ID, while the LLM Gateway traces every call and applies centralized governance policies.
Beta: The LLM Gateway is in beta.

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.
Set your key and make a standard Chat Completions request. This example assumes the workspace has an Anthropic provider secret:
A 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. For base URLs, examples, translation behavior, and regional 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.
Need provider-native request and response behavior? Use Direct model access to bypass the standardization layer. This is an advanced alternative to the standard API. For further questions, contact LangChain support.