Skip to main content
GET
/
api
/
v1
/
models
Get Models List
curl --request GET \
  --url https://api.intelligence.io.solutions/api/v1/models \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.intelligence.io.solutions/api/v1/models"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.intelligence.io.solutions/api/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://api.intelligence.io.solutions/api/v1/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: Bearer <token>"
],
]);

$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://api.intelligence.io.solutions/api/v1/models"

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

req.Header.Add("Authorization", "Bearer <token>")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.intelligence.io.solutions/api/v1/models")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.intelligence.io.solutions/api/v1/models")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "chat_daily_quota_tier_1": 123,
      "api_completions_daily_quota_tier_1": 123,
      "embeddings_daily_quota_tier_1": 123,
      "audio_transcriptions_daily_quota_tier_1": 123,
      "audio_speech_daily_quota_tier_1": 123,
      "metadata": {
        "image_url": "<string>",
        "tags": "New",
        "version": "<string>",
        "developer": "<string>",
        "short_description": "<string>",
        "enable_api_chat_completions": true,
        "enable_api_embeddings": true,
        "enable_audio_stt": true,
        "enable_audio_tts": true,
        "enable_chat_ui": true,
        "trendiness": 0,
        "license": "<unknown>",
        "tool_support": "no",
        "max_tokens": 123,
        "context_window": 123,
        "supports_images_input": false,
        "supports_prompt_cache": false,
        "input_token_price": "<string>",
        "output_token_price": "<string>",
        "cache_write_token_price": "<string>",
        "cache_read_token_price": "<string>",
        "precision": "<string>"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>"
    }
  ],
  "pagination": {
    "total": 123,
    "page": 123,
    "page_size": 123,
    "total_pages": 123,
    "has_next": true,
    "has_previous": true
  }
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Guest-Session-ID
string | null

Identifier of guest user

Query Parameters

page
integer
default:1
Required range: x >= 1
page_size
integer
default:50
Required range: 1 <= x <= 100
q
string | null

Response

Successful Response

data
ModelData · object[]
required

List of available models

pagination
PaginationResponse · object
required

Pagination information