Private beta: The LLM Gateway is in private beta. APIs and features may change as we iterate. Sign up for the waitlist to get access.
/langchain provider serves LangChain-managed models through the LLM Gateway. With the other providers, you bring your own account and key. With managed models, LangChain owns the upstream provider credential, so you can start calling a model immediately with only your LangSmith API key. No provider secret setup is required.
Base URL
Point any OpenAI-compatible client at:Authenticate with your LangSmith API key as a bearer token.For regional base URLs, see Regional gateways.
Available models
The provider is OpenAI-compatible and advertises branded model IDs. You select a model by name (case-insensitive) in the request body, and the gateway routes it to the managed upstream model.
You can also list the available models programmatically:
/v1/models list containing only the managed model IDs above.
Prerequisites
Before you can call the/langchain provider, confirm that:
- Your organization is on a paid plan (Developer, Plus, Startup, or Premier).
- You have a workspace-scoped LangSmith API key attached to a role with
gateway:invokeandworkspaces:readpermissions. See Admin setup if you’re unsure.
Make a call
Point any OpenAI-compatible client athttps://gateway.smith.langchain.com/langchain/v1, authenticate with your LangSmith API key, and set model to one of the advertised model IDs.
Supported endpoints
The/langchain provider forwards two OpenAI-compatible prompt endpoints and serves the model list locally:
Any other path returns
404. A request for a model that isn’t advertised also returns 404 with a message listing the available model IDs.
Pricing
Invocations will be billed to your account. Standard gateway spend policies still apply on top of the managed-model cap, so you can add tighter per-key or per-user limits.Tracing
Like all gateway traffic, managed-model calls are traced to LangSmith. See Traces, Engine, and access control for where traces land and how to control access to them.Next steps
- Quickstart: make your first gateway-proxied call.
- Spend policies: add cost limits on top of the managed-model cap.
- Custom model providers: route to your own OpenAI-compatible endpoints.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

