Text-to-Image
Diffusers
Safetensors
StableDiffusionXLPipeline
stablediffusionapi.com
stable-diffusion-api
ultra-realistic
Run this model with HF Jobs
Run EpicJhon/24-3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/EpicJhon/24-3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/EpicJhon/24-3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use EpicJhon/24-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use EpicJhon/24-3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("EpicJhon/24-3", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload folder using huggingface_hub
Browse filesFiles changed (24)
- .gitignoreAdded+2
- README.mdAdded+66
- model_index.jsonAdded+42
- scheduler/scheduler_config.jsonAdded+23
- text_encoder/config.jsonAdded+25
- text_encoder/model.safetensorsAdded+3
- text_encoder/pytorch_model.binAdded+3
- text_encoder_2/config.jsonAdded+25
- text_encoder_2/model.safetensorsAdded+3
- text_encoder_2/pytorch_model.binAdded+3
- tokenizer/merges.txtAdded
- tokenizer/special_tokens_map.jsonAdded+30
- tokenizer/tokenizer_config.jsonAdded+30
- tokenizer/vocab.jsonAdded
- tokenizer_2/merges.txtAdded
- tokenizer_2/special_tokens_map.jsonAdded+30
- tokenizer_2/tokenizer_config.jsonAdded+38
- tokenizer_2/vocab.jsonAdded
- unet/config.jsonAdded+73
- unet/diffusion_pytorch_model.binAdded+3
- unet/diffusion_pytorch_model.safetensorsAdded+3
- vae/config.jsonAdded+37
- vae/diffusion_pytorch_model.binAdded+3
- vae/diffusion_pytorch_model.safetensorsAdded+3
12step_*epoch_*123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566---license: creativeml-openrail-mtags: - stablediffusionapi.com - stable-diffusion-api - text-to-image - ultra-realisticpinned: true---
# NewDream-SDXL 2.0 API Inference
## Get API Key
Get API key from [Stable Diffusion API](http://stablediffusionapi.com/), No Payment needed.
Replace Key in below code, change **model_id** to "newdream-sdxl-20"
Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://stablediffusionapi.com/docs)
Try model for free: [Generate Images](https://stablediffusionapi.com/models/newdream-sdxl-20)
Model link: [View model](https://stablediffusionapi.com/models/newdream-sdxl-20)
Credits: [View credits](https://civitai.com/?query=NewDream-SDXL%202.0)
View all models: [View Models](https://stablediffusionapi.com/models)
import requests import json url = "https://stablediffusionapi.com/api/v4/dreambooth" payload = json.dumps({ "key": "your_api_key", "model_id": "newdream-sdxl-20", "prompt": "ultra realistic close up portrait ((beautiful pale cyberpunk female with heavy black eyeliner)), blue eyes, shaved side haircut, hyper detail, cinematic lighting, magic neon, dark red city, Canon EOS R3, nikon, f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame, 8K", "negative_prompt": "painting, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, skinny, glitchy, double torso, extra arms, extra hands, mangled fingers, missing lips, ugly face, distorted face, extra legs, anime", "width": "512", "height": "512", "samples": "1", "num_inference_steps": "30", "safety_checker": "no", "enhance_prompt": "yes", "seed": None, "guidance_scale": 7.5, "multi_lingual": "no", "panorama": "no", "self_attention": "no", "upscale": "no", "embeddings": "embeddings_model_id", "lora": "lora_model_id", "webhook": None, "track_id": None }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
> Use this coupon code to get 25% off **DMGG0RBN** 123456789101112131415161718192021222324252627282930313233343536373839404142{ "_class_name": "StableDiffusionXLPipeline", "_diffusers_version": "0.29.0", "_name_or_path": "model", "feature_extractor": [ null, null ], "force_zeros_for_empty_prompt": true, "image_encoder": [ null, null ], "scheduler": [ "diffusers", "EulerDiscreteScheduler" ], "text_encoder": [ "transformers", "CLIPTextModel" ], "text_encoder_2": [ "transformers", "CLIPTextModelWithProjection" ], "tokenizer": [ "transformers", "CLIPTokenizer" ], "tokenizer_2": [ "transformers", "CLIPTokenizer" ], "unet": [ "diffusers", "UNet2DConditionModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}1234567891011121314151617181920212223{ "_class_name": "EulerDiscreteScheduler", "_diffusers_version": "0.29.0", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "final_sigmas_type": "zero", "interpolation_type": "linear", "num_train_timesteps": 1000, "prediction_type": "epsilon", "rescale_betas_zero_snr": false, "sample_max_value": 1.0, "set_alpha_to_one": false, "sigma_max": null, "sigma_min": null, "skip_prk_steps": true, "steps_offset": 1, "timestep_spacing": "leading", "timestep_type": "discrete", "trained_betas": null, "use_karras_sigmas": false}12345678910111213141516171819202122232425{ "_name_or_path": "model/text_encoder", "architectures": [ "CLIPTextModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "quick_gelu", "hidden_size": 768, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "projection_dim": 768, "torch_dtype": "float16", "transformers_version": "4.41.2", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:57f094c002b6f50986b68a714285e72a23c17d9e1b146b078a2219397c51e37asize 246144152123version https://git-lfs.github.com/spec/v1oid sha256:192a06f4ef7ece4acb33fc3c717790ee37b1f5d85e48e0dcac54dfea93e584a2size 24618556212345678910111213141516171819202122232425{ "_name_or_path": "model/text_encoder_2", "architectures": [ "CLIPTextModelWithProjection" ], "attention_dropout": 0.0, "bos_token_id": 0, "dropout": 0.0, "eos_token_id": 2, "hidden_act": "gelu", "hidden_size": 1280, "initializer_factor": 1.0, "initializer_range": 0.02, "intermediate_size": 5120, "layer_norm_eps": 1e-05, "max_position_embeddings": 77, "model_type": "clip_text_model", "num_attention_heads": 20, "num_hidden_layers": 32, "pad_token_id": 1, "projection_dim": 1280, "torch_dtype": "float16", "transformers_version": "4.41.2", "vocab_size": 49408}123version https://git-lfs.github.com/spec/v1oid sha256:8a0d55a94e8508c869f35163fb6fcf34e02ea1b614d9259b47f97c562cff9575size 1389382176123version https://git-lfs.github.com/spec/v1oid sha256:8841d5e4c05ce74941eb536ec3835f600cc82d36763fc5f30c69d09a886158c9size 1389490462123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "added_tokens_decoder": { "49406": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "49407": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<|startoftext|>", "clean_up_tokenization_spaces": true, "do_lower_case": true, "eos_token": "<|endoftext|>", "errors": "replace", "model_max_length": 77, "pad_token": "<|endoftext|>", "tokenizer_class": "CLIPTokenizer", "unk_token": "<|endoftext|>"}123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "!", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "!", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49406": { "content": "<|startoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "49407": { "content": "<|endoftext|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<|startoftext|>", "clean_up_tokenization_spaces": true, "do_lower_case": true, "eos_token": "<|endoftext|>", "errors": "replace", "model_max_length": 77, "pad_token": "!", "tokenizer_class": "CLIPTokenizer", "unk_token": "<|endoftext|>"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ "_class_name": "UNet2DConditionModel", "_diffusers_version": "0.29.0", "_name_or_path": "model/unet", "act_fn": "silu", "addition_embed_type": "text_time", "addition_embed_type_num_heads": 64, "addition_time_embed_dim": 256, "attention_head_dim": [ 5, 10, 20 ], "attention_type": "default", "block_out_channels": [ 320, 640, 1280 ], "center_input_sample": false, "class_embed_type": null, "class_embeddings_concat": false, "conv_in_kernel": 3, "conv_out_kernel": 3, "cross_attention_dim": 2048, "cross_attention_norm": null, "down_block_types": [ "DownBlock2D", "CrossAttnDownBlock2D", "CrossAttnDownBlock2D" ], "downsample_padding": 1, "dropout": 0.0, "dual_cross_attention": false, "encoder_hid_dim": null, "encoder_hid_dim_type": null, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 4, "layers_per_block": 2, "mid_block_only_cross_attention": null, "mid_block_scale_factor": 1, "mid_block_type": "UNetMidBlock2DCrossAttn", "norm_eps": 1e-05, "norm_num_groups": 32, "num_attention_heads": null, "num_class_embeds": null, "only_cross_attention": false, "out_channels": 4, "projection_class_embeddings_input_dim": 2816, "resnet_out_scale_factor": 1.0, "resnet_skip_time_act": false, "resnet_time_scale_shift": "default", "reverse_transformer_layers_per_block": null, "sample_size": 128, "time_cond_proj_dim": null, "time_embedding_act_fn": null, "time_embedding_dim": null, "time_embedding_type": "positional", "timestep_post_act": null, "transformer_layers_per_block": [ 1, 2, 10 ], "up_block_types": [ "CrossAttnUpBlock2D", "CrossAttnUpBlock2D", "UpBlock2D" ], "upcast_attention": false, "use_linear_projection": true}123version https://git-lfs.github.com/spec/v1oid sha256:56913b74b493462516ce770d525cca996feef7acd44cf0cba65de667a6c1d58csize 5135669022123version https://git-lfs.github.com/spec/v1oid sha256:9715fb3c6d0d81f46fbe6be46ddce05d91806aaf041504a52a44e1ec9e4f660fsize 513514976012345678910111213141516171819202122232425262728293031323334353637{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.29.0", "_name_or_path": "model/vae", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "force_upcast": true, "in_channels": 3, "latent_channels": 4, "latents_mean": null, "latents_std": null, "layers_per_block": 2, "norm_num_groups": 32, "out_channels": 3, "sample_size": 1024, "scaling_factor": 0.13025, "shift_factor": null, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ], "use_post_quant_conv": true, "use_quant_conv": true}123version https://git-lfs.github.com/spec/v1oid sha256:33c40ff3dc7adeb21dce76cd411d65828037efa0aa54432e3592418401cf8467size 167404866123version https://git-lfs.github.com/spec/v1oid sha256:915b909d0eeef5985462226b2c9950ca9da42b5a6ec8c296c2e73f6419ae465csize 167335342.gitignoreAdded+2
README.mdAdded+66
model_index.jsonAdded+42
scheduler/scheduler_config.jsonAdded+23
text_encoder/config.jsonAdded+25
text_encoder/model.safetensorsAdded+3
text_encoder/pytorch_model.binAdded+3
text_encoder_2/config.jsonAdded+25
text_encoder_2/model.safetensorsAdded+3
text_encoder_2/pytorch_model.binAdded+3
tokenizer/merges.txtAdded
tokenizer/special_tokens_map.jsonAdded+30
tokenizer/tokenizer_config.jsonAdded+30
tokenizer/vocab.jsonAdded
tokenizer_2/merges.txtAdded
tokenizer_2/special_tokens_map.jsonAdded+30
tokenizer_2/tokenizer_config.jsonAdded+38
tokenizer_2/vocab.jsonAdded
unet/config.jsonAdded+73
unet/diffusion_pytorch_model.binAdded+3
unet/diffusion_pytorch_model.safetensorsAdded+3
vae/config.jsonAdded+37
vae/diffusion_pytorch_model.binAdded+3
vae/diffusion_pytorch_model.safetensorsAdded+3