{"id":21164241,"url":"https://github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint","last_synced_at":"2025-03-14T16:29:11.266Z","repository":{"id":210212783,"uuid":"726013998","full_name":"alloc7260/runpod-serverless-stable-diffusion-custom-endpoint","owner":"alloc7260","description":"generated from https://github.com/runpod-workers/worker-template","archived":false,"fork":false,"pushed_at":"2023-12-01T11:04:58.000Z","size":267,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T09:48:49.226Z","etag":null,"topics":["api","runpod","runpod-worker","serverless","stable-diffusion"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alloc7260.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-01T10:55:12.000Z","updated_at":"2024-01-03T17:15:05.000Z","dependencies_parsed_at":"2023-12-01T13:24:33.706Z","dependency_job_id":"a2ba301c-ec99-4834-9c18-eedc1e87480f","html_url":"https://github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint","commit_stats":null,"previous_names":["alloc7260/runpod-serverless-stable-diffusion-custom-endpoint"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc7260%2Frunpod-serverless-stable-diffusion-custom-endpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc7260%2Frunpod-serverless-stable-diffusion-custom-endpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc7260%2Frunpod-serverless-stable-diffusion-custom-endpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc7260%2Frunpod-serverless-stable-diffusion-custom-endpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alloc7260","download_url":"https://codeload.github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243609584,"owners_count":20318816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","runpod","runpod-worker","serverless","stable-diffusion"],"created_at":"2024-11-20T14:01:24.442Z","updated_at":"2025-03-14T16:29:10.792Z","avatar_url":"https://github.com/alloc7260.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"1. download any base model for Ex. =\u003e sd_xl_base_1.0.safetensors\n2. if you have any checkpoint model then take it along with base model for Ex. =\u003e sdxl-base-10000-000009.safetensors (Lora checkpoint)\n3. the directory structure will look like this\n```\n        .\n        ├── builder\n        │   ├── cache.py\n        │   ├── clone.sh\n        │   └── requirements.txt\n        ├── Dockerfile\n        ├── imgs\n        │   ├── create endpoint.png\n        │   └── create template.png\n        ├── README.md\n        ├── requesting-script.py\n        └── src\n            ├── rp_handler.py\n            └── start.sh\n```\n4. make changes in files like `Dockerfile` and `start.sh` according to your model names \n5. docker login\n6. docker build -t alloc7260/sdxlbase1:v12 .     # put your username insted of alloc7260\n7. docker push alloc7260/sdxlbase1:v12           # put your username insted of alloc7260\n8. go to runpod console\n9. go to serverless tab \n10. select custom template\n11. create custom template using this public docker image\n![Custom Template](https://github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint/blob/main/imgs/create%20template.png?raw=true \"Create Template\")\n12. select endpoints\n13. create endpoint by specifying created template name and instance details\n![Custom Endpoint](https://github.com/alloc7260/runpod-serverless-stable-diffusion-custom-endpoint/blob/main/imgs/create%20endpoint.png?raw=true \"Create Endpoint\")\n14. get the endpoint id and put it in `requesting-script.py`\n15. get your api key from settings tab and put it in `requesting-script.py`\n16. pip install requests opencv-python numpy Pillow \n17. tweak the parameters and run the script by `python3 requesting-script.py`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc7260%2Frunpod-serverless-stable-diffusion-custom-endpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falloc7260%2Frunpod-serverless-stable-diffusion-custom-endpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc7260%2Frunpod-serverless-stable-diffusion-custom-endpoint/lists"}