Slier.AI Documents
Home
  • GET STARTED
    • Introduction
    • Quick Start
    • SDKs
  • API REFERENCE
    • API URLs
    • Models
    • Chat
    • Search
    • Images
  • Privacy & Legal
    • How do you use personal data in model training?
    • How long do you store personal data?
Powered by GitBook
On this page
  1. API REFERENCE

Models

List models

https://api.Slier.ai/v1/models

https://api.Slier.ai/v2/models

Lists the currently available models, and provides basic information about each one.

Request

.GET/v1/models

import requests
url = "https://api.Slier.ai/v1/models"
# url = "https://api.Slier.ai/v2/models"
headers = {
  'Authorization': 'Bearer $API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.json())

Response

{
  "object": "list",
  "data": [
    {
      "id": "model-0",
      "name": "Model 0",
      "family": "image",
      "desc": "Example model 0",
      "params": [...],
      "pricing": 0
    },
    {
      "id": "model-1",
      "name": "Model 1",
      "family": "chat",
      "desc": "Example model 1",
      "params": [...],
      "input_pricing": 0,
      "output_pricing": 0
    }
  ]
}
PreviousAPI URLsNextChat

Last updated 1 year ago