# Obtaining more items via Inference Endpoints API

**URL:** <https://discuss.huggingface.co/t/obtaining-more-items-via-inference-endpoints-api/31610>\
**Category:** Beginners\
**Created:** [February 13, 2023, 1:03pm UTC](https://discuss.huggingface.co/t/obtaining-more-items-via-inference-endpoints-api/31610 "2023-02-13T13:03:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![207912556uhggr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/207912556uhggr/32/14095_2.png) [@207912556uhggr](https://discuss.huggingface.co/u/207912556uhggr)\
**Post date:** [February 13, 2023, 1:03pm UTC](https://discuss.huggingface.co/t/obtaining-more-items-via-inference-endpoints-api/31610/1 "2023-02-13T13:03:19Z")

</div>

I’m using [https://huggingface.co/stabilityai/stable-diffusion-2-1](https://stable-diffusion-2-1) in my space and I’d like to use the Inference Endpoints API to obtain images based on prompts.

My code is the one generated:

```auto
import gradio as gr
gr.Interface.load("models/stabilityai/stable-diffusion-2-1")

```

So far so good, but I want to obtain 4 items when I call the API.  
How can I do that?

PS: A second question: is it possible to add parameters to the API request?

Thanks
