Skip to main content
We give you the option to use the Prem AI API, the PremAI SDK, or the OpenAI SDK.For API usage documentation, refer to the API Reference.

Create an API Key 🔑

Click the API Key button on the sidebar. Then click the + Create API Key button. Afterwards, copy the API key and save it in a secure location. Create an API Key

Use with PremAI SDK

Install the PremAI SDK

List Models

Check Model Status

This is useful to check if a model is running or not. If it is not running, you can load it up using the load method.
The model name can be replaced with the name of your fine-tuned models as well.

Load Model

This is useful to load up a model for inference.
The model name can be replaced with the name of your fine-tuned models as well.

Unload Model

This is useful to unload a model from the server.
The model name can be replaced with the name of your fine-tuned models as well.

Chat Completions

Chat Completion with Streaming

Streaming is not supported for the PremAI SDK. Will be supported in the future.

Use with OpenAI SDK

Install the OpenAI SDK

List Models

Chat Completions

The model name can be replaced with the name of your fine-tuned models as well.

Chat Completion with Streaming