edwixx commited on
Commit
21f965d
·
1 Parent(s): c492dbf

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: creativeml-openrail-m
4
+ tags:
5
+ - stablediffusionapi.com
6
+ - stable-diffusion-api
7
+ - text-to-image
8
+ - ultra-realistic
9
+ pinned: true
10
+ ---
11
+
12
+ # Inkmix API Inference
13
+
14
+ ![generated from stablediffusionapi.com](https://assets.modelslab.com/generations/c83e2504-02b4-49af-b5c9-880b12a43b65-0.png)
15
+ ## Get API Key
16
+
17
+ Get API key from [Stable Diffusion API](http://stablediffusionapi.com/), No Payment needed.
18
+
19
+ Replace Key in below code, change **model_id** to "inkmix"
20
+
21
+ Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://stablediffusionapi.com/docs)
22
+
23
+ Model link: [View model](https://stablediffusionapi.com/models/inkmix)
24
+
25
+ import requests
26
+ import json
27
+
28
+ url = "https://stablediffusionapi.com/api/v3/dreambooth"
29
+
30
+ payload = json.dumps({
31
+ "key": "",
32
+ "model_id": "inkmix",
33
+ "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",
34
+ "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",
35
+ "width": "512",
36
+ "height": "512",
37
+ "samples": "1",
38
+ "num_inference_steps": "30",
39
+ "safety_checker": "no",
40
+ "enhance_prompt": "yes",
41
+ "seed": None,
42
+ "guidance_scale": 7.5,
43
+ "multi_lingual": "no",
44
+ "panorama": "no",
45
+ "self_attention": "no",
46
+ "upscale": "no",
47
+ "embeddings": "embeddings_model_id",
48
+ "lora": "lora_model_id",
49
+ "webhook": None,
50
+ "track_id": None
51
+ })
52
+
53
+ headers = {
54
+ 'Content-Type': 'application/json'
55
+ }
56
+
57
+ response = requests.request("POST", url, headers=headers, data=payload)
58
+
59
+ print(response.text)
60
+
61
+ > Use this coupon code to get 25% off **DMGG0RBN**