> For the complete documentation index, see [llms.txt](https://docs.claid.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.claid.ai/image-generation-api/image-generation-options.md).

# Image Generation Options

### Number of images

With our image generation API, you can generate up to 4 images with one request.

```json
{
    "options": {
        "number_of_images": 4
    }
}
```

{% hint style="info" %}
Every generated image charges 1 credit. So, setting <mark style="color:purple;">`number_of_images`</mark> to 4 will charge 4 credits per request.
{% endhint %}

### Guidance scale

The guidance scale controls how closely the generated images match your prompt. You may adjust this scale to gain more control over the output.

{% hint style="info" %}
Values between 5 and 7 usually provide good results, but a value of 12 may offer greater precision.
{% endhint %}

Note that adjusting this scale may affect image quality and diversity.

```json
{
    "options": {
        "guidance_scale": 5.0
    }
}
```

### Possible values

<table><thead><tr><th width="244">Parameter</th><th>Type</th><th>Range</th><th>Default value</th></tr></thead><tbody><tr><td><mark style="color:purple;"><code>number_of_images</code></mark></td><td>int</td><td>1 - 4</td><td>4</td></tr><tr><td><mark style="color:purple;"><code>guidance_scale</code></mark></td><td>float</td><td>1.0 - 49.99</td><td>5.0</td></tr></tbody></table>
