GET
/
v4
/
serving
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  // Automatically fetches more pages as needed.
  for await (const modelServerInfo of client.modelServers.list()) {
    console.log(modelServerInfo.account_id);
  }
}

main();
[
  {
    "name": "<string>",
    "model_server_id": "<string>",
    "model_deployment_id": "<string>",
    "account_id": "<string>",
    "alias": "<string>"
  }
]

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Response

200
application/json
Successful Response
name
string
required
model_server_id
string
required
model_deployment_id
string
required
account_id
string
required
alias
string