Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Images

The image object

Represents the url or the content of an image generated by the Slier.AI API.

  • NameurlTypestringDescription

    The URL of the generated image, if response_format is url (default).

The image object

{
  "url": "...."
}

Create image

POST https://api.Slier.ai/v1/images/generations

POST https://api.Slier.ai/v2/images/generations

Creates an image given a prompt.

Available parameters

model string Required ID of the model to use. See the model endpoint compatibility table for details on which models work with the Images API.

prompt string Required A text description of the desired image(s). The maximum length is 1000 characters.

model_params object Optional Each model is different Used to set various parameters of the model.

  • n number or null Optional

    • The number of images to generate. Must be between 1 and 10.

  • Obtain the other configurable parameters from the model interface.

Example Request

POST /v1/images/generations

Response

Last updated