Comment on page

Image generation

Image can be generated based on text prompt in given resolution.
{
"width": 2048,
"height": 1024,
"background": {
"generate": {
"generation_type": "generate",
"description": "woman in a futuristic suit holding a gun in her hand, looking at the camera, cyberpunk art, neo-figurative, anime"
}
}
}
And the result:
There are additional positive and negative prompts by default:
Field name
Default value
additional_prompt
high quality, highly detailed, 8K, hyper realistic, photorealistic
negative_prompt
painting, cartoon, sketches, lowres, bad anatomy, bad hands, worst quality, bad proportions, blurry, cloned face, cropped, deformed, dehydrated, disfigured, error, extra arms, extra fingers, extra legs, extra limbs, fused fingers, gross proportions, jpeg artifacts, long neck, low quality, lowres, malformed limbs, missing arms, missing legs, morbid, mutated hands, mutation, mutilated, out of frame, poorly drawn face, poorly drawn hands, signature, text, too many fingers, ugly, username, watermark, worst quality, deformed architecture, deformed furniture, extra table legs, extra chair legs, doubled
They can be overwritten by:
{
"width": 2048,
"height": 1024,
"background": {
"generate": {
"generation_type": "generate",
"description": "woman in a futuristic suit holding a gun in her hand, looking at the camera, cyberpunk art, neo-figurative, anime",
"additional_prompt": "Captured with a Nikon D850 camera and a 50mm f/1. 4 lens. vignette",
"negative_prompt": "ugly, deformed, noisy, blurry, distorted, grainy"
}
}
}