generate

Generate images from text prompts.

post/text-to-image

Request

  • Base URL
    https://dream-gateway.livepeer.cloud
  • URL
    https://dream-gateway.livepeer.cloud/text-to-image
  • Auth
    HTTP bearer

Request body

model_idstring required

Hugging Face model ID used for image generation.

lorasstring

A LoRA (Low-Rank Adaptation) model and its corresponding weight for image generation. Example: { "latent-consistency/lcm-lora-sdxl": 1.0, "nerijs/pixel-art-xl": 1.2}.

promptstring required

Text prompt(s) to guide image generation. Separate multiple prompts with '|' if supported by the model.

heightinteger

The height in pixels of the generated image.

widthinteger

The width in pixels of the generated image.

guidance_scalenumber

Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality).

negative_promptstring

Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1.

safety_checkboolean

Perform a safety check to estimate if generated images could be offensive or harmful.

seedinteger

Seed for random number generation.

num_inference_stepsinteger

Number of denoising steps. More steps usually lead to higher quality images but slower inference. Modulated by strength.

num_images_per_promptinteger

Number of images to generate per prompt.

Response

Successful Response

Changes

    • breaking

      the response's property type changed from no type to object for status

    • breaking

      the response's property type changed from no type to object for status

    • breaking

      the response's property type changed from no type to object for status

    • info

      removed from the response property allOf list for the response status

    • info

      removed from the response property allOf list for the response status

    • info

      removed from the response property allOf list for the response status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status