API reference
Retrieve a model
GET
/
v1
/
models
/
{model}
Retrieve a model
curl --request GET \
--url https://api.slashy.com/v1/models/{model} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.slashy.com/v1/models/{model}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.slashy.com/v1/models/{model}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "echo",
"object": "model",
"created": 123,
"owned_by": "slashy"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"code": "<string>",
"param": "<string>"
}
}Authorizations
⌘I
Retrieve a model
curl --request GET \
--url https://api.slashy.com/v1/models/{model} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.slashy.com/v1/models/{model}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.slashy.com/v1/models/{model}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "echo",
"object": "model",
"created": 123,
"owned_by": "slashy"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"code": "<string>",
"param": "<string>"
}
}