# Obtaining more items via Inference Endpoints API

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fobtaining-more-items-via-inference-endpoints-api%2F31610%3E%5C
**Category:** Beginners\
**Created:** [February 13, 2023, 1:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fobtaining-more-items-via-inference-endpoints-api%2F31610 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2F207912556uhggr)%5C
**Post date:** [February 13, 2023, 1:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fobtaining-more-items-via-inference-endpoints-api%2F31610%2F1 "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
