Generation Models
GET
/v1/image/generation/models
This endpoint is for retrieving our generation models.
Request Example
Below is an example for retrieving our generation models.
curl -X GET 'https://api.stablecog.com/v1/image/generation/models'
const API_HOST = 'https://api.stablecog.com';
const API_ENDPOINT = '/v1/image/generation/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/generation/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": [···]
}
Response Body
models
array of TGenerationModel
An array of our generation models.