EpicJhon commited on
Commit
abf79d1
·
verified ·
1 Parent(s): 452c1a2

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. readme.md +51 -0
readme.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ tags:
4
+ - stablediffusionapi.com
5
+ - stable-diffusion-api
6
+ - text-to-image
7
+ - ultra-realistic
8
+ pinned: true
9
+ ---
10
+
11
+ # Naschain 2.0 API Inference
12
+
13
+ View all models: [View Models](https://stablediffusionapi.com/models)
14
+
15
+ import requests
16
+ import json
17
+
18
+ url = "https://stablediffusionapi.com/api/v4/dreambooth"
19
+
20
+ payload = json.dumps({
21
+ "key": "your_api_key",
22
+ "model_id": "newdream-sdxl-20",
23
+ "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",
24
+ "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",
25
+ "width": "512",
26
+ "height": "512",
27
+ "samples": "1",
28
+ "num_inference_steps": "30",
29
+ "safety_checker": "no",
30
+ "enhance_prompt": "yes",
31
+ "seed": None,
32
+ "guidance_scale": 7.5,
33
+ "multi_lingual": "no",
34
+ "panorama": "no",
35
+ "self_attention": "no",
36
+ "upscale": "no",
37
+ "embeddings": "embeddings_model_id",
38
+ "lora": "lora_model_id",
39
+ "webhook": None,
40
+ "track_id": None
41
+ })
42
+
43
+ headers = {
44
+ 'Content-Type': 'application/json'
45
+ }
46
+
47
+ response = requests.request("POST", url, headers=headers, data=payload)
48
+
49
+ print(response.text)
50
+
51
+ > Use this coupon code to get 25% off **DMGG0RBN**