Skip to content

Getting Started

Welcome to CalypsoAI! Our platform is designed to secure and seamlessly integrate with various AI models, ensuring robust and reliable AI operations. In this section, you'll find all the essential steps to set up and begin using CalypsoAI Python SDK effectively.

Create an API Key

Please visit here to create an API key. Ensure you store this API key securely, as it is essential for integrating and securing your AI models with CalypsoAI.

Download and install the Python SDK

Unlock the full potential of CalypsoAI by downloading our Python SDK. It provides a powerful and flexible way to integrate and secure your AI models directly within your Python applications.

You can download and install the latest version from here.

Setup Authentication

Set the following environment variables for use with all our API/SDK examples.

shell
CALYPSOAI_URL=""
CALYPSOAI_TOKEN="changeme"

Sending prompts to an LLM

Once you've installed the CalypsoAI Python SDK and generated your API token, you can start sending prompts to an LLM. Here's how you can do it:

python
from calypsoai import CalypsoAI

cai = CalypsoAI(url="", token="changeme")

prompt = cai.prompts.send("What is your name?")
print(prompt.result.response)
shell
CAI_TOKEN=changeme
curl /backend/v1/prompts -X POST \
  -H "Authorization: Bearer ${CAI_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data-raw '{"input": "What is your name?"}'