Abdullah-Habib commited on
Commit
c121d94
1 Parent(s): ba80296

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -47
README.md CHANGED
@@ -8,50 +8,4 @@ tags:
8
  pinned: true
9
  ---
10
  # DucHaiten-Real3D-NSFW-XL v1.0 API Inference
11
-
12
- ![generated from modelslab.com](https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/18724215631705520247.png)
13
- ## Get API Key
14
-
15
- Get API key from [ModelsLab API](http://modelslab.com), No Payment needed.
16
-
17
- Replace Key in below code, change **model_id** to "duchaiten-real3d-nsfw-xl"
18
- Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://modelslab.com/docs)
19
- Try model for free: [Generate Images](https://modelslab.com/models/duchaiten-real3d-nsfw-xl)
20
- Model link: [View model](https://modelslab.com/models/duchaiten-real3d-nsfw-xl)
21
- View all models: [View Models](https://modelslab.com/models)
22
- import requests
23
- import json
24
-
25
- url = "https://modelslab.com/api/v6/images/text2img"
26
-
27
- payload = json.dumps({
28
- "key": "your_api_key",
29
- "model_id": "duchaiten-real3d-nsfw-xl",
30
- "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",
31
- "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",
32
- "width": "512",
33
- "height": "512",
34
- "samples": "1",
35
- "num_inference_steps": "30",
36
- "safety_checker": "no",
37
- "enhance_prompt": "yes",
38
- "seed": None,
39
- "guidance_scale": 7.5,
40
- "multi_lingual": "no",
41
- "panorama": "no",
42
- "self_attention": "no",
43
- "upscale": "no",
44
- "embeddings": "embeddings_model_id",
45
- "lora": "lora_model_id",
46
- "webhook": None,
47
- "track_id": None
48
- })
49
-
50
- headers = {
51
- 'Content-Type': 'application/json'
52
- }
53
-
54
- response = requests.request("POST", url, headers=headers, data=payload)
55
-
56
- print(response.text)
57
- > Use this coupon code to get 25% off **DMGG0RBN**
 
8
  pinned: true
9
  ---
10
  # DucHaiten-Real3D-NSFW-XL v1.0 API Inference
11
+ cloned from https://huggingface.co/stablediffusionapi/duchaiten-real3d-nsfw-xl