Prerequisites: Before you begin, make sure to have an account on Basalt.
Getting Started
1
Install the SDK
First, install the SDK for your language.
2
Instantiate Basalt
Instantiate the SDK with your API key. If you don’t have one, you can get it from the Basalt Dashboard.
3
Get your prompt
Get your first prompt using the Learn more about how to get your prompt and discover all the available options in the Prompts documentation.
basalt.prompt.get
method with the slug
of your prompt as parameter.Only deployed prompts can be retrieve with this method. To know how to deploy your prompt and get your slug, follow our guide.
4
Monitor the output
After getting your prompt, you can easily monitor the output of your LLM, pushing it back to Basalt.Learn more about how to monitor your prompt, discover all the available options and more advanced use cases in the Monitoring documentation.