latestOpenAPI 3.0.02026-08-10525163.8 KB

327b3674db26

/ai/

post/ai/generate-image

Request body

inputstring required

Input for the text generation model

model'nai-diffusion' | 'safe-diffusion' | 'nai-diffusion-furry' | 'custom' | 'nai-diffusion-inpainting' | 'nai-diffusion-3-inpainting' | 'safe-diffusion-inpainting' | 'furry-diffusion-inpainting' | 'kandinsky-vanilla' | 'nai-diffusion-2' | 'nai-diffusion-3' required

Used image generation model

action'generate' | 'img2img' | 'infill'

Action to use, default is generate

parametersobject required

Generation parameters (model specific)

urlstring

Custom image generation URL

Example request

{
  "input": "Image generation example."
}

Response

The request has been accepted and the output is generating (SSE / ZIP attachment).

ptrnumber

Incrementing version pointer

imagestring

Generated image in base64

finalboolean

Set to true if the image is final and the generation ended

errorstring

Error from the generation node, if defined. Usually means the end of stream