{"id":19543941,"url":"https://github.com/zahidkhawaja/stable-diffusion-nextjs","last_synced_at":"2025-04-26T17:32:49.028Z","repository":{"id":99317210,"uuid":"538645534","full_name":"zahidkhawaja/stable-diffusion-nextjs","owner":"zahidkhawaja","description":"Next.js app for serverless deployments of Stable Diffusion on Banana.dev","archived":false,"fork":false,"pushed_at":"2022-09-20T00:48:33.000Z","size":80,"stargazers_count":26,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T16:53:40.709Z","etag":null,"topics":["generative-art","javascript","machine-learning","nextjs","react","stable-diffusion"],"latest_commit_sha":null,"homepage":"https://stablediffusion.vercel.app/","language":"JavaScript","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/zahidkhawaja.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-19T18:35:16.000Z","updated_at":"2025-03-26T01:31:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e493b23-583d-4cda-a2fb-e28da7df48a2","html_url":"https://github.com/zahidkhawaja/stable-diffusion-nextjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahidkhawaja%2Fstable-diffusion-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahidkhawaja%2Fstable-diffusion-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahidkhawaja%2Fstable-diffusion-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahidkhawaja%2Fstable-diffusion-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zahidkhawaja","download_url":"https://codeload.github.com/zahidkhawaja/stable-diffusion-nextjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251026509,"owners_count":21524992,"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":["generative-art","javascript","machine-learning","nextjs","react","stable-diffusion"],"created_at":"2024-11-11T03:23:21.371Z","updated_at":"2025-04-26T17:32:49.021Z","avatar_url":"https://github.com/zahidkhawaja.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Template for Stable Diffusion\n\nThis is a [Next.js](https://nextjs.org/) template for  🍌 [Banana](https://www.banana.dev/) deployments of Stable Diffusion on serverless GPUs. Feel free to customize this frontend and make it your own! Enter your API keys in .env.local and go bananas! 🎉\n\n## Getting Started\n\n1. Clone this repo.\n\n2. Create a `.env.local` file with `BANANA_API_KEY=your_api_key` and `BANANA_MODEL_KEY=your_model_key`.\n\n3. Install dependencies:\n\n```bash\nnpm i\n```\n\n4. Run the development server:\n\n```bash\nnpm run dev\n```\n\n5. Open [http://localhost:3000](http://localhost:3000) with your browser to see your project!\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\nAn [API route](https://nextjs.org/docs/api-routes/introduction) has already been created [http://localhost:3000/api/diffusion](http://localhost:3000/api/diffusion). This endpoint uses the Banana API keys you provide and can be edited at `pages/api/diffusion.js`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n\n## 🍌 Banana Docs\n\nTo learn more about Banana, take a look at the following resources:\n\n- [Banana Documentation](https://www.banana.dev/docs) - learn about Banana's API.\n- [1-Click Stable Diffusion model on Banana](https://www.banana.dev/stable-diffusion) - the world's easiest way to deploy Stable Diffusion on serverless GPUs.\n\nTo customize the model beyond the one-click template, see [Banana's GitHub repository](https://github.com/bananaml/serverless-template-stable-diffusion) - full credit goes to Banana for making this project possible!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\nImportant note: Vercel's \"free\" plan has a serverless function execution timeout of 10 seconds. You may need a \"pro\" plan (which has a 60 second timeout) to run this in production without issues. This limitation does not affect local development.\n\n## Use 🍌 Banana for scale.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahidkhawaja%2Fstable-diffusion-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzahidkhawaja%2Fstable-diffusion-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahidkhawaja%2Fstable-diffusion-nextjs/lists"}