POST
/
v4
/
serving
/
a
/
{alias}
/
execute
JavaScript
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: 'My API Key',
});

const genericModelResponse = await client.alias.execute('alias');

console.log(genericModelResponse.error_message);
{
  "status": "<string>",
  "status_code": 123,
  "error_message": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

alias
string
required

Body

application/json
stream
boolean
default:false

Flag indicating whether to stream the completion response

Response

Successful Response

status
string
status_code
integer
error_message
string