Skip to main content

Introduction

Orq.ai exposes the Model Garden to the API for programmatic manipulation.

Prerequisite

To get started, an API key is needed to use within SDKs or HTTP API.
To get an API key ready, see API Keys.

SDKs

Listing Models in the Garden

To get started, we’ll use the List models API.
curl --request GET \
     --url https://api.orq.ai/v2/models \
     --header 'accept: application/json' \
     --header 'authorization: Bearer ORQ_API_KEY'
This call returns a list of all available models, see after:
{
  "object": "list",
  "data": [
    {
      "id": "[email protected]",
      "created": 1709510400000,
      "type": "chat",
      "owned_by": "vendor"
    },
    {
      "id": "[email protected]",
      "created": 1709510400000,
      "type": "chat",
      "owned_by": "vendor"
    },
    {
      "id": "anthropic@claude-3-5-haiku-20241022",
      "created": 1718780162791,
      "type": "chat",
      "owned_by": "vendor"
    },
    ..cont
}