Skip to main content
Baseten provides serverless GPU inference for open-source models with no infrastructure to manage. With Linkup, you can ground these models in real-time web data, giving them the ability to retrieve current facts, news, and source-backed information beyond their training data. This guide demonstrates the integration using GLM 5, but the same approach works with any model available on Baseten that supports function calling.
1

Get your API Keys

Get your Linkup API key

Create a Linkup account for free to get your API key.

Get your Baseten API key

Navigate to your Baseten settings, select API Keys, click Create API key, and copy the generated key.
2

Set Up Your Environment

Initialize your project and create a virtual environment:
Install dependencies:
Configure your API keys as environment variables:
3

Build the Agent

Create a file named agent.py and add the following code:
agent.py
4

Run the Agent

5

Try Different Scenarios

Internal knowledge (no tool call):
Tool-augmented reasoning:
For more information, visit:
Need help? Email support@linkup.so, ping us on Discord, or talk to us.