List models
GET
/v1/models
const url = 'https://api.wraitherix.com/v1/models';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wraitherix.com/v1/models \ --header 'Authorization: Bearer <token>'Lists the models available to your API key.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Model list.
Media typeapplication/json
object
object
string
data
Array<object>
object
id
string
object
string
created
integer
supported_endpoint_types
Array<string>
Example
{ "object": "list", "data": [ { "object": "model" } ]}Missing or invalid API key.
Media typeapplication/json
object
error
object
message
string
type
string
param
string
code
string
Example
{ "error": { "message": "Invalid API key", "type": "api_error", "param": "", "code": "" }}