POST
/
text-to-image

The public Livepeer.cloud Gateway used in this guide is intended for experimentation and is not guaranteed for production use. It is a free, non-token-gated, but rate-limited service designed for testing purposes. For production-ready applications, consider setting up your own Gateway node or partnering with one via the ai-video channel on Discord.

Please note that the optimal parameters for a given model may vary depending on the specific model and use case. The parameters provided in this guide are not model-specific and should be used as a starting point. Additionally, some models may have parameters such as guiding_scale and num_inference_steps disabled by default. For more information on model-specific parameters, please refer to the respective model documentation.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model_id
string
default: required
prompt
string
required
height
integer
width
integer
guidance_scale
number
default: 7.5
negative_prompt
string
default:
safety_check
boolean
default: true
seed
integer
num_inference_steps
integer
default: 50
num_images_per_prompt
integer
default: 1

Response

200 - application/json
images
object[]
required