newrealityxl global nsfw

stablediffusionapi

Introduction

The NewRealityXL Global NSFW model leverages the Stable Diffusion API to provide text-to-image generation capabilities with ultra-realistic outputs. This model is available through the Stable Diffusion API and does not require payment to use.

Architecture

The model is part of the StableDiffusionXLPipeline, which offers advanced features for generating highly detailed and realistic images. It supports various parameters to fine-tune the image generation process, such as prompts, image dimensions, and inference steps.

Training

The model has been optimized for generating ultra-realistic images based on specified prompts. It includes features that allow users to enhance prompts and suppress unwanted traits in images through the use of negative prompts.

Guide: Running Locally

  1. API Key: Obtain a free API key from Stable Diffusion API.
  2. Setup: Replace the placeholder API key in the code with your own.
  3. Code Example: Use the provided Python script to send a POST request to the API, specifying parameters like prompt, width, height, and num_inference_steps.
  4. Run: Execute the script to generate images.
  5. Cloud GPUs: For enhanced performance, consider using cloud-based GPU services like AWS, Google Cloud, or Azure.
import requests  
import json  
  
url = "https://stablediffusionapi.com/api/v4/dreambooth"  
  
payload = json.dumps({  
  "key": "your_api_key",  
  "model_id": "newrealityxl-global-nsfw",  
  "prompt": "ultra realistic close up portrait...",
  "width": "512",  
  "height": "512",  
  "samples": "1",  
  "num_inference_steps": "30",  
  "guidance_scale": 7.5  
})  
  
headers = {  
  'Content-Type': 'application/json'  
}  
  
response = requests.request("POST", url, headers=headers, data=payload)  
print(response.text)

License

The model is released under the CreativeML OpenRAIL-M license, which allows for free use with certain restrictions on the reproduction and distribution of generated content.

More Related APIs in Text To Image