# Image over Image

## /image-over-image

### Query Parameters

* `background`: URL of the background image.
* `overlay`: URL of the overlay image.
* `alignment`: Alignment of the overlay image. Possible values: `topleft`, `topcenter`, `topright`, `middleleft`, `center`, `middleright`, `bottomleft`, `bottomcenter`, `bottomright`. Default is `center`.
* `size`: Size of the overlay image as a percentage of the background image width. Default is `100`.

### Example

```http
GET /image-over-image?background=https://example.com/background.jpg&overlay=https://example.com/overlay.png&alignment=topright&size=50
```

### Response

```json
{
  "imageUrl": "https://i.imgur.com/abc123.jpg"
}
```

### Errors

* `500 Internal Server Error`: Failed to generate or upload image.


---

# 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.ziomark.xyz/get-endpoints/image-over-image.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.
