Skip to main content
GET
/
v3
/
router
/
models
List models
curl --request GET \
  --url https://api.orq.ai/v3/router/models \
  --header 'Authorization: Bearer <token>'
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.orq.ai/v3/router/models', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
import requests

url = "https://api.orq.ai/v3/router/models"

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

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

print(response.text)
{
  "data": [
    {
      "created": 123,
      "id": "<string>",
      "object": "model",
      "owned_by": "<string>"
    }
  ],
  "object": "list"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Models listed.

data
object[] | null
required

Available models.

object
enum<string>
required

Always "list".

Available options:
list