POST
/
v4
/
serving
/
{model_server_id}
/
execute
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() {
  const genericModelResponse = await client.modelServers.execute('model_server_id');

  console.log(genericModelResponse.error_message);
}

main();
{
  "status": "<string>",
  "status_code": 123,
  "error_message": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

model_server_id
string
required

Body

application/json
stream
boolean
default:
false

Flag indicating whether to stream the completion response

Response

200
application/json
Successful Response
status
string
status_code
integer
error_message
string