cURL
curl --request GET \ --url http://studio.premai.io/api/v1/models \ --header 'Authorization: Bearer <token>'
{ "object": "list", "data": [ { "id": "<string>", "created": 123, "object": "model", "owned_by": "<string>" } ] }
Use this endpoint to get a list of models available to you.
The models available will depend on your subscription tier.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
success response
The type of object returned, always "list" for model listing responses. Helps identify this as a collection of models.
list
An array containing the available models. Each element is a complete model object with all its properties.
Show child attributes
Was this page helpful?