Deploy Stable Diffusion as Service - Build your own Stable Diffusion API

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 42

  • @balicode
    @balicode Рік тому +3

    It worked for me and helped me a lot. Thanks for sharing your knowledge!

  • @IvanDrew05
    @IvanDrew05 Рік тому +4

    works fine, except when i click on the link it gives me, i see this message saying: To access the website, please confirm the tunnel creator's public IP below. any solutions? thanks.

  • @virgilitech
    @virgilitech 11 місяців тому +1

    Do you know if we can use controlnet features through api too?

  • @-Shortforlife
    @-Shortforlife 2 роки тому +15

    Thank you for your video :) Can we make custom fine tuning model with api like this?

  • @aenishshrestha8103
    @aenishshrestha8103 2 роки тому +5

    Thankyou for making this video, but when i opened it today local tunnel url wasn't showing up am i doing something wrong here?

  • @Bkeeperlk
    @Bkeeperlk 7 місяців тому

    Sir , how to crate fooocus model api using fast api ?

  • @whoaluis7012
    @whoaluis7012 Рік тому

    hello I am trying to follow along but I am getting dependency errors in colab. Am I supposed to update all the dependencies in colab?

  • @planetcrypton9666
    @planetcrypton9666 Рік тому +2

    in another video you made, you showed us how to deploy stable diffusion using runpod. Can i deploy my app using runpod and then make an api for it using diffuzers or will i have to deploy stable diffusion to a serve like aws or render?

  • @Qubot
    @Qubot 2 роки тому +5

    Thanks, what is the difference with Automatic 1111 api ?

    • @c0nsumption
      @c0nsumption Рік тому

      How do I access the API, this is exactly what I’m looking for. API for auto1111 and how to interface with controlnet

  • @FalahgsGate
    @FalahgsGate Рік тому +1

    thanks for your video tut. but how to deploy my custom dreambooth based stable diffusion model?

  • @AP-fu3bj
    @AP-fu3bj Рік тому

    How would one go about using their own locally fine-tuned Stable Diffusion model for deployment?

  • @AlanLeebr
    @AlanLeebr 9 місяців тому

    Im studing to create an website based on stable diffusion automatic 1111, you have some tips for me ? How to start this!?

  • @gentleman.editsss
    @gentleman.editsss 6 місяців тому

    Do we need to pay something for the API

  • @gjsxnobody7534
    @gjsxnobody7534 Рік тому

    very cool. will it work on automatic11, and can i use different aspects of it, like Dreambooth? or LORA?

  • @payelmukherjee7266
    @payelmukherjee7266 Рік тому +1

    Hey Abhishek, I loved this example and set up the local repo and tried it. But I am getting black images in output. can you please help what might be the issue?

  • @muntajimmahin
    @muntajimmahin 2 роки тому +2

    Just Wow Brother

  • @sriramkrishna6853
    @sriramkrishna6853 2 роки тому +3

    Can the same ideology be applied for any api as a service from Google colab not just stable fusion? Thanks in advance.

  • @chameguinhos2522
    @chameguinhos2522 2 роки тому

    nice video bro!!!! how to change sampler? DDIM or DPM++ SDE Karras

  • @abduallahmustafa1029
    @abduallahmustafa1029 Рік тому

    hi sir Is there any way to hosting fine tuning of Stable Diffusion

  • @sergeykudryashov9201
    @sergeykudryashov9201 Рік тому

    Is it possible to use custom model?

  • @MrInterpriser
    @MrInterpriser Рік тому

    Can you basically make 30 images with 30 prompts with this ?

  • @Shaburu69
    @Shaburu69 10 місяців тому

    Great Video bhai

  • @Daveler888
    @Daveler888 Рік тому

    Can this process parallel requests as well? So if 10 or 100 users call the API at the same time, will it automatically queue it or will I have to write my own wrapper for that?

  •  Рік тому

    Hello i need this "To access the website, please confirm the tunnel creator's public IP below" i mean i need the ip public o the creator is like password!!! i really appreciate that information

  • @suaraalam7796
    @suaraalam7796 Рік тому +1

    how to run it with c#??

    • @khoao5799
      @khoao5799 8 місяців тому

      do you have a solution?

  • @SO-vq7qd
    @SO-vq7qd 7 місяців тому +1

    I wish I could double like this video

  • @spicer41282
    @spicer41282 2 роки тому +4

    What's been in mind for a while. Thanks for making it a reality!
    Question: How can I contact you in case I run into something unexpected? RU available on a consultant basis?

  • @SO-vq7qd
    @SO-vq7qd Рік тому +1

    How to monetize this?

  • @tharunt3342
    @tharunt3342 Рік тому +1

    how to use this API in python code pls reply

    • @AhteshamBytes
      @AhteshamBytes Рік тому

      Using Requests library, you can access the API in python code.

    • @codys846
      @codys846 Рік тому

      here is python code for python i got working but need to adjust the payload
      import json
      import requests
      import io
      import base64
      from PIL import Image, PngImagePlugin
      url = "127.0.0.1:7860"
      payload = {
      "prompt": "crab walking on beach",
      "steps": 5,
      "cfg_scale": 7,
      "seed": -1,
      "batch_size": 1,
      "hr_checkpoint_name": "sd_xl_refiner_1.0.safetensors [7440042bbd]",
      "sampler_index": "DDIM",
      }
      response = requests.post(url=f'{url}/sdapi/v1/txt2img', json=payload)
      r = response.json()
      for i in r['images']:
      if i.startswith("data:image/png;base64,"):
      base64_data = i.split(",", 1)[1]
      else:
      base64_data = i
      image = Image.open(io.BytesIO(base64.b64decode(base64_data)))
      png_payload = {
      "image": "data:image/png;base64," + i
      }
      response2 = requests.post(url=f'{url}/sdapi/v1/png-info', json=png_payload)
      pnginfo = PngImagePlugin.PngInfo()
      pnginfo.add_text("parameters", response2.json().get("info"))
      image.save('output.jpg', 'JPEG', quality=95) # Save as JPEG

  • @Kev4ik
    @Kev4ik 2 роки тому +1

    Can you make a video on an API for Dreambooth as well please?

  • @zes7215
    @zes7215 Рік тому

    wrr