POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 const axios = require('axios'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/sdxl1.0-newreality-lightning"; const data = { "prompt": "Thelema-themed, ethereal fantasy concept art of Dystopian style Grim-noire, wide angle shot, (establishing shot:1.7), Perfect photograph, ((Hell hath no queen! But, o thou red mouthed curving In kisses that bring blood, shall I be alone? What of the accomplice of these deeds unswerving? Will not your dead hot kisses match mine own? As here your ardours brand me bone and marrow Biting like fire and poison in my veins, Shall you not there still ply your nameless harrow. Mingle a cup from those our common pains To intoxicate us with an extreme pleasure Keener than life, more dolorous than death Till these infernal blisses pass the measure Of heaven imagined by the tremulous breaths Of silly saints and silly sinners, swaying From scraps of blasphemy to scraps of praying?)), perfect composition, dynamic lighting, dramatic action, trending on artstation, sharp focus, studio photo, intricate details, highly detailed, Bleak, post-apocalyptic, somber, dramatic, highly detailed, dramatic , Zeiss Master Prime Lenses, Panavision, Film Stock Footage, Kodak Eastman 100T 5247 Cinematic .magnificent, celestial, ethereal, painterly, epic, majestic, magical, fantasy art, cover art, dreamy, misc, . highly detailed", "negative_prompt": "((close up)),(octane render, render, drawing, bad photo, bad photography:1.3), (worst quality, low quality, blurry:1.2), (bad teeth, deformed teeth, deformed lips), (bad anatomy, bad proportions:1.1), (deformed iris, deformed pupils), (deformed eyes, bad eyes), (deformed face, ugly face, bad face), (deformed hands, bad hands, fused fingers), morbid, mutilated, mutation, disfigured", "samples": 1, "scheduler": "DPM++ SDE", "num_inference_steps": 7, "guidance_scale": 1, "seed": 1220429729, "img_width": 1024, "img_height": 1024, "base64": false }; (async function() { try { const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } }); console.log(response.data); } catch (error) { console.error('Error:', error.response.data); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


promptstr *

Prompt to render


negative_promptstr ( default: None )

blur, noisy, disfigured


samplesint ( default: 1 ) Affects Pricing

Number of samples to generate.

min : 1,

max : 4


schedulerenum:str ( default: DPM++ SDE )

Type of scheduler.

Allowed values:


num_inference_stepsint ( default: 7 ) Affects Pricing

Number of denoising steps.

min : 1,

max : 100


guidance_scalefloat ( default: 1.4 )

Scale for classifier-free guidance

min : 1,

max : 25


seedint ( default: -1 )

Seed for image generation.

min : -1,

max : 999999999999999


img_widthenum:int ( default: 1024 ) Affects Pricing

Can only be 1024 for SDXL

Allowed values:


img_heightenum:int ( default: 1024 ) Affects Pricing

Can only be 1024 for SDXL

Allowed values:


base64boolean ( default: 1 )

Base64 encoding of the output image.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

NewReality Lightning SDXL

The NewReality Lightning SDXL model represents a significant advancement in image generation technology, focusing on producing images with a high level of consistency in photorealism while infusing creativity and imagination into the subject and style of the generated content. This cutting-edge model is designed to deliver top-tier results that blend realism with artistic flair.Distinguished by its commitment to consistency in photorealistic images and a fusion of creativity and imagination, the NewReality Lightning SDXL sets a new standard for excellence in image generation.

A standout feature of the NewReality Lightning SDXL is its exceptional ability to generate high-quality images with consistent photorealism while incorporating elements of creativity and imagination into the subject matter and style. This unique approach makes it a preferred choice for applications that demand both realism and artistic innovation in their visual content. With the capacity to produce captivating images that push the boundaries of creativity while maintaining a high level of realism, this model offers a harmonious blend of technical precision and artistic vision.

To optimize the performance of the NewReality Lightning SDXL, ensuring compatibility with the DPM++ SDE Karras / DPM++ SDE sampler is crucial. Leveraging 4-6 sampling steps and a CFG Scale set between 1 and 2 is recommended to achieve peak performance and efficiency in the image generation process. These tailored settings are essential for unlocking the full creative potential of this advanced model and producing images that seamlessly combine photorealism with imaginative elements.