Start here

1

Activate your Prem account.

2

Sign in and generate an API key.

3

Create a new project.

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.

4

Head over to the Lab and experiment with various AI models simultaneously.

5

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

The launchpad has more configurations to customize your model with. We’ll cover these configurations in the launchpad, actions and repositories guides.

6

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

Once you’ve launched your model using the launchpad, you can integrate it into your application using our SDKs.

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 = client.chat.completions.create(
    project_id=project_id,
    system_prompt=system_prompt,
    messages=messages,
)

print(response.choices)

Next steps

Read the guides