denees_k

Untitled

Jul 23rd, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.63 KB | None | 0 0
  1. TEXT TO IMG
  2. Post https://stablediffusionapi.com/api/v3/text2img
  3.  
  4. Req:
  5. {
  6.     'model_id': 'anything-v3',
  7.     'mask_image': None,
  8.     'control_image': None,
  9.     'width': '1024',
  10.     'height': '1024',
  11.     'prompt': ' ',
  12.     'guess_mode': None,
  13.     'use_karras_sigmas': None,
  14.     'tomesd': None,
  15.     'vae': 'sd-ft-mse',
  16.     'embeddings': None,
  17.     'lora_strength': None,
  18.     'multi_lingual': None,
  19.     'upscale': None,
  20.     'strength': 1,
  21.     'negative_prompt': 'high contrast, ugly, duplicate',
  22.     'guidance': '10',
  23.     'samples': '1',
  24.     'safety_checker': None,
  25.     'auto_hint': 'yes',
  26.     'steps': 5,
  27.     'seed': 0,
  28.     'webhook': None,
  29.     'track_id': None,
  30.     'scheduler': 'EulerAncestralDiscreteScheduler',
  31.     'base64': None,
  32.     'clip_skip': None,
  33.     'controlnet_conditioning_scale': None,
  34.     'temp': None,
  35.     'controlnet_type': None,
  36.     'controlnet_model': 'softedge',
  37.     'lora': 'more_details'
  38. }
  39.  
  40. Resp:
  41. {'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'}}
  42.  
  43.  
  44. IMG TO IMG
  45. POST https://stablediffusionapi.com/api/v3/img2img
  46. REQ:
  47. {
  48.     "key": "",
  49.     "prompt": "a cat sitting on a bench",
  50.     "negative_prompt": null,
  51.     "init_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png",
  52.     "width": "512",
  53.     "height": "512",
  54.     "samples": "1",
  55.     "num_inference_steps": "30",
  56.     "safety_checker": "no",
  57.     "enhance_prompt": "yes",
  58.     "guidance_scale": 7.5,
  59.     "strength": 0.7,
  60.     "seed": null,
  61.     "webhook": null,
  62.     "track_id": null
  63. }
  64. RESP:
  65. {
  66.  "status": "success",
  67.  "generationTime": 2.920767068862915,
  68.  "id": 302455,
  69.  "output": [
  70.      "https://d1okzptojspljx.cloudfront.net/generations/05c3260d-6a2e-4aa5-82f0-e952f2a5fa10-0.png"
  71.  ],
  72.  "meta": {
  73.      "H": 512,
  74.      "W": 512,
  75.      "enable_attention_slicing": "true",
  76.      "file_prefix": "05c3260d-6a2e-4aa5-82f0-e952f2a5fa10",
  77.      "guidance_scale": 7.5,
  78.      "model": "runwayml/stable-diffusion-v1-5",
  79.      "n_samples": 1,
  80.      "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",
  81.      "outdir": "out",
  82.      "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",
  83.      "revision": "fp16",
  84.      "safety_checker": "none",
  85.      "seed": 1793745243,
  86.      "steps": 20,
  87.      "vae": "stabilityai/sd-vae-ft-mse"
  88.  }
  89. }
  90.  
  91. INPAINTING
  92. POST https://stablediffusionapi.com/api/v3/inpaint
  93. REQ:
  94. {
  95.   "key": "",
  96.   "prompt": "a cat sitting on a bench",
  97.   "negative_prompt": null,
  98.   "init_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png",
  99.   "mask_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png",
  100.   "width": "512",
  101.   "height": "512",
  102.   "samples": "1",
  103.   "num_inference_steps": "30",
  104.   "safety_checker": "no",
  105.   "enhance_prompt": "yes",
  106.   "guidance_scale": 7.5,
  107.   "strength": 0.7,
  108.   "seed": null,
  109.   "webhook": null,
  110.   "track_id": null
  111. }
  112. RESP:
  113. {
  114.   "status": "success",
  115.   "generationTime": 1.9110066890716553,
  116.   "id": 12384052,
  117.   "output": [
  118.     "https://pub-8b49af329fae499aa563997f5d4068a4.r2.dev/generations/e67183ee-73c1-45c4-84e7-0dec6f657d33-0.png"
  119.   ],
  120.   "meta": {
  121.     "H": 512,
  122.     "W": 512,
  123.     "file_prefix": "e67183ee-73c1-45c4-84e7-0dec6f657d33",
  124.     "guidance_scale": 7.5,
  125.     "init_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png",
  126.     "mask_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png",
  127.     "n_samples": 1,
  128.     "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))",
  129.     "outdir": "out",
  130.     "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",
  131.     "safetychecker": "no",
  132.     "seed": 3163825381,
  133.     "steps": 20,
  134.     "strength": 0.7
  135.   }
  136. }
Add Comment
Please, Sign In to add comment