adhikjoshi
commited on
Commit
•
0e1e10b
1
Parent(s):
a27e675
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
# copax-timelessxl-sdxl10 API Inference
|
12 |
+
|
13 |
+
![generated from stablediffusionapi.com](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/af6f4367-6493-4d38-b74b-f84709a4f9d7/width=450/631148901874805624.jpeg)
|
14 |
+
## Get API Key
|
15 |
+
|
16 |
+
Get API key from [Stable Diffusion API](http://stablediffusionapi.com/), No Payment needed.
|
17 |
+
|
18 |
+
Replace Key in below code, change **model_id** to "copax-timelessxl-sdxl10"
|
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/copax-timelessxl-sdxl10)
|
23 |
+
|
24 |
+
Model link: [View model](https://stablediffusionapi.com/models/copax-timelessxl-sdxl10)
|
25 |
+
|
26 |
+
Credits: [View credits](https://civitai.com/?query=copax-timelessxl-sdxl10)
|
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/v4/dreambooth"
|
34 |
+
|
35 |
+
payload = json.dumps({
|
36 |
+
"key": "your_api_key",
|
37 |
+
"model_id": "copax-timelessxl-sdxl10",
|
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**
|