# Genarate image in high resolution

This feature allows for creating high-quality, large-format images with stable diffusion, a powerful AI model for interpreting descriptive prompts. You can always specify the exact `width` and `height` of the image, and AI-based upscaling will adjust the output to these dimensions. For even finer detail, an optional `generative_upscale` parameter allows diffusion model-based upscaling, which enhances resolution and textures specifically with generative diffusion, resulting in rich, refined details.

When `generative_upscale` is set to `true`, the diffusion model handles the upscaling to the specified dimensions, preserving fine details and textures. This option is ideal for use cases where the highest visual quality is required, such as large displays or print.

```reason
{
    "width": 2048,
    "height": 1024,
    "generative_upscale": true,
    "background": {
        "generate": {
            "description": "small cottage and cows eating grass on the green fields. Sunset."
        }
    }
}
```

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FgZ1IDC6BOJ4LhrklMKuc%2Fimage.png?alt=media&#x26;token=e0923999-255e-4161-9c38-88a8b9124502" alt=""><figcaption></figcaption></figure>


---

# 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://documentation.deep-image.ai/common-usecases/genarate-image-in-high-resolution.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.
