Get started
Client SDKs
We provide client libraries in a number of popular languages that make it easier to work with the PremAI API.
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.
Use with PremAI SDK
Install the PremAI SDK
List Models
List Internal Models
List down all the models including the finetuned models.
Chat Completions
Chat Completion with Streaming
Use with OpenAI SDK
Install the OpenAI SDK
Chat Completions
The model name can be replaced with the name of your fine-tuned models as well.