description |
---|
This page introduces Secret AI SDK, provides guidance and examples how to use Secret AI SDK. |
{% hint style="danger" %} Secret AI SDK is a developer preview and is not intended for production use. {% endhint %}
Secret AI SDK is an advanced security layer designed to integrate seamlessly with DeepSeek, ensuring a secure and efficient API interaction. To begin utilizing Secret AI SDK, follow these installation and configuration steps:
To follow along with the guide, we will be using Anaconda
and Python 3.12
.
- Install Anaconda for Windows, Mac, or Linux.
- Clone the Secret AI getting started repository here:
git clone https://github.com/SecretFoundation/secret-ai-getting-started.git
In your text editor, create an Anaconda virtual environment with Python 3.12
:
conda create -n menv python=3.12
Activate the virtual environment:
conda activate menv
{% code overflow="wrap" %}
pip install -r requirements.txt && pip install 'secret-sdk>=1.8.1' && pip install secret-ai-sdk
{% endcode %}
export SECRET_AI_API_KEY=bWFzdGVyQHNjcnRsYWJzLmNvbTpTZWNyZXROZXR3b3JrTWFzdGVyS2V5X18yMDI1
{% hint style="danger" %} Master key is available for developer preview; later on developers will be able to request individual API keys through the developer portal. {% endhint %}