Generation Defaults
GET
/v1/image/generation/defaults
This endpoint is for retrieving for the generation operation.
Request Example
Below is an example for retrieving the defaults for the generation operation.
curl -X GET 'https://api.stablecog.com/v1/image/generation/defaults'
const API_HOST = 'https://api.stablecog.com';
const API_ENDPOINT = '/v1/image/generation/defaults';
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/defaults'
API_URL = f'{API_HOST}{API_ENDPOINT}'
response = requests.get(API_URL)
res_json = response.json()
print(json.dumps(res_json, indent=2))
Response
{
"model_id": "22b0857d-7edc-4d00-9cd9-45aa509db093",
"scheduler_id": "b7224e56-1440-43b9-ac86-66d66f9e8c91",
"width": 768,
"height": 768,
"num_outputs": 4,
"guidance_scale": 7,
"inference_steps": 30,
"prompt_strength": 0.6
}
Response Body
model_id
(enum) TGenerationModelID
scheduler_id
(enum) TGenerationSchedulerID
width
min256 max1024 | int
height
min256 max1024 | int
num_outputs
min1 max4 | int
guidance_scale
min1 max20 | float
inference_steps
min10 max50 | int
prompt_strength
min0 max1 | float