APIInference

Inference Connections_list

Managed platform connections are pinned to the first page and counted in the total.

GET
/inference/connections

Managed platform connections are pinned to the first page and counted in the total.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

view_inference

Query Parameters

offset?integer

Number of items to skip before returning results.

Formatint32
Range0 <= value
Default0
limit?integer

Maximum number of items to return per page.

Formatint32
Range0 <= value <= 256
Default10

Response Body

The request has succeeded.

application/json
  1. response

A page of results together with its paging information.

items*array<>

The items in this page.

meta*

Paging information for a list response.

curl -X GET "https://example.com/inference/connections"
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "provider_type": "openai",      "base_url": "string",      "allowed_models": [        "string"      ],      "has_api_key": true,      "managed": true,      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "total": 0,    "offset": 0,    "limit": 0  }}