Retrieve
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
models.retrieve(strmodel) -> idstrcreatedintobjectliteralowned_bystrModelRetrieveResponse
get/models/{model}
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Parameters
modelstr
Returns
ModelRetrieveResponseclass
Describes a model offering that can be used with the API.
from do_gradientai import GradientAI
client = GradientAI(
api_key="My API Key",
)
model = client.models.retrieve(
"llama3-8b-instruct",
)
print(model.id)
200 Example
{
"id": "id",
"created": 0,
"object": "model",
"owned_by": "owned_by"
}