Image Generation Options
Learn how to control the quality and speed of image generation.
With our image generation API, you can generate up to 4 images with one request.
{
"options": {
"number_of_images": 4
}
}
Every generated image charges 1 credit. So, setting
number_of_images
to 4 will charge 4 credits per request.The guidance scale controls how closely the generated images match your prompt. You may adjust this scale to gain more control over the output.
Values between 5 and 7 usually provide good results, but a value of 12 may offer greater precision.
Note that adjusting this scale may affect image quality and diversity.
{
"options": {
"guidance_scale": 5.0
}
Parameter | Type | Range | Default value |
---|---|---|---|
number_of_images | int | 1 - 4 | 4 |
guidance_scale | float | 1.0 - 49.99 | 5.0 |