Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TEXT TO IMG
- Post https://stablediffusionapi.com/api/v3/text2img
- Req:
- {
- 'model_id': 'anything-v3',
- 'mask_image': None,
- 'control_image': None,
- 'width': '1024',
- 'height': '1024',
- 'prompt': ' ',
- 'guess_mode': None,
- 'use_karras_sigmas': None,
- 'tomesd': None,
- 'vae': 'sd-ft-mse',
- 'embeddings': None,
- 'lora_strength': None,
- 'multi_lingual': None,
- 'upscale': None,
- 'strength': 1,
- 'negative_prompt': 'high contrast, ugly, duplicate',
- 'guidance': '10',
- 'samples': '1',
- 'safety_checker': None,
- 'auto_hint': 'yes',
- 'steps': 5,
- 'seed': 0,
- 'webhook': None,
- 'track_id': None,
- 'scheduler': 'EulerAncestralDiscreteScheduler',
- 'base64': None,
- 'clip_skip': None,
- 'controlnet_conditioning_scale': None,
- 'temp': None,
- 'controlnet_type': None,
- 'controlnet_model': 'softedge',
- 'lora': 'more_details'
- }
- Resp:
- {'status': 'success', 'generationTime': 4.714416980743408, 'id': 30427775, 'output': ['https://cdn.stablediffusionapi.com/generations/57355771-dab1-465b-8182-382eefeaff78-0.png'], 'meta': {'H': 1024, 'W': 1024, 'enable_attention_slicing': 'true', 'file_prefix': '57355771-dab1-465b-8182-382eefeaff78', 'guidance_scale': 7, 'model': 'runwayml/stable-diffusion-v1-5', 'n_samples': 1, 'negative_prompt': 'high contrast, ugly, duplicate', 'outdir': 'out', 'prompt': 'pirate', 'revision': 'fp16', 'safetychecker': 'no', 'seed': 2907, 'steps': 20, 'vae': 'stabilityai/sd-vae-ft-mse'}}
- IMG TO IMG
- POST https://stablediffusionapi.com/api/v3/img2img
- REQ:
- {
- "key": "",
- "prompt": "a cat sitting on a bench",
- "negative_prompt": null,
- "init_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png",
- "width": "512",
- "height": "512",
- "samples": "1",
- "num_inference_steps": "30",
- "safety_checker": "no",
- "enhance_prompt": "yes",
- "guidance_scale": 7.5,
- "strength": 0.7,
- "seed": null,
- "webhook": null,
- "track_id": null
- }
- RESP:
- {
- "status": "success",
- "generationTime": 2.920767068862915,
- "id": 302455,
- "output": [
- "https://d1okzptojspljx.cloudfront.net/generations/05c3260d-6a2e-4aa5-82f0-e952f2a5fa10-0.png"
- ],
- "meta": {
- "H": 512,
- "W": 512,
- "enable_attention_slicing": "true",
- "file_prefix": "05c3260d-6a2e-4aa5-82f0-e952f2a5fa10",
- "guidance_scale": 7.5,
- "model": "runwayml/stable-diffusion-v1-5",
- "n_samples": 1,
- "negative_prompt": "((out of frame)), ((extra fingers)), mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), (((tiling))), ((naked)), ((tile)), ((fleshpile)), ((ugly)), (((abstract))), blurry, ((bad anatomy)), ((bad proportions)), ((extra limbs)), cloned face, (((skinny))), glitchy, ((extra breasts)), ((double torso)), ((extra arms)), ((extra hands)), ((mangled fingers)), ((missing breasts)), (missing lips), ((ugly face)), ((fat)), ((extra legs)), anime",
- "outdir": "out",
- "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",
- "revision": "fp16",
- "safety_checker": "none",
- "seed": 1793745243,
- "steps": 20,
- "vae": "stabilityai/sd-vae-ft-mse"
- }
- }
- INPAINTING
- POST https://stablediffusionapi.com/api/v3/inpaint
- REQ:
- {
- "key": "",
- "prompt": "a cat sitting on a bench",
- "negative_prompt": null,
- "init_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png",
- "mask_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png",
- "width": "512",
- "height": "512",
- "samples": "1",
- "num_inference_steps": "30",
- "safety_checker": "no",
- "enhance_prompt": "yes",
- "guidance_scale": 7.5,
- "strength": 0.7,
- "seed": null,
- "webhook": null,
- "track_id": null
- }
- RESP:
- {
- "status": "success",
- "generationTime": 1.9110066890716553,
- "id": 12384052,
- "output": [
- "https://pub-8b49af329fae499aa563997f5d4068a4.r2.dev/generations/e67183ee-73c1-45c4-84e7-0dec6f657d33-0.png"
- ],
- "meta": {
- "H": 512,
- "W": 512,
- "file_prefix": "e67183ee-73c1-45c4-84e7-0dec6f657d33",
- "guidance_scale": 7.5,
- "init_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png",
- "mask_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png",
- "n_samples": 1,
- "negative_prompt": " ((out of frame)), ((extra fingers)), mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), (((tiling))), ((naked)), ((tile)), ((fleshpile)), ((ugly)), (((abstract))), blurry, ((bad anatomy)), ((bad proportions)), ((extra limbs)), cloned face, glitchy, ((extra breasts)), ((double torso)), ((extra arms)), ((extra hands)), ((mangled fingers)), ((missing breasts)), (missing lips), ((ugly face)), ((fat)), ((extra legs))",
- "outdir": "out",
- "prompt": "a cat sitting on a bench DSLR photography, sharp focus, Unreal Engine 5, Octane Render, Redshift, ((cinematic lighting)), f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame",
- "safetychecker": "no",
- "seed": 3163825381,
- "steps": 20,
- "strength": 0.7
- }
- }
Add Comment
Please, Sign In to add comment