Image

Specifies:

  • text prompt for image generation (input)
  • image generation options (options)
  • where results will be stored (output)
post/v1/image/generate

Request

  • The document declares no server URL.
  • Auth
    • OAuth 2
      Password
      Token URL: token
    • or OAuth 2
      Password
      Token URL: token scopes: image_editing

Request body

inputstring required

Text prompt that will be used to generate image(s). Should be from 3 to 1024 characters.

outputstring uri

URL of the output folder. If output is not defined, we store the output image on our bucket and return the temporary URL, in this case images are stored for one day.

Example request

{
  "input": "A delicious ceviche cheesecake slice",
  "output": "storage://storage_1/output_folder/"
}

Response

Successful Response

Changes

    • info

      the endpoint scheme security OAuth2PasswordBearer was added to the API

    • info

      the endpoint scheme security OAuth2PasswordBearer was added to the API