Skip to main content
GET
/
v1
/
models
List models
curl --request GET \
  --url https://openp.ai/v1/models
import requests

url = "https://openp.ai/v1/models"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://openp.ai/v1/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://openp.ai/v1/models",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$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://openp.ai/v1/models"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://openp.ai/v1/models")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://openp.ai/v1/models")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
Returns all models the current API key has permission to call.

Request

curl https://openp.ai/v1/models \
  -H "Authorization: Bearer $OPENPAI_API_KEY"
No query parameters.

Response

{
  "object": "list",
  "data": [
    {
      "id": "gpt-5.5",
      "object": "model",
      "created": 1715750400,
      "owned_by": "openai"
    },
    {
      "id": "gpt-5.4-mini",
      "object": "model",
      "created": 1715750400,
      "owned_by": "openai"
    },
    {
      "id": "claude-opus-4-8",
      "object": "model",
      "created": 1715750400,
      "owned_by": "anthropic"
    }
  ]
}

Get a single model

curl https://openp.ai/v1/models/gpt-5.5 \
  -H "Authorization: Bearer $OPENPAI_API_KEY"
Returns:
{
  "id": "gpt-5.5",
  "object": "model",
  "created": 1715750400,
  "owned_by": "openai"
}

Scope

  • The list is limited by the token’s model scope — if you set an allowlist when creating the token, only the allowlisted models are returned here.
  • It’s affected by the user group: only models accessible to the current group are returned.

Uses

  • Fetch once at client startup and cache locally as the options for a dropdown.
  • Forward this endpoint in your own gateway / relay proxy so downstream users can query it.