stablediffusionapi/summershard-environmental
23
1---2license: creativeml-openrail-m3tags:4 - modelslab.com5 - stable-diffusion-api6 - text-to-image7 - ultra-realistic8pinned: true9---10 11# Summershard - Environmental API Inference12 1314## Get API Key15 16Get API key from [ModelsLab API](http://modelslab.com), No Payment needed. 17 18Replace Key in below code, change **model_id** to "summershard-environmental"19 20Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://docs.modelslab.com)21 22Try model for free: [Generate Images](https://modelslab.com/models/summershard-environmental)23 24Model link: [View model](https://modelslab.com/models/summershard-environmental)25 26View all models: [View Models](https://modelslab.com/models)27 28 import requests 29 import json 30 31 url = "https://modelslab.com/api/v6/images/text2img" 32 33 payload = json.dumps({ 34 "key": "your_api_key", 35 "model_id": "summershard-environmental", 36 "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", 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** 