Playground Images

Playground image generation

Generates images in the playground. Requires ai.operate or ai.manage permission. Uses the same request/response format as the API key image generation endpoint.

post/api/v1/{workspaceID}/playground/images/generations

Request

  • Base URL
    https://ai.liara.ir
  • URL
    https://ai.liara.ir/api/v1/{workspaceID}/playground/images/generations
  • Auth
    API key in header Authorization

Path parameters

workspaceIDstring required

The workspace ID

Request body

promptstring required
modelstring required
nnumber
sizestring
qualitystring
output_format'png' | 'jpeg' | 'webp'

Response

Successful response

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.