Request generationpost https://ai.api.nvidia.com/v1/genai/stabilityai/stable-diffusion-xlBody Paramsheightinteger1024 to 1024Defaults to 1024Height of the image to generate, in pixels. Only height=1024 is supportedwidthinteger1024 to 1024Defaults to 1024Width of the image to generate, in pixels. Only width=1024 is supportedtext_promptsarray of objectsrequiredlength between 1 and 2An array of text prompts to use for generationText Prompts* objecttextstringrequiredThe prompt itselfweightnumberenumDefaults to 1Weight of the prompt, only weight=1.0 for prompt and weight=-1 for negative prompt is supported1-1Allowed:1-1ADD objectcfg_scalenumber≤ 9Defaults to 5How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt).clip_guidance_presetstringenumDefaults to NONEclip guidance preset. Only clip_guidance_preset=NONE is supportedNONEAllowed:NONEsamplerstringenumDefaults to K_DPM_2_ANCESTRALThe sampler to use for generation. Varying diffusion samplers will vary outputs significantly.DDIMK_EULER_ANCESTRALK_LMSK_DPM_2_ANCESTRALAllowed:DDIMK_EULER_ANCESTRALK_LMSK_DPM_2_ANCESTRALsamplesinteger1 to 1Defaults to 1Number of images to generate. Only samples=1 is supportedseedinteger≥ 0Defaults to 0The seed which governs generation. Omit this option or use 0 for a random seedstepsinteger5 to 100Defaults to 25Number of diffusion steps to runstyle_presetstringenumDefaults to nonePass in a style preset to guide the image model towards a particular style. This list of style presets is subject to change. style_preset=none is supportednoneAllowed:noneResponses 200Successful Response 422Validation ErrorUpdated almost 2 years ago