Muapi commited on
Commit
5cdba3e
·
verified ·
1 Parent(s): 345f5e5

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -24
README.md CHANGED
@@ -1,34 +1,64 @@
1
  ---
2
- license: openrail++
3
- library_name: diffusers
4
  tags:
 
 
5
  - text-to-image
6
- - stable-diffusion
7
- - sd-1.5
8
- pipeline_tag: text-to-image
9
  ---
10
 
11
- # Counterfeit V3.0
12
 
13
- **Base model**: SD 1.5
 
14
 
15
- Originally published by [stablediffusionapi](https://huggingface.co/stablediffusionapi).
16
- Mirrored here for use with [muapi.ai](https://muapi.ai) — a unified API for generative media.
17
 
18
- ## 🧠 Usage via muapi.ai
19
 
20
- 🔑 **Get your MUAPI key** from [muapi.ai/access-keys](https://muapi.ai/access-keys)
21
 
22
- ```python
23
- import requests, os
24
- url = "https://api.muapi.ai/api/v1/sd-image"
25
- headers = {"Content-Type": "application/json", "x-api-key": os.getenv("MUAPIAPP_API_KEY")}
26
- payload = {
27
- "prompt": "masterpiece, best quality",
28
- "model": "counterfeit-v30",
29
- "width": 512,
30
- "height": 512,
31
- "num_images": 1
32
- }
33
- print(requests.post(url, headers=headers, json=payload).json())
34
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # counterfeit-v3.0 API Inference
12
 
13
+ ![generated from modelslab.com](https://assets.modelslab.com/generations/d3d3f607-e8c6-4758-903a-17804fb4002b-0.png)
14
+ ## Get API Key
15
 
16
+ Get API key from [ModelsLab](https://modelslab.com/), No Payment needed.
 
17
 
18
+ Replace Key in below code, change **model_id** to "counterfeit-v30"
19
 
20
+ Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://stablediffusionapi.com/docs)
21
 
22
+ Model link: [View model](https://stablediffusionapi.com/models/counterfeit-v30)
23
+
24
+ Credits: [View credits](https://civitai.com/?query=counterfeit-v3.0)
25
+
26
+ View all models: [View Models](https://stablediffusionapi.com/models)
27
+
28
+ import requests
29
+ import json
30
+
31
+ url = "https://stablediffusionapi.com/api/v3/dreambooth"
32
+
33
+ payload = json.dumps({
34
+ "key": "",
35
+ "model_id": "counterfeit-v30",
36
+ "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",
37
+ "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",
38
+ "width": "512",
39
+ "height": "512",
40
+ "samples": "1",
41
+ "num_inference_steps": "30",
42
+ "safety_checker": "no",
43
+ "enhance_prompt": "yes",
44
+ "seed": None,
45
+ "guidance_scale": 7.5,
46
+ "multi_lingual": "no",
47
+ "panorama": "no",
48
+ "self_attention": "no",
49
+ "upscale": "no",
50
+ "embeddings": "embeddings_model_id",
51
+ "lora": "lora_model_id",
52
+ "webhook": None,
53
+ "track_id": None
54
+ })
55
+
56
+ headers = {
57
+ 'Content-Type': 'application/json'
58
+ }
59
+
60
+ response = requests.request("POST", url, headers=headers, data=payload)
61
+
62
+ print(response.text)
63
+
64
+ > Use this coupon code to get 25% off **DMGG0RBN**