Skip to content

Models

  • list - List available models
  • retrieve - Retrieve model details

List all available models

from r9s import R9S
with R9S(api_key=os.getenv("R9S_API_KEY",""),) as r9_s:
res = r9_s.models.list()
# Handle response
print(res)
ParameterTypeRequiredDescription
retriesobject:heavy_minus_sign:Configuration to override the default retry behavior of the client.

ModelListResponse

Error TypeStatus CodeContent Type
errors.AuthenticationError401application/json
errors.PermissionDeniedError403application/json
errors.InternalServerError500application/json
errors.R9SDefaultError4XX, 5XX*/*

Retrieve detailed information for a specified model

from r9s import R9S
with R9S(api_key=os.getenv("R9S_API_KEY",""),) as r9_s:
res = r9_s.models.retrieve(model="gpt-4o-mini")
# Handle response
print(res)
ParameterTypeRequiredDescriptionExample
modelstr:heavy_check_mark:Model name
retriesobject:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Model

Error TypeStatus CodeContent Type
errors.AuthenticationError401application/json
errors.PermissionDeniedError403application/json
errors.NotFoundError404application/json
errors.InternalServerError500application/json
errors.R9SDefaultError4XX, 5XX*/*