# Deploy and add height & width params to Stable Diffusion 2.0 Inference Endpoint

**URL:** <https://discuss.huggingface.co/t/deploy-and-add-height-width-params-to-stable-diffusion-2-0-inference-endpoint/31477>\
**Category:** Inference Endpoints on the Hub\
**Created:** [February 10, 2023, 11:12pm UTC](https://discuss.huggingface.co/t/deploy-and-add-height-width-params-to-stable-diffusion-2-0-inference-endpoint/31477 "2023-02-10T23:12:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cormacmatterr](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cormacmatterr](https://discuss.huggingface.co/u/cormacmatterr)\
**Post date:** [February 10, 2023, 11:12pm UTC](https://discuss.huggingface.co/t/deploy-and-add-height-width-params-to-stable-diffusion-2-0-inference-endpoint/31477/1 "2023-02-10T23:12:54Z")

</div>

I’m working on deploying [sd2](https://huggingface.co/stabilityai/stable-diffusion-2) to an inference endpoint.

How do I edit the configuration to allow for API requests including image/width params as available in similar [Replicate endpoints](https://replicate.com/stability-ai/stable-diffusion)?

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](https://discuss.huggingface.co/u/philschmid)\
**Post date:** [February 13, 2023, 7:43am UTC](https://discuss.huggingface.co/t/deploy-and-add-height-width-params-to-stable-diffusion-2-0-inference-endpoint/31477/2 "2023-02-13T07:43:13Z")

</div>

You can add a `parameters` key to your payload as describe here: [Supported Transformers &amp; Diffusers Tasks](https://huggingface.co/docs/inference-endpoints/supported_tasks#text-to-image)  
For stable diffusion you can provide:

```bash
        num_inference_steps
        guidance_scale
        height,
        width,
        negative_prompt

```
