Skip to main content
POST
/
v4
/
serving
/
{model_server_id}
/
execute
Python
import os
from scale_gp import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
generic_model_response = client.model_servers.execute(
    model_server_id="model_server_id",
)
print(generic_model_response.error_message)
{
  "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

Successful Response

status
string
status_code
integer
error_message
string