Skip to main content
GET
/
api
/
{workspaceID}
/
v1
/
models
List available models
curl --request GET \
  --url https://ai.liara.ir/api/{workspaceID}/v1/models \
  --header 'Authorization: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "context_length": 123,
      "architecture": {
        "input_modalities": [
          "<string>"
        ],
        "output_modalities": [
          "<string>"
        ]
      },
      "pricing": {
        "prompt": "<string>",
        "completion": "<string>"
      },
      "top_provider": {
        "context_length": 123,
        "max_completion_tokens": 123
      },
      "supported_parameters": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter the API key with the Bearer: prefix, e.g. "Bearer "

Path Parameters

workspaceID
string
required

The workspace ID

Pattern: ^[a-f0-9]{24}$

Response

List of models

object
enum<string>
Available options:
list
data
object[]