List available chat completion models
chat.completions.models(CompletionModelsParams**kwargs) -> CompletionModelsResponse
GET/v5/chat/completions/models
Lists the models available for use with /v5/chat/completions.
Results are served directly from the stored inference-models catalog filtered to the chat-completion
model type, not from a live provider probe, so availability reflects the catalog’s recorded status.
Pass the optional model_vendor query parameter to restrict results to a single vendor. Results are
paginated, and each entry reports the model name, vendor, type, and availability. If the underlying
catalog query fails the endpoint returns an empty list rather than raising an error.
List available chat completion models
import os
from scale_gp_beta import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
response = client.chat.completions.models()
print(response.items){
"items": [
{
"model_name": "model_name",
"model_type": "generic",
"model_vendor": "openai",
"model_availability": "unknown"
}
],
"object": "list"
}Returns Examples
{
"items": [
{
"model_name": "model_name",
"model_type": "generic",
"model_vendor": "openai",
"model_availability": "unknown"
}
],
"object": "list"
}