Overview
Details
| Class | Package | Local | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|---|
| ChatBaseten | langchain-baseten | ❌ | beta | ❌ |
Features
| Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
Setup
To access Baseten models, you’ll need to create a Baseten account, get an API key, and install thelangchain-baseten integration package.
Head to this page to create an account with Baseten and generate an API key. Once you’ve done this, set the BASETEN_API_KEY environment variable:
Credentials
Set API key
Enable tracing
Installation
The LangChain Baseten integration lives in thelangchain-baseten package:
Instantiation
Baseten offers two ways to access chat models:- Model APIs: For access to the latest, most popular opensource models.
- Dedicated URLs: Use specific model deployments with dedicated resources.
Initialize with model slug
Initialize with model URL
Invocation
Basic invocation