# Pixel Density (DPI)

The Image Editing API allows you to control the pixel density of the result image.

To control the pixel density, set the argument `export.dpi` to a value between `72` and `1200` (included).

Here's an example of an API call to get a result image with a pixel density of 300 dpi:

```bash
curl --request POST \
  --url https://image-api.photoroom.com/v2/edit \
  --header 'x-api-key: YOUR_API_KEY' \
  --form imageFile=@/path/to/image.jpg \
  --form export.dpi=300 \
  --output result-with-300-dpi.png
```

<a href="https://try-api.photoroom.com/?export.dpi=300" class="button primary">Try it now!</a>


---

# 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.photoroom.com/image-editing-api-plus-plan/pixel-density-dpi.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.
