gateway

Generate image

Generate an image through the Dench gateway.

post/images/generations

Request

  • Base URL
    https://www.dench.com/api/v1
  • Auth
    • HTTP bearer
    • or HTTP bearer

Request body

promptstring required

Image prompt.

sizestring

e.g. 1024x1024, 1536x1024, auto.

quality'auto' | 'low' | 'medium' | 'high'
format'png' | 'jpeg' | 'webp'
output_compressioninteger
background'auto' | 'opaque' | 'transparent'
savePathstring

Workspace path to write the image.

Response

Successful response

okboolean required
modelstring required
endpoint'generations' | 'edits' required
promptstring required
revisedPromptstring
qualitystring
requestedSizestring
formatstring
mimeTypestring
estimatedCostUsdnumber
b64_jsonstring required

Base64-encoded image bytes.

storageIdstring
pathstring required

Workspace path where the image was saved.

signedUrlstring nullable required
contentHashstring
sizeBytesnumber

Changes

No recorded changes to this operation across all 1 revision of this API.