Humanloop API

The Humanloop API allows you to interact with Humanloop and model providers programmatically.

You can do this through HTTP requests from any language or via our official Python or TypeScript SDK.

First you need to install and initialize the SDK. If you have already done this, skip to the next section.

Open up your terminal and follow these steps:

  1. Install the Humanloop SDK:
1pip install humanloop
  1. Initialize the SDK with your Humanloop API key (you can get it from the Organization Settings page).
1from humanloop import Humanloop
2humanloop = Humanloop(api_key="<YOUR HUMANLOOP KEY>")
3
4# Check that the authentication was successful
5print(humanloop.prompts.list())

Guides and further details about key concepts can be found in our docs.

Was this page helpful?
Built with