# \`width\` and \`height\` not working on Inference API

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwidth-and-height-not-working-on-inference-api%2F49961%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [August 8, 2023, 11:57am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwidth-and-height-not-working-on-inference-api%2F49961 "2023-08-08T11:57:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrazz](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@andrazz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fandrazz)%5C
**Post date:** [August 8, 2023, 11:57am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwidth-and-height-not-working-on-inference-api%2F49961%2F1 "2023-08-08T11:57:27Z")

</div>

Hi!

I’m using the python hub library to make a call to the inference API but the `height` and` width` parameters seem to be ignored and the size of the resulting image is always the same.

I’ve tried with several different models and didn’t have any luck. When I run the model in Automatic or ComfyUI it can produce any dimension, so the model is not an issue.

Any ideas?

---

<div class="post-metadata">

**Author:** ![andrazz](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@andrazz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fandrazz)%5C
**Post date:** [August 8, 2023, 12:16pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwidth-and-height-not-working-on-inference-api%2F49961%2F2 "2023-08-08T12:16:21Z")

</div>

Update: tested locally and was able to run inference with no issues.

---

<div class="post-metadata">

**Author:** ![andrazz](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@andrazz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fandrazz)%5C
**Post date:** [August 9, 2023, 10:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwidth-and-height-not-working-on-inference-api%2F49961%2F3 "2023-08-09T10:07:56Z")

</div>

Turned out to be a bug with HuggingFace. Looks like they already fixed it.
