Upscale Models
GET
/v1/image/upscale/models
This endpoint is for retrieving our upscale models.
Request Example
Below is an example for retrieving our upscale models.
curl -X GET 'https://api.stablecog.com/v1/image/upscale/models'
const API_HOST = 'https://api.stablecog.com';
const API_ENDPOINT = '/v1/image/upscale/models';
const API_URL = `${API_HOST}${ENDPOINT}`;
const res = await fetch(API_URL);
const resJSON = await res.json();
console.log(resJSON);
import requests
API_HOST = 'https://api.stablecog.com'
API_ENDPOINT = '/v1/image/upscale/models'
API_URL = f'{API_HOST}{API_ENDPOINT}'
response = requests.get(API_URL)
res_json = response.json()
print(json.dumps(res_json, indent=2))
Response
{
"models": [
{
"id": "14c9c5a4-33a8-4aed-a648-ee8510ae65b2",
"name": "SwinIR",
"is_default": true
}
]
}
Response Body
models
array of TUpscaleModel
An array of our upscale models.