List available models for standard inference
curl --request GET \
--url https://gateway.prem.io/openai/models \
--header 'Authorization: <api-key>'import requests
url = "https://gateway.prem.io/openai/models"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://gateway.prem.io/openai/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.prem.io/openai/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.prem.io/openai/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.prem.io/openai/models")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.prem.io/openai/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": 1,
"object": "model",
"created": 1773220462,
"owned_by": "prem",
"model": "kimi-k3",
"name": "Kimi K3",
"description": "A long-context chat model.",
"type": "CHAT",
"input_modalities": [
"text"
],
"price_config": {
"standard": {
"eu": {
"prompt_price_per_k": 1,
"completion_price_per_k": 4,
"reasoning_price_per_k": 2,
"audio_price_per_min": 0
}
}
},
"regions": [
"eu"
],
"requires_auth": 1,
"usage_mode": "API",
"visible_in_dashboard": 1,
"likes_count": 0,
"dislikes_count": 0,
"total_reviews": 0,
"rating_percent": 0
}
]
}{
"status": 401,
"error": "Some error message",
"message": null,
"env": "development",
"log": {
"request_id": "req_1234567890"
},
"support_id": "support_uuidv7-something-else",
"data": {},
"validator": {
"email": "Invalid email address",
"password": "Password is required"
}
}{
"status": 403,
"error": "Some error message",
"message": null,
"env": "development",
"log": {
"request_id": "req_1234567890"
},
"support_id": "support_uuidv7-something-else",
"data": {},
"validator": {
"email": "Invalid email address",
"password": "Password is required"
}
}Endpoints
List available models for standard inference
Get a list of models available for standard (OpenAI-compatible) inference. The response follows the OpenAI models list shape.
GET
/
openai
/
models
List available models for standard inference
curl --request GET \
--url https://gateway.prem.io/openai/models \
--header 'Authorization: <api-key>'import requests
url = "https://gateway.prem.io/openai/models"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://gateway.prem.io/openai/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.prem.io/openai/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.prem.io/openai/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.prem.io/openai/models")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.prem.io/openai/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": 1,
"object": "model",
"created": 1773220462,
"owned_by": "prem",
"model": "kimi-k3",
"name": "Kimi K3",
"description": "A long-context chat model.",
"type": "CHAT",
"input_modalities": [
"text"
],
"price_config": {
"standard": {
"eu": {
"prompt_price_per_k": 1,
"completion_price_per_k": 4,
"reasoning_price_per_k": 2,
"audio_price_per_min": 0
}
}
},
"regions": [
"eu"
],
"requires_auth": 1,
"usage_mode": "API",
"visible_in_dashboard": 1,
"likes_count": 0,
"dislikes_count": 0,
"total_reviews": 0,
"rating_percent": 0
}
]
}{
"status": 401,
"error": "Some error message",
"message": null,
"env": "development",
"log": {
"request_id": "req_1234567890"
},
"support_id": "support_uuidv7-something-else",
"data": {},
"validator": {
"email": "Invalid email address",
"password": "Password is required"
}
}{
"status": 403,
"error": "Some error message",
"message": null,
"env": "development",
"log": {
"request_id": "req_1234567890"
},
"support_id": "support_uuidv7-something-else",
"data": {},
"validator": {
"email": "Invalid email address",
"password": "Password is required"
}
}Zero Data Retention catalog
This endpoint returns the models that your API key can use for ZDR inference. UseGET /rvenc/models for the confidential catalog.
The response uses the OpenAI models list format. It has "object": "list" and an array in data. Each entry has the standard id, object, created, and owned_by fields, and Prem adds more fields after them.
curl "https://gateway.prem.io/openai/models?type=CHAT" \
-H "Authorization: Bearer $PREM_API_KEY"
for model in client.models.list():
print(model.id)
regions field of each entry shows the ZDR regions that give the model. See Models & Pricing for the full field reference.Authorizations
Send your access token as header Authorization: Bearer {accessToken}
Your API key that starts with sk_live or sk_test. You can create yours at go.prem.io/api-keys.
Query Parameters
Filter models by type
Available options:
CHAT, AUDIO_TRANSCRIPTION, AUDIO_SPEECH, IMAGE