Muapi commited on
Commit
a442849
·
verified ·
1 Parent(s): 01bc7b5

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -24
README.md CHANGED
@@ -1,34 +1,66 @@
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
- # Simpsons
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": "simpsons",
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
+ # Simpsons 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 "simpsons"
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
+ Try model for free: [Generate Images](https://stablediffusionapi.com/models/simpsons)
23
+
24
+ Model link: [View model](https://stablediffusionapi.com/models/simpsons)
25
+
26
+ Credits: [View credits](https://civitai.com/?query=Simpsons)
27
+
28
+ View all models: [View Models](https://stablediffusionapi.com/models)
29
+
30
+ import requests
31
+ import json
32
+
33
+ url = "https://stablediffusionapi.com/api/v3/dreambooth"
34
+
35
+ payload = json.dumps({
36
+ "key": "your_api_key",
37
+ "model_id": "simpsons",
38
+ "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",
39
+ "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",
40
+ "width": "512",
41
+ "height": "512",
42
+ "samples": "1",
43
+ "num_inference_steps": "30",
44
+ "safety_checker": "no",
45
+ "enhance_prompt": "yes",
46
+ "seed": None,
47
+ "guidance_scale": 7.5,
48
+ "multi_lingual": "no",
49
+ "panorama": "no",
50
+ "self_attention": "no",
51
+ "upscale": "no",
52
+ "embeddings": "embeddings_model_id",
53
+ "lora": "lora_model_id",
54
+ "webhook": None,
55
+ "track_id": None
56
+ })
57
+
58
+ headers = {
59
+ 'Content-Type': 'application/json'
60
+ }
61
+
62
+ response = requests.request("POST", url, headers=headers, data=payload)
63
+
64
+ print(response.text)
65
+
66
+ > Use this coupon code to get 25% off **DMGG0RBN**