API Reference
Getting Started With The Prem API
Learn how to interact with Prem’s API endpoints.
Prem Is Also OpenAI Compatible
Instead of using the Prem API, you can use the OpenAI SDK to generate chat completions with Prem by just changing the base URL
and adding your API key
.
Use our Quickstart Guide to learn how to use Prem AI with OpenAI’s API/SDK.
This is the API Reference for Prem AI.
Here you can find documentation for all of the endpoints that are available in the Prem API. You can use the sidebar to navigate to the different sections.
Prem provides a REST API that you can use to interact with the platform with any programming language that can make HTTP requests.
This API Allows You To Perform The Following Actions:
- Chat Completions (Chat with a model of your choice- fine-tuned or pre-trained).
- Models (See what models are available).
- Internal Models (See what internal models are available on your account including models you’ve fine-tuned).
Authentication
All API endpoints are authenticated using Bearer tokens and picked up from the specification file.