Quickstart
This guide will walk you through the installation of the taskingai
Python package and the initial setup required to use it, including the handling of the necessary TASKINGAI_API_KEY
.
Installation
First, you need to install the taskingai
package. This can be done easily using pip
, the package installer for Python:
pip install taskingai
Setting Up Your Credentials
Before you can start using the taskingai
package, you need to obtain an TASKINGAI_API_KEY
. This key is essential for authentication and can typically be obtained on TaskingAI console, creating a project, and navigating to the API keys page.
To set up your API key, choose one of the following methods:
- (Recommended) Set it as an environment variable on your local system, and the SDK will automatically load the key.
export TASKINGAI_API_KEY=YOUR_API_KEY
- Specify your API key to the SDK by passing it as a parameter to the
init
function in your Python code:
import taskingai
taskingai.init(api_key='YOUR_API_KEY')