surya696030 commited on
Commit
9b5fddf
1 Parent(s): 64a9cf3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -1
README.md CHANGED
@@ -1,3 +1,62 @@
1
  ---
2
- license: c-uda
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: creativeml-openrail-m
3
+ library_name: diffusers
4
+ tags:
5
+ - text-image
6
+ - ultra-realistic
7
+ - stablediffusion-api
8
  ---
9
+ # API Inference
10
+
11
+ ![generated from stablediffusionapi.com](https://cdn.stablediffusionapi.com/generations/7504788501684254537.png)
12
+ ## Get API Key
13
+
14
+ Get API key from [Stable Diffusion API](http://stablediffusionapi.com/), No Payment needed.
15
+
16
+ Replace Key in below code, change **model_id** to "edge-of-realism"
17
+
18
+ Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://stablediffusionapi.com/docs)
19
+
20
+ Model link: [View model](https://stablediffusionapi.com/models/edge-of-realism)
21
+
22
+ Credits: [View credits](https://civitai.com/?query=model_search)
23
+
24
+ View all models: [View Models](https://stablediffusionapi.com/models)
25
+
26
+ import requests
27
+ import json
28
+
29
+ url = "https://stablediffusionapi.com/api/v3/dreambooth"
30
+
31
+ payload = json.dumps({
32
+ "key": "",
33
+ "model_id": "edge-of-realism",
34
+ "prompt": "actual 8K portrait photo of gareth person, portrait, happy colors, bright eyes, clear eyes, warm smile, smooth soft skin, big dreamy eyes, beautiful intricate colored hair, symmetrical, anime wide eyes, soft lighting, detailed face, by makoto shinkai, stanley artgerm lau, wlop, rossdraws, concept art, digital painting, looking into camera",
35
+ "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",
36
+ "width": "512",
37
+ "height": "512",
38
+ "samples": "1",
39
+ "num_inference_steps": "30",
40
+ "safety_checker": "no",
41
+ "enhance_prompt": "yes",
42
+ "seed": None,
43
+ "guidance_scale": 7.5,
44
+ "multi_lingual": "no",
45
+ "panorama": "no",
46
+ "self_attention": "no",
47
+ "upscale": "no",
48
+ "embeddings": "embeddings_model_id",
49
+ "lora": "lora_model_id",
50
+ "webhook": None,
51
+ "track_id": None
52
+ })
53
+
54
+ headers = {
55
+ 'Content-Type': 'application/json'
56
+ }
57
+
58
+ response = requests.request("POST", url, headers=headers, data=payload)
59
+
60
+ print(response.text)
61
+
62
+ > Use this coupon code to get 25% off **DMGG0RBN**