Skip to main content
POST
/
v4
/
models
/
{model_instance_id}
/
deployments
/
{model_deployment_id}
/
execute
JavaScript
import SGPClient from 'sgp';

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

const response = await client.models.deployments.execute('model_instance_id', 'model_deployment_id');

console.log(response);
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string

Path Parameters

model_instance_id
string
required
model_deployment_id
string
required

Body

application/json
stream
boolean
default:false

Flag indicating whether to stream the completion response

Response

Successful Response