Obtaining more items via Inference Endpoints API

I’m using https://huggingface.co/stabilityai/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:

import gradio as gr

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?