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

# Image

<mark style="color:blue;">**`ENDPOINT : https://app.oxyapi.uk/v1/images/generations`**</mark>

## MidJourney&#x20;

`prompt  [string]`` `<mark style="color:red;">**`REQUIRED`**</mark>

* Prompt to use for the generation.

`model  [string]`` `<mark style="color:red;">**`REQUIRED`**</mark>

* ID of the model to use. See the [model endpoint compatibility](https://app.oxyapi.uk/v1/models).

`stream [boolean or null] Optional Defaults to false`

* If set, partial images with progression deltas will be sent.

## Stable Diffusion Models

`prompt  [string]`` `<mark style="color:red;">**`REQUIRED`**</mark>

* Prompt to use for the generation.

`negative_prompt  [string] Default to null Optional`&#x20;

* Generation negative prompt.

`model  [string]`` `<mark style="color:red;">**`REQUIRED`**</mark>

* ID of the model to use. See the [model endpoint compatibility](https://app.oxyapi.uk/v1/models) table for details on which models work with the Chat API..

`steps  [integer] Default to 25 Optional`&#x20;

* Generation denoising steps , must be in range 1 / 50

`sampler [string] Default to DPM++ 2M Karras Optional`&#x20;

* Generation sampler must be in the list :

  ```javascript
  ["Euler", "Euler a", "Heun", "DPM++ 2M Karras", "DPM++ SDE Karras", "DDIM"]
  ```

`n  [integer] Default to 1 Optional`&#x20;

* Generation images number , must be in range 1 / 4, when stream is true n must be 1.

`seed  [integer] Default to random Optional`&#x20;

* Generation seed.
