You can make an API call to your trained models as well as to any public model.
You can find a list of the public models available and their IDs here

Request
Make aPOST
request to endpoint and pass the required parameters as a request body.
curl
Body
The model_id:“flux” does not support the following parameters
negative_prompt
, enhance_prompt
,enhance_style
, lora trained on SD models
, ip_adaptors
, upscale
and highres_fix
.You can also use multi Lora. Just make sure to pass comma saparated lora model ids to the
lora_model
as "more_details,animie"
in the request body.Body
json
Body
application/json
Response
Text-to-image generation response
The response is of type object
.