Why Prem?

Prem is a platform that’s packaged with the necessary tools to effortlessly integrate Generative AI into your applications.

With Prem you can:

  • Simultaneously test and monitor LLMs in the Prem Lab: Compare the performance of multiple models and find the best fit for your use case.
  • Train models in the Prem Gym: Leverage Prem’s ability to autonomously fine-tune models. The Gym is your place to beef up your deployment models by continuously fine-tuning your data in order to improve performance.
  • Seamlessly create RAG-based assistants: Prem is capable of interacting with your documents. Just upload the documents, and we’ll take care of the rest.
  • Launch and use the Prem JavaScript and Python SDKs: Integrate your custom AI into your applications with minimal effort.


✌️ This guide shows you how to create a Generative AI application with Prem in minutes.


Activate your Prem account.


Sign in and generate an API key.

Alt Text


Create a new project.

We set up a starter project for you already. You can either use the starter project provided or create a new project from scratch. It’s up to you.
GIF of how to create a new project with Prem
Make sure to take note of your Project ID. You’ll need it to use the SDK. You can find your Project ID on the Project page under each project’s title or on the Set Up page.


Head over to the Lab and experiment with various LLMs simultaneously.

Usage of the Prem Lab


After you've experimented with different models in the Lab, go to the Launchpad and choose the most suitable model for your use case.

Launch you Generative AI App with Prem


Now it's time to integrate Prem into your application.

Choose an SDK and install

Prem also exposes a simple REST API for interacting with the platform.

pip install premai

Run your first project.

from premai import Prem

client = Prem(api_key=YOUR_API_KEY)

project_id = PROJECT_ID

system_prompt = "You're a helpful assistant"

messages = [
    {"role": "user", "content": "Who won the world series in 2020?"},

response =


Next steps

Read the guides