# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.claid.ai/image-generation-api/image-generation-options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
